swap over to statefulset
This commit is contained in:
parent
d67d15fcf3
commit
03647907be
6 changed files with 203 additions and 64 deletions
|
|
@ -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
|
||||
---
|
||||
Loading…
Add table
Add a link
Reference in a new issue