Cheat Sheet
AKS tips and tricks.
Get cluster kubeconfig credentials
Backup your current kubeconfig.
Load Balancer
https://docs.microsoft.com/pt-br/azure/aks/internal-lb
Log Analytics
To enable AKS to store your pod logs, go to your AKS resource, Monitoring section, Logs. Create a workspace and enable logs.
To enable kube-apiserver logs go to your AKS Resource Group (the RG you created do deploy AKS service, not the RG that is automatically generated by AKS), Monitoring section, Diagnostic settings, click on your AKS from the list, on "Diagnostics settings" screen, click on "Add diagnostic setting".
Input a name, check "Send to Log Analytics", select you subscription and workspace, check the logs you want and click on save.
Wait a few minutes, then you query AzureDiagnostics
logs:
References
https://docs.microsoft.com/en-us/azure/aks/view-master-logs
SSH to nodes
Set your subscription.
Set an env var with your cluster resources RG.
Add your RSA key to the node.
Get your node IP.
Run a pod.
Install SSH client.
Setup the id_rsa file.
SSH to your node.
Last updated