March 2020
Intermediate to advanced
626 pages
14h 45m
English
Consul's traffic shifting feature allows us to direct traffic to a default subset. Follow these steps to learn how to do so:
$ curl -s http://localhost:30145===============================================Request time : 2019-09-21 01:25:29.844609478 +0000 UTCRequested path : /Host IP : 192.168.142.101Pod IP : 192.168.230.202Pod Name : web-7dc47f6678-fcnzvPod Namespace : consulHost : localhost:30145RemoteAddr : 192.168.142.101:47332.. continued ...
Notice that, when we call the service web at node port 30145, it calls the web microservice using familiar Kubernetes principles.
Read now
Unlock full access