Skip to content
Snippets Groups Projects
Verified Commit 9bd4fffa authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(terraform): Adjust boot template to produce functioning DNS

Currently the resolv.conf was deleted but not properly replaced. This
patch adjust that and makes sure things are put in the right place.
parent 0eeaf9d4
No related branches found
No related tags found
1 merge request!2Draft: Makefile: Add all commands to deploy the kubernetes controlplane
......@@ -29,15 +29,16 @@ sysctl --system
dnf install -y iptables
# Disable systemd-resolved for CoreDNS
rm -f /etc/resolv.conf
cp /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl disable --now systemd-resolved
# Prepare NetworkManager for Calico
cat <<EOF | sudo tee /etc/NetworkManager/conf.d/calico.conf
[keyfile]
unmanaged-devices=interface-name:cali*;interface-name:tunl*;interface-name:vxlan.calico;interface-name:wireguard.cali
EOF
# Disable systemd-resolved for CoreDNS
systemctl disable --now systemd-resolved
rm -f /etc/resolv.conf
systemctl restart NetworkManager
reboot
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment