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

52 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nxtgauge-rust-customers
namespace: nxtgauge
labels:
app: nxtgauge-rust-customers
spec:
replicas: 1
selector:
matchLabels:
app: nxtgauge-rust-customers
template:
metadata:
labels:
app: nxtgauge-rust-customers
spec:
containers:
- name: customers
image: docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-customers
imagePullPolicy: Always
ports:
- containerPort: 9105
name: http
envFrom:
- configMapRef:
name: nxtgauge-backend-rust-config
- secretRef:
name: nxtgauge-backend-rust-secrets
readinessProbe:
httpGet:
path: /health
port: 9105
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
livenessProbe:
httpGet:
path: /health
port: 9105
initialDelaySeconds: 20
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 5
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 500m
memory: 256Mi