From 4206c9e3f9929aeabb2c5e7152377256611e920b Mon Sep 17 00:00:00 2001 From: DinethH Date: Tue, 5 Mar 2024 14:51:41 +0530 Subject: [PATCH] add custom grpc backend deployment to manifest --- .../tests/resources/base/manifests.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/test/integration/integration/tests/resources/base/manifests.yaml b/test/integration/integration/tests/resources/base/manifests.yaml index 5d4ef2460..c902689fd 100644 --- a/test/integration/integration/tests/resources/base/manifests.yaml +++ b/test/integration/integration/tests/resources/base/manifests.yaml @@ -113,6 +113,57 @@ spec: --- apiVersion: v1 kind: Service +metadata: + name: grpc-demo-app + namespace: gateway-integration-test-infra +spec: + selector: + app: grpc-demo-app + ports: + - protocol: TCP + port: 6565 + targetPort: 6565 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: grpc-demo-app + namespace: gateway-integration-test-infra + labels: + app: grpc-demo-app +spec: + replicas: 1 + selector: + matchLabels: + app: grpc-demo-app + template: + metadata: + labels: + app: grpc-demo-app + spec: + containers: + - name: grpc-demo-app + image: grpc-demo-app:latest + imagePullPolicy: IfNotPresent + env: + - name: POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + resources: + requests: + cpu: "100m" # Adjust as needed + memory: "100Mi" # Adjust as needed + ports: + - containerPort: 6565 # Ensuring the container exposes port 6565 for gRPC traffic + +--- +apiVersion: v1 +kind: Service metadata: name: infra-backend-v2 namespace: gateway-integration-test-infra