Consul's native traffic management features are implemented for both cloud-native as well as traditional VM applications. We will go through the features of traffic shifting and traffic routing in this section.
Traffic management in Consul
Directing traffic to a default subset
Consul's traffic shifting feature allows us to direct traffic to a default subset. Follow these steps to learn how to do so:
- The web node port is 30145. Run curl -s http://localhost:30145 and check the output:
$ curl -s http://localhost:30145
===============================================
Request time : 2019-09-21 01:25:29.844609478 +0000 UTC
Requested path : /
Host IP : 192.168.142.101
Pod IP : 192.168.230.202
Pod Name ...