From 7bd82ca1e4cbe17091fc6f270319be69a99fe87f Mon Sep 17 00:00:00 2001 From: Evan Benshetler Date: Fri, 3 May 2024 14:39:54 +0200 Subject: [PATCH] Change DNS from kube-dns to openshift-dns --- .../templates/network-policy-default.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) 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 }}