fix: permanent DNS fix via daemon.json + CoreDNS, restart=always for kind container
This commit is contained in:
parent
601a0328b8
commit
89f26e1dd1
3 changed files with 7 additions and 4 deletions
|
|
@ -6,7 +6,8 @@ cd "$SCRIPT_DIR/.."
|
|||
|
||||
echo "=== Deploying Infrastructure ==="
|
||||
|
||||
echo "0. Fixing kind container DNS (prevents ImagePullBackOff on IPv6-only DNS)..."
|
||||
echo "0. Configuring kind container restart policy and DNS..."
|
||||
docker update --restart=always szymicluster-control-plane
|
||||
docker exec szymicluster-control-plane bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
|
||||
|
||||
echo "1. Creating required host data directories..."
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ data:
|
|||
ttl 30
|
||||
}
|
||||
prometheus :9153
|
||||
forward . /etc/resolv.conf {
|
||||
forward . 8.8.8.8 8.8.4.4 {
|
||||
max_concurrent 1000
|
||||
}
|
||||
cache 30 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue