Skip to content

Commit

Permalink
yaml: update kind install yaml to fix DNS
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sknat committed Aug 24, 2023
1 parent 20448e5 commit 2b8596c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
12 changes: 12 additions & 0 deletions yaml/generated/calico-vpp-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
{
Expand Down
4 changes: 2 additions & 2 deletions yaml/generated/calico-vpp-multinet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions yaml/overlays/kind/kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
1 change: 1 addition & 0 deletions yaml/overlays/multinet/multinet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ rules:
- globalfelixconfigs
- felixconfigurations
- bgppeers
- bgpfilters
- globalbgpconfigs
- bgpconfigurations
- ippools
Expand Down

0 comments on commit 2b8596c

Please sign in to comment.