Add more reliable postgres service.
This commit is contained in:
parent
05514f88fd
commit
03be3c6919
2 changed files with 21 additions and 1 deletions
|
@ -6,4 +6,5 @@ resources:
|
||||||
- ./externalsecret.yaml
|
- ./externalsecret.yaml
|
||||||
- ./gatus.yaml
|
- ./gatus.yaml
|
||||||
- ./postgrescluster.yaml
|
- ./postgrescluster.yaml
|
||||||
- ./pushsecret.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