In this chapter, we explored how to install Consul in a heterogeneous environment such as a VM (or bare metal) and Kubernetes clusters. You also discovered that the Consul install can be done from GitHub for VMs and use the Helm chart for Kubernetes. Consul integration with VMs and legacy systems make it easy to have a hybrid service mesh spanning multiple Kubernetes clusters, VMs, bare-metal machines, and even data centers.
The Consul way of discovering services not only in the Kubernetes cluster but from other heterogeneous environments as well, was integrated by registering the Consul DNS server as one of the servers in the Kubernetes CoreDNS for the discovery of the services from outside of the Kubernetes cluster. Now, you should feel comfortable with applying the knowledge you gained in this chapter in order to build a Consul cluster consisting of a heterogeneous...