Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Created October 13, 2021 11:03
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 wayne-o/0e4feb5e6dc17fb980013f97e04be057 to your computer and use it in GitHub Desktop.
Save wayne-o/0e4feb5e6dc17fb980013f97e04be057 to your computer and use it in GitHub Desktop.
resolve external dns to internal service
apiVersion: v1
data:
Corefile: |
.:53 {
errors
health
rewrite stop {
name regex ids\.test2\.fundacion\.io sonaticket-ids.test2-fundacion-io.svc.cluster.local
answer name sonaticket-ids\.test2-fundacion-io\.svc\.cluster\.local ids.test2\.fundacion\.io
}
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
upstream
fallthrough in-addr.arpa ip6.arpa
ttl 30
}
prometheus :9153
forward . 8.8.8.8:53
cache 30
loop
reload
loadbalance
}
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment