made k8s specific changes

This commit is contained in:
2026-03-17 10:14:53 +05:30
parent fdd620dfe2
commit 6c26389c4e
14 changed files with 64 additions and 415 deletions

View File

@@ -22,23 +22,33 @@ spec:
volumeMounts:
- name: mongodb-data
mountPath: /data/db
resources:
requests:
cpu: "250m"
memory: "512Mi"
limits:
cpu: "500m"
memory: "1Gi"
livenessProbe:
exec:
command:
- mongosh
- --eval
- "db.adminCommand('ping')"
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 6
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 10
failureThreshold: 3
readinessProbe:
exec:
command:
- mongosh
- --eval
- "db.adminCommand('ping')"
initialDelaySeconds: 5
periodSeconds: 5
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 3
volumes:
- name: mongodb-data
persistentVolumeClaim:

View File

@@ -37,6 +37,8 @@ spec:
key: POSTGRES_PASSWORD
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
- name: TZ
value: Asia/Kolkata
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data