Consul integration with Kubernetes is done through a separate project called consul-k8s, which is maintained at https://github.com/hashicorp/consul-k8s.
In Chapter 20, Installing Consul, we installed the Consul CLI (a single Go binary that serves as a server and a client) in our VM. We also installed a Helm chart for the consul-k8s project in order to integrate Consul with Kubernetes.
Previously, Consul operated at Levels 3 and 4 of the network traffic. However, Consul version 1.6.0+ provided support for the OSI Layer 7's (application layer) traffic management features so that we can divide the traffic between different subsets of services through the use of sidecar proxies. The Consul service mesh can now provide HTTP traffic routing, traffic shaping, failover, and rerouting capabilities. The following are key dynamic routing features...