Skip to content

Instantly share code, notes, and snippets.

@mguay22
Created March 29, 2022 23:44
Show Gist options
  • Save mguay22/eddad6c3aaf2a1278ceb2bea3ced545c to your computer and use it in GitHub Desktop.
Save mguay22/eddad6c3aaf2a1278ceb2bea3ced545c to your computer and use it in GitHub Desktop.
Node Local DNS Cache Installation
curl -sL https://raw.githubusercontent.com/kubernetes/kubernetes/master/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml \
| sed -e 's/__PILLAR__DNS__DOMAIN__/cluster.local/g' \
| sed -e "s/__PILLAR__DNS__SERVER__/$(kubectl get service --namespace kube-system kube-dns -o jsonpath='{.spec.clusterIP}')/g" \
| sed -e 's/__PILLAR__LOCAL__DNS__/169.254.20.10/g' \
| kubectl apply -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment