March 2020
Intermediate to advanced
626 pages
14h 45m
English
Since Consul uses its own DNS, we will link the Consul DNS server as an upstream server to the Kubernetes coredns server. Follow these steps:
$ kubectl -n consul get svcNAME TYPE CLUSTER-IP ---consul-connect-injector-svc ClusterIP 10.111.4.98 ---consul-dns ClusterIP 10.99.221.20 ---consul-server ClusterIP None ---consul-ui ClusterIP 10.110.177.68 ------ EXTERNAL-IP PORT(S) AGE--- <none> 443/TCP 22m--- <none> 53/TCP,53/UDP 22m--- <none> 8500/TCP,8301/TCP,8301/UDP,8302/TCP,8302/UDP, 8300/TCP,8600/TCP,8600/UDP 22m--- <none> 80/TCP 22m
We need to connect the consul-dns service to the Kubernetes DNS.
Let's take a look at the 03-create-coredns-configmap.sh ...
Read now
Unlock full access