diff --git a/shared/networkpolicies/allow-to-database.yaml b/shared/networkpolicies/allow-to-database.yaml index 10b360881d8ae5c688745f0f029240fe761a7b20..53a142d6c1310dd30c238074b7f2673785bb17b1 100644 --- a/shared/networkpolicies/allow-to-database.yaml +++ b/shared/networkpolicies/allow-to-database.yaml @@ -5,13 +5,8 @@ metadata: spec: egress: - to: - - namespaceSelector: - matchLabels: - kubernetes.io/metadata.name: kube-system - podSelector: - matchLabels: - component: kube-apiserver - tier: control-plane + - ipBlock: + cidr: 192.168.100.0/25 ports: - protocol: TCP port: 6443 @@ -29,4 +24,4 @@ spec: matchLabels: application: spilo policyTypes: - - Egress \ No newline at end of file + - Egress