From 133fe712e45799fc26c71423f053456ae80fd7fe Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 19 Jun 2024 08:01:52 +1000 Subject: [PATCH] update ingress for postgresql replica --- .../scripts/ingress-nginx-svc-controller-patch.yaml | 4 ++++ .../ingress-nginx/config/ingress-configmap.yaml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/kubernetes/apps/postgresql/scripts/ingress-nginx-svc-controller-patch.yaml b/kubernetes/apps/postgresql/scripts/ingress-nginx-svc-controller-patch.yaml index 66af32b..6b57c10 100644 --- a/kubernetes/apps/postgresql/scripts/ingress-nginx-svc-controller-patch.yaml +++ b/kubernetes/apps/postgresql/scripts/ingress-nginx-svc-controller-patch.yaml @@ -3,4 +3,8 @@ spec: - name: postgresql-tcp port: 5432 targetPort: 5432 + protocol: TCP + - name: postgresql-repl--tcp + port: 5433 + targetPort: 5433 protocol: TCP \ No newline at end of file diff --git a/kubernetes/infrastructure/ingress-nginx/config/ingress-configmap.yaml b/kubernetes/infrastructure/ingress-nginx/config/ingress-configmap.yaml index 61c55ee..d663151 100644 --- a/kubernetes/infrastructure/ingress-nginx/config/ingress-configmap.yaml +++ b/kubernetes/infrastructure/ingress-nginx/config/ingress-configmap.yaml @@ -6,7 +6,8 @@ metadata: data: "53": "flux-system/adguard-home:53" "853": "flux-system/adguard-home:853" - "5432": "postgresql/postgresql:5432" + "5432": "postgresql/postgresql-primary:5432" + "5433": "postgresql/postgresql-replica:5432" "5443": "flux-system/adguard-home:5443" "6060": "flux-system/adguard-home:6060" ---