Blame

aa9132 Steven Anderson 2024-12-30 11:00:42 1
# AKS
2
3
#### log into azure
4
az login
5
6
#### get account list and set
7
az account list -o table
8
az account set --subscription '<sub-name>'
9
10
#### get aks credentials so you can use kubectl
11
az aks list -o table
12
az aks get-credentials --resource-group <resource_grp> --name <name>
13
14
#### kubectl
15
kubectl get namespace
16
kubectl get nodes
17
kubectl get services
18
kubectl get pods --all-namespaces
19
kubectl get sc
20
21
#### storage
22
kubectl get pvc -n <pvcname>
23
kubectl get pv -n <pvname>
24
kubectl describe pvc <claimname> -n <namespace>
25
26
#### troubleshooting
27
kubectl describe pods -n <namespace>
28
kubectl logs <logname> -n <namespace>
29
kubectl logs <podname> -n <namespace>
30
kubectl exec --stdin --tty opensearch-cluster-master-0 -n <namespace> -- /bin/bash
31
curl --insecure -u admin:admin 'https://<cluster>:9200/_cat/indices?v'
32
33
#### restart
34
kubectl rollout restart deployment <deployment> -n <namespace>
35
kubectl delete pod <pod> -n <namespace>