diff --git a/fleetshard/pkg/central/charts/data/tenant-resources/templates/network-policy-default.yaml b/fleetshard/pkg/central/charts/data/tenant-resources/templates/network-policy-default.yaml index 363e123edd..c358946452 100644 --- a/fleetshard/pkg/central/charts/data/tenant-resources/templates/network-policy-default.yaml +++ b/fleetshard/pkg/central/charts/data/tenant-resources/templates/network-policy-default.yaml @@ -18,18 +18,12 @@ metadata: spec: podSelector: {} policyTypes: - - Ingress - - Egress + - Ingress + - Egress ingress: [] egress: - - to: - - namespaceSelector: {} - podSelector: - matchLabels: - k8s-app: kube-dns - ports: - - port: 53 - protocol: UDP - - port: 53 - protocol: TCP + - to: + - namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: openshift-dns {{ end }}