Getting into HashiCorp Consul, Part 8: Traffic Shaping and Envoy Debugging

Published: 23 November 2021
on channel: HashiCorp
1,332
12

Cole Morrison and Rosemary Wang (Developer Advocates at HashiCorp) learn Consul the hard way by setting it from scratch. In this episode they dive into managing traffic via the Consul Service mesh and understanding how it works with Envoy. They'll explore this topic by setting up two different version of an API and showing how Consul can be used to selectively route traffic to each version for things such as blue/green deployment patterns.

00:00 - Introduction and Recap
02:10 - Agenda for the Stream
06:31 - Exploring the Terraform Code Prep Changes
08:15 - Differences between example API v1 and API v2 service definitions
10:10 - Hooking up API v1 and API v2 to Consul
17:43 - Exploring Envoy's logs and how Consul works with Envoy
24:10 - What Consul Intentions look like as Envoy Filters
30:12 - Creating Layer 7 Consul Intentions
37:48 - Beginning the blue green deployment set up
52:10 - Using the health check endpoint to examine service data structure
54:10 - Writing configs to Consul using the CLI
56:27 - Debugging Consul Service Resolver when using the ID field
1:04:00 - Understanding Services as Envoy Clusters
1:13:10 - Using Service Meta data to complete Service Resolver
1:19:00 - Traffic splitting via Service Resolver initially set up
1:21:00 - Realizing that a Consul intention was needed...
1:27:00 - Recap of debugging session around using Service ID with Service Resolver
1:35:00 - Configuring Service / Traffic Splitting with the Service Resolver and Splitter
1:40:20 - Where to put Consul configuration files for bootstrapping
1:45:53 - Configuring a Consul Service Router for fine-grained routing to Subsets

To learn more, check out...

* Last episode: [   • Getting into HashiCorp Consul, Part 7...  ](   • Getting into HashiCorp Consul, Part 7...  )

* Working Repository: [https://github.com/jcolemorrison/gett...](https://github.com/jcolemorrison/gett...)

* Consul Service Resolver: [https://www.consul.io/docs/connect/co...](https://www.consul.io/docs/connect/co...)

* Consul Service Router: [https://www.consul.io/docs/connect/co...](https://www.consul.io/docs/connect/co...)

* Consul Service Splitter: [https://www.consul.io/docs/connect/co...](https://www.consul.io/docs/connect/co...)

* Consul Service Intentions: [https://www.consul.io/docs/connect/co...](https://www.consul.io/docs/connect/co...)

Code with us! Follow HashiCorpLive on Twitch for future broadcasts: [  / hashicorplive  ](  / hashicorplive  )

If you liked this video and want to see more from HashiCorp, subscribe to our channel: [https://www.youtube.com/c/HashiCorp?s...](https://www.youtube.com/c/HashiCorp?s...)

To learn more, visit our hands-on interactive lab environment, HashiCorp Learn: [https://learn.hashicorp.com/](https://learn.hashicorp.com/)

HashiCorp is the leader in multi-cloud infrastructure automation software. The HashiCorp software suite enables organizations to adopt consistent workflows to provision, secure, connect, and run any infrastructure for any application. HashiCorp open source tools Vagrant, Packer, Terraform, Vault, Consul, Nomad, Boundary, and Waypoint are downloaded tens of millions of times each year and are broadly adopted by the Global 2000. Enterprise versions of these products enhance the open source tools with features that promote collaboration, operations, governance, and multi-data center functionality.

For more information, visit: www.hashicorp.com or follow us on social media:

Twitter: @hashicorp

LinkedIn: [  / hashicorp  ](  / hashicorp  )

Facebook: [  / hashicorp  ](  / hashicorp  ) -- Watch live at   / hashicorplive  


Watch video Getting into HashiCorp Consul, Part 8: Traffic Shaping and Envoy Debugging online, duration hours minute second in high quality that is uploaded to the channel HashiCorp 23 November 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,332 times and liked it 12 visitors.