From 5a6d2ca4d816daf5a5c950e1210193e17fefc61b Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Wed, 18 Aug 2021 02:06:04 +0200 Subject: [PATCH] fix(postgres): Fix wrong network policy defintion This patch puts the port definitions into the right place and uses the key `port` instead of `containerPort` as expected by NetworkPolicy objects. --- .../postgres/user-namespace-network-policy.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/infrastructure/postgres/user-namespace-network-policy.yaml b/infrastructure/postgres/user-namespace-network-policy.yaml index 29097298b..8f628e767 100644 --- a/infrastructure/postgres/user-namespace-network-policy.yaml +++ b/infrastructure/postgres/user-namespace-network-policy.yaml @@ -20,15 +20,15 @@ spec: - namespaceSelector: matchLabels: name: zalando-postgres + ports: + - containerPort: 8008 + protocol: TCP + - containerPort: 5432 + protocol: TCP + - containerPort: 8080 + protocol: TCP podSelector: matchLabels: application: spilo policyTypes: - Ingress - ports: - - containerPort: 8008 - protocol: TCP - - containerPort: 5432 - protocol: TCP - - containerPort: 8080 - protocol: TCP -- GitLab