Skip to content

Latest commit

 

History

History

aks-agic-dns

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Prerequisites

  1. Install Azure CLI
  2. Install Terraform
  3. Setup Terraform for Azure
  4. Create and assign role assignment role to the Terraform service principal
  5. Install Kubectl
  6. Install Helm

Deploy cluster

cd ./terraform

terraform init

terraform validate

terraform apply --var-file=values.tfvars

Deploy Applications

# 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

Test the application

  1. Grab the public IP of the ingress controller
  2. Head to http://<public-ip>/hello/, this will return Hello World from the nodejs-hello-world service
  3. Head to http://<public-ip>/goodbye/, this will return Goodbye World from the nodejs-goodbye-world service
  4. 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
  5. 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

Cleanup

helm uninstall aksdemo

cd ./terraform

terraform destroy --var-file=values.tfvars