nxtgauge-gitops/apps/nxtgauge-backend/base/customers-deployment.yaml

44 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nxtgauge-customers
namespace: nxtgauge
labels:
app: nxtgauge-customers
spec:
replicas: 1
selector:
matchLabels:
app: nxtgauge-customers
template:
metadata:
labels:
app: nxtgauge-customers
spec:
containers:
- name: customers
image: ghcr.io/traceworks2023/nxtgauge-backend
imagePullPolicy: Always
ports:
- containerPort: 50057
name: grpc
env:
- name: APP
value: "customers"
- name: CUSTOMERS_PORT
value: "50057"
envFrom:
- configMapRef:
name: nxtgauge-backend-config
- secretRef:
name: nxtgauge-backend-secrets
readinessProbe:
tcpSocket:
port: 50057
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 50057
initialDelaySeconds: 15
periodSeconds: 20