apiVersion: apps/v1 kind: Deployment metadata: name: nxtgauge-backend namespace: nxtgauge labels: app: nxtgauge-backend spec: replicas: 2 selector: matchLabels: app: nxtgauge-backend template: metadata: labels: app: nxtgauge-backend spec: containers: - name: backend image: ghcr.io/traceworks2023/nxtgauge-backend imagePullPolicy: IfNotPresent ports: - containerPort: 2002 name: http envFrom: - configMapRef: name: nxtgauge-backend-config - secretRef: name: nxtgauge-backend-secrets readinessProbe: httpGet: path: /health port: 2002 initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 2 failureThreshold: 3 livenessProbe: httpGet: path: /health port: 2002 initialDelaySeconds: 15 periodSeconds: 20 timeoutSeconds: 2 failureThreshold: 3 resources: requests: cpu: 100m memory: 128Mi limits: cpu: 500m memory: 512Mi