Created
March 29, 2022 23:44
-
-
Save mguay22/eddad6c3aaf2a1278ceb2bea3ced545c to your computer and use it in GitHub Desktop.
Node Local DNS Cache Installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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