Skip to content

Commit

Permalink
add custom grpc backend deployment to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
DDH13 committed Mar 6, 2024
1 parent 67c4fe8 commit a3a57fa
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions test/integration/integration/tests/resources/base/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3a57fa

Please sign in to comment.