From 2b8596cad268079800df807749b3e88ce29f31a7 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Tue, 22 Aug 2023 19:08:36 +0200 Subject: [PATCH] yaml: update kind install yaml to fix DNS This patch adds a UDP / TCP redirection of the kind gareway address port 53 to the host to allow DNS to work from coredns to the kind resolver. See #584 for more details. Signed-off-by: Nathan Skrzypczak --- yaml/generated/calico-vpp-kind.yaml | 12 ++++++++++++ yaml/generated/calico-vpp-multinet.yaml | 4 ++-- yaml/overlays/kind/kind-config.yaml | 17 +++++++++++++++++ yaml/overlays/multinet/multinet.yaml | 1 + 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/yaml/generated/calico-vpp-kind.yaml b/yaml/generated/calico-vpp-kind.yaml index 05b97b5b..d775c375 100644 --- a/yaml/generated/calico-vpp-kind.yaml +++ b/yaml/generated/calico-vpp-kind.yaml @@ -165,6 +165,18 @@ data: { "vppStartupSleepSeconds": 1, "corePattern": "/var/lib/vpp/vppcore.%e.%p" + "redirectToHostRules": [ + { + "proto": "udp", + "port": 53, + "ip": "172.18.0.1" + }, + { + "proto": "tcp", + "port": 53, + "ip": "172.18.0.1" + } + ] } CALICOVPP_INTERFACES: |- { diff --git a/yaml/generated/calico-vpp-multinet.yaml b/yaml/generated/calico-vpp-multinet.yaml index 734d9bb8..e5a2eee9 100644 --- a/yaml/generated/calico-vpp-multinet.yaml +++ b/yaml/generated/calico-vpp-multinet.yaml @@ -230,7 +230,7 @@ spec: k8s-app: calico-vpp-node spec: containers: - - image: docker.io/calicovpp/multinet-monitor:v3.24.1 + - image: docker.io/calicovpp/multinet-monitor:prerelease imagePullPolicy: IfNotPresent name: multinet-monitor resources: @@ -335,7 +335,7 @@ spec: initContainers: - command: - /entrypoint - image: docker.io/calicovpp/install-whereabouts:latest + image: docker.io/calicovpp/install-whereabouts:prerelease name: install-whereabouts volumeMounts: - mountPath: /host/opt/cni/bin diff --git a/yaml/overlays/kind/kind-config.yaml b/yaml/overlays/kind/kind-config.yaml index 6833ea8b..6c7e0774 100644 --- a/yaml/overlays/kind/kind-config.yaml +++ b/yaml/overlays/kind/kind-config.yaml @@ -14,3 +14,20 @@ data: # Configuration template for VPP in Kind } ] } + CALICOVPP_INITIAL_CONFIG: |- + { + "vppStartupSleepSeconds": 1, + "corePattern": "/var/lib/vpp/vppcore.%e.%p" + "redirectToHostRules": [ + { + "proto": "udp", + "port": 53, + "ip": "172.18.0.1" + }, + { + "proto": "tcp", + "port": 53, + "ip": "172.18.0.1" + } + ] + } diff --git a/yaml/overlays/multinet/multinet.yaml b/yaml/overlays/multinet/multinet.yaml index c0f68189..4354edc6 100644 --- a/yaml/overlays/multinet/multinet.yaml +++ b/yaml/overlays/multinet/multinet.yaml @@ -112,6 +112,7 @@ rules: - globalfelixconfigs - felixconfigurations - bgppeers + - bgpfilters - globalbgpconfigs - bgpconfigurations - ippools