How to create AKS Cluster using Terraform | Setup Azure Kubernetes Cluster(AKS) in Azure Cloud
ฝัง
- เผยแพร่เมื่อ 5 ต.ค. 2024
- www.coachdevop...
What is Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS) is a managed container orchestration service, based on the open source Kubernetes system, which is available on the Microsoft Azure public cloud. AKS allows you to quickly deploy a production ready Kubernetes cluster in Azure, deploy and manage containerized applications more easily with a fully managed Kubernetes service.
Pre-requistes:
Terraform is installed on your machine.
Account setup in Azure.
Kubectl is installed on your machine
Azure cli is installed
Hello sir , This is awesome tutorial... This is what I was looking for as I am a beginner to Terraform... Thank you so much sir ☺
You are most welcome
Thank you so much , sir can create a lecture series on Devops project like which contains everything
check all my playlists --> www.youtube.com/@DevOpsCoach/playlists
amazing video
really loved the content
thank you so much
Glad you liked it Bharat
Wow , thanks for the content 🎉🎉👍
Glad you liked it
Amazing video, need aks cluster deploy in existing network, any idea about this
stackoverflow.com/questions/70311005/attach-an-aks-cluster-to-an-existing-vnet-using-terraform
Thank you very much
You are welcome
Hello sir,
Question do you need acr for this ? What if I don’t use acr yet. Can I skip that part.
Yes, ACR is needed for storing docker images
why we are not declaring the min and max pods count? And how to define the cpu usage per pod?
everything worked perfectly except me accessing my cluster, any idea what all do I need to check my containers? when I tyope kubectl get nodes I get an error saying unable to connect to the server : EOF please advise
To Connect to the cluster, try sample command with your values
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster --overwrite-existing
@@DevOpsCoach worked perfectly.
I just am getting an invalid image error now, I think this is due to the code being changed because in the video its a bit different than what it is in git. I'll try to make some changes to the yaml and try
when ever i try to plan or apply it is asking var.acr_name enter value .. how to automate this?
Okay if you have time another quick question, since I am new to all this any idea why its creating two resource groups? I only want one to be created which contains all the things like identity, Load balancer etc should be in the same resource group. Any idea what part of code do I need to change for that to happen?
Hello can get script for Elastic Search cluster & Kibana (Self managed)
hi
seem you did not define VPC and Subnet for AKS cluster?
we don't have to explicitly create them, it will be created internally by Terraform
Hii sir
hello..
hello, where do I get this value from principal_id = azurerm_kubernetes_cluster.aks.kubelet_identity.0.object_id
hi kashifa , copy the same command but in place of aks replace with the actual name of your aks cluster 🙂