apiVersion: apps/v1 kind: Deployment metadata: name: nxtgauge-rust-users labels: app: nxtgauge-rust-users spec: replicas: 1 selector: matchLabels: app: nxtgauge-rust-users template: metadata: labels: app: nxtgauge-rust-users spec: containers: - name: users image: registry.nxtgauge.com/nxtgauge-rust-users imagePullPolicy: Always ports: - containerPort: 9101 name: http env: # The image currently defaults to a different port (it exposes 8000/tcp). # Force the service to bind to the port our Service/ConfigMap expects. - name: PORT value: "9101" envFrom: - configMapRef: name: nxtgauge-backend-rust-config - secretRef: name: nxtgauge-backend-rust-secrets startupProbe: tcpSocket: port: 9101 periodSeconds: 5 timeoutSeconds: 1 failureThreshold: 120 readinessProbe: httpGet: path: /health port: 9101 initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 livenessProbe: httpGet: path: /health port: 9101 initialDelaySeconds: 20 periodSeconds: 20 timeoutSeconds: 3 failureThreshold: 5 resources: requests: cpu: 50m memory: 64Mi limits: cpu: 500m memory: 256Mi