swap over to statefulset

This commit is contained in:
red 2025-06-21 22:17:04 -04:00
parent d67d15fcf3
commit 03647907be
6 changed files with 203 additions and 64 deletions

View file

@ -9,6 +9,24 @@ spec:
- port: 5432
targetPort: 5432
protocol: TCP
clusterIP: None
selector:
app: postgres
---
# regular (non-headless) service for application access
apiVersion: v1
kind: Service
metadata:
name: postgres-svc
namespace: darkdork-dev
labels:
app: postgres
spec:
selector:
app: postgres
ports:
- port: 5432
targetPort: 5432
name: postgres
type: ClusterIP
---