nxtgauge-gitops/apps/nxtgauge-backend-rust/base/payments-deployment.yaml
2026-06-12 03:53:25 +05:30

54 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nxtgauge-rust-payments
labels:
app: nxtgauge-rust-payments
spec:
replicas: 1
selector:
matchLabels:
app: nxtgauge-rust-payments
template:
metadata:
labels:
app: nxtgauge-rust-payments
spec:
imagePullSecrets:
- name: regcred
containers:
- name: payments
image: registry.nxtgauge.com/nxtgauge-rust-payments:319b384f0a286ace38b0ac3f0602ae46d459b6f5
imagePullPolicy: Always
ports:
- containerPort: 9116
name: http
envFrom:
- configMapRef:
name: nxtgauge-backend-rust-config
- secretRef:
name: nxtgauge-backend-rust-secrets
env:
- name: PORT
value: "9116"
readinessProbe:
tcpSocket:
port: 9116
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe:
tcpSocket:
port: 9116
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 5
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 500m
memory: 256Mi