The fifth challenge of the Terraform On Azure asks you to provision a one-node consul cluster on the AKS cluster deployed in Challenge 4, and to use it to federate with an existing primary datacenter, to create a network between all the webapps deployed by other participants.
We have to deploy Consul via a Helm chart, using the appropriate Terraform provider. Then, we have to create a Public IP and a service to expose our environment, again via Terraform. You can read more about the challenge here.
I used init.sh to retrieve the default Helm chart for Consul, to check default values. I managed the remaining part of the configuration with Terraform.
I executed all the steps above on Ubuntu 18.04 WSL2.
The ouput of consul members -wan was:
/ # consul members -wan
Node Address Status Type Build Protocol DC Segment
consul-server-0.omegamadlab 10.244.0.18:8302 alive server 1.8.0 2 omegamadlab
My other repos, on for each challenge: