nxtgauge-gitops/apps/postgresql/statefulset.yaml
Ashwin Kumar Sivakumar 7902b265a9 feat(ai): add AI plans docs, LiteLLM manifests, and infrastructure updates
- Add comprehensive AI plans implementation documentation
- Add LiteLLM gateway Kubernetes manifests
- Update PostgreSQL and Forgejo deployment configs
- Add build-from-binaries script
2026-06-15 06:15:41 +05:30

58 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pg-postgresql
namespace: data
spec:
serviceName: pg-postgresql
replicas: 1
selector:
matchLabels:
app: pg-postgresql
template:
metadata:
labels:
app: pg-postgresql
spec:
containers:
- name: postgresql
image: registry.nxtgauge.com/postgres:16-alpine
ports:
- name: tcp-postgresql
containerPort: 5432
env:
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: chandan2026@1
- name: POSTGRES_DB
value: nxtgauge
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: longhorn-2
resources:
requests:
storage: 30Gi
---
apiVersion: v1
kind: Service
metadata:
name: pg-postgresql
namespace: data
spec:
type: NodePort
selector:
app: pg-postgresql
ports:
- name: tcp-postgresql
port: 5432
targetPort: 5432
nodePort: 30870