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" ---