Azure Kubernetes Service AKS
1 min read
azure, kubernetes
Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/azure-kubernetes-service-aks-playground.
learn azure kubernetes service
Running
# create resource group
az group create --name "my-aks-01" --location eastus
# create cluster
az aks create \
--resource-group "my-aks-01" \
--name "my-aks-01" \
--node-count 1 \
--location eastus \
--enable-addons monitoring \
--generate-ssh-keys
# set connectivity to cluster for kubectl
az aks get-credentials --resource-group "my-aks-01" --name "my-aks-01"
# list cluster nodes
kubectl get nodes
# deploy
kubectl apply -f azure-vote.yaml
# monitor deployment progress
kubectl get service azure-vote-front --watch
# open "EXTERNAL-IP" in browser to view webapp
# delete cluster
az group delete --name "my-aks-01" --yes --no-wait
