An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
How to create Azure Kubernetes Service using Terraform - Part 2
In this article, We will see how to create AKS cluster using Hashicorp Terraform
How to create Azure Kubernetes Service using Terraform
- How to create Azure Kubernetes Service using Terraform - Part 1
- How to create Azure Kubernetes Service using Terraform - Part 2
Terraform files
This file contains subscription details and backend details where we are going to store the tfstate
file.
This file will create the AKS cluster with log analytics workspace.
This file contains all the variable details.
Once the cluster created, we need some details to access the Kubernetes, with outputs.tf files we can get those details.
Once all the files created, lets start the execution.
Terraform initialization
terraform init
Execute the above command to initialize the Terraform deployment. This command downloads the Azure modules required to manage our Azure resources.
Terraform plan execution
terraform plan
Execute the above command to create an execution plan. This command creates an execution plan, but doesnt execute it. Instead, it determines what actions are necessary to create the configuration specified in our configuration files. This pattern allows us to verify whether the execution plan matches our expectations before making any changes to actual resources.
Applying the Terraform Execution Plan
terraform apply
Execute the above command to apply the execution plan to our cloud infrastructure.
Thanks for reading my article till end. I hope you learned something special today. If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.
Original Link: https://dev.to/kcdchennai/how-to-create-azure-kubernetes-service-using-terraform-part-2-56mo
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To