- Install Azure CLI
- Install Terraform
- Setup Terraform for Azure
- Create and assign role assignment role to the Terraform service principal
- Install Kubectl
- Install Helm
cd ./terraform
terraform init
terraform validate
terraform apply --var-file=values.tfvars
# add cluster credentials to kube-config
az aks get-credentials --resource-group rg-poc-aksdemo --name aks-poc-aksdemo
# install app
helm install aksdemo app
- Grab the public IP of the ingress controller
- Head to
http://<public-ip>/hello/
, this will return Hello World
from the nodejs-hello-world
service
- Head to
http://<public-ip>/goodbye/
, this will return Goodbye World
from the nodejs-goodbye-world
service
- Head to
http://<public-ip>/hello/call-goodbye
, this will call the nodejs-goodbye-world
service from the nodejs-hello-world
service by its DNS name
- Head to
http://<public-ip>/goodbye/call-hello
, this will call the nodejs-hello-world
service from the nodejs-goodbye-world
service by its DNS name
helm uninstall aksdemo
cd ./terraform
terraform destroy --var-file=values.tfvars