This repository is used for demo purposes. This Terraform source code will create a sample infrastructure, which will create a list of infrastructure components below:
- Azure Kubernetes Service
- Postgresql
- Redis Cache
- Azure Blob Storage
- Private DNS
- Virtual Network
- Subnet and Network Peering
Besides, the source code also set up the virtual network and allows the Postgresql can be accessed through the private connection. The Azure Kubernetes Service is also using the Azure CNI plugin.
- Install Azure CLI
- Login to Azure CLI with the command below:
az login
- terraform init
- terraform plan
- terraform apply
- az aks get-credentials -g terraform-env -n k8s-cluster # this will fetch the Kubernetes config from the AKS to your local Kubernetes config file