Add more reliable postgres service.
This commit is contained in:
parent
05514f88fd
commit
03be3c6919
2 changed files with 21 additions and 1 deletions
|
@ -7,3 +7,4 @@ resources:
|
|||
- ./gatus.yaml
|
||||
- ./postgrescluster.yaml
|
||||
- ./pushsecret.yaml
|
||||
- ./service.yaml
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
postgres-operator.crunchydata.com/cluster: postgres
|
||||
postgres-operator.crunchydata.com/role: primary
|
||||
name: postgres-primary-real
|
||||
namespace: media
|
||||
spec:
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- name: postgres
|
||||
port: 5432
|
||||
protocol: TCP
|
||||
targetPort: postgres
|
||||
selector:
|
||||
postgres-operator.crunchydata.com/cluster: postgres
|
||||
postgres-operator.crunchydata.com/role: master
|
||||
type: ClusterIP
|
Loading…
Reference in a new issue