shell.azure.com
https://azure.github.io/Cloud-Native/cnny-2023/fundamentals-day-4/
az login
Ref:- https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli
Create a resource group:
az group create --name myResourceGroup --location eastus
*Create a AKS cluster.
az aks create --resource-group myResourceGroup --name myAKSCluster --enable-managed-identity --node-count 1 --generate-ssh-keys
**Connect to the cluster
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
Sample:
raj [ ~ ]$ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
Merged "myAKSCluster" as current context in /home/raj/.kube/config
raj [ ~ ]$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
aks-nodepool1-11856392-vmss000000 Ready agent 12m v1.27.9
** delete the cluster
az group delete --name myResourceGroup --yes --no-wait
====================Storage============================================
By default AKS gives below sc's, So we don't need to create our own storage class
The default storage class looks like below.
kubectl apply -f storage-pvc
0 Comments