Skip to content

Instantly share code, notes, and snippets.

@lastcoolnameleft
Created September 23, 2019 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lastcoolnameleft/e0f0d1302d633408b8d2bba443c7f1e2 to your computer and use it in GitHub Desktop.
Save lastcoolnameleft/e0f0d1302d633408b8d2bba443c7f1e2 to your computer and use it in GitHub Desktop.
AKS CoreDNS custom rule
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
test.server: |
lastcoolnameleft.com:53 {
log
errors
cache 30
rewrite name substring lastcoolnameleft.com default.svc.cluster.local
kubernetes cluster.local in-addr.arpa ip6.arpa {
}
proxy . /etc/resolv.conf # you can redirect this to a specific DNS server such as 10.0.0.10
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment