fix(rust): redis auth + users startup probe

This commit is contained in:
Ashwin Kumar Sivakumar 2026-04-15 22:23:46 +05:30
parent f50a147e17
commit 16aaaa7f45
3 changed files with 17 additions and 7 deletions

View file

@ -27,18 +27,16 @@ spec:
- secretRef: - secretRef:
name: nxtgauge-backend-rust-secrets name: nxtgauge-backend-rust-secrets
readinessProbe: readinessProbe:
httpGet: tcpSocket:
path: /health
port: 9116 port: 9116
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 3 timeoutSeconds: 3
failureThreshold: 3 failureThreshold: 6
livenessProbe: livenessProbe:
httpGet: tcpSocket:
path: /health
port: 9116 port: 9116
initialDelaySeconds: 20 initialDelaySeconds: 30
periodSeconds: 20 periodSeconds: 20
timeoutSeconds: 3 timeoutSeconds: 3
failureThreshold: 5 failureThreshold: 5

View file

@ -7,7 +7,8 @@ type: Opaque
stringData: stringData:
DATABASE_URL: "postgresql://postgres:chandan2026%401@pg-postgresql.data.svc.cluster.local:5432/nxtgauge" DATABASE_URL: "postgresql://postgres:chandan2026%401@pg-postgresql.data.svc.cluster.local:5432/nxtgauge"
JWT_SECRET: "bPU0RQ/N7JW8CDCioe6AFBw/lBLTm++pGtta20pcsTX36p3OyheplgUyiD66OCuV" JWT_SECRET: "bPU0RQ/N7JW8CDCioe6AFBw/lBLTm++pGtta20pcsTX36p3OyheplgUyiD66OCuV"
REDIS_URL: "redis://redis-master.data.svc.cluster.local:6379" # Password contains '@', so it must be URL-encoded as %40.
REDIS_URL: "redis://:chandan2026%401@redis-master.data.svc.cluster.local:6379"
SMTP_HOST: "smtp.zeptomail.in" SMTP_HOST: "smtp.zeptomail.in"
SMTP_PORT: "587" SMTP_PORT: "587"
SMTP_USER: "emailapikey" SMTP_USER: "emailapikey"

View file

@ -21,11 +21,22 @@ spec:
ports: ports:
- containerPort: 9101 - containerPort: 9101
name: http 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: envFrom:
- configMapRef: - configMapRef:
name: nxtgauge-backend-rust-config name: nxtgauge-backend-rust-config
- secretRef: - secretRef:
name: nxtgauge-backend-rust-secrets name: nxtgauge-backend-rust-secrets
startupProbe:
tcpSocket:
port: 9101
periodSeconds: 5
timeoutSeconds: 1
failureThreshold: 120
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /health