Azure Login
az loginSet Subscription
az account set -s <id>Install kubectl — not required (optional)
az aks install-cliGet the following from sample-group resource group in azure portal by clicking on connect
az aks get-credentials --resource-group sample-group --name aks-staging
kubectl get deployments --all-namespaces=true
kubectl describe deployment my-dep --namespace sample-service
kubectl describe deployment sample-service --namespace default
kubectl get pods -l app.kubernetes.io/name=sample-service --all-namespaces=true
kubectl get pods -l app.kubernetes.io/name=sample-service --namespace default
kubectl logs -l app.kubernetes.io/name=sample-service --namespace defaultRestart pod to flush cache if db gets screwed (first delete db from azure)
kubectl scale deployments sample-service --replicas=0
kubectl scale deployments sample-service --replicas=1See active pods
kubectl get podsBrowse kubernetes on browser
az aks browse --resource-group sample-group --name aks-stagingGet the list of services
kubectl get servicePort forward pods
kubectl port-forward service/sample-service 8080:8080Replace the following commands for latest staging
az account set -s <id>
az aks get-credentials --resource-group <resource-group> --name aks-stg-eus2
az aks browse --resource-group <resource-group> --name aks-stg-eus2