Difference between revisions of "K8s troubleshooting"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
Line 7: Line 7:
  
 
kubectl get node
 
kubectl get node
 +
kubectl debug node/aks-nodepool1-12345678-0 -it --image=ubuntu
 
kubectl debug node/aks-nodepool1-12345678-vmss000000 -it --image=mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.11
 
kubectl debug node/aks-nodepool1-12345678-vmss000000 -it --image=mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.11
 
exit
 
exit

Latest revision as of 22:57, 13 August 2024

kubectl run -it --rm --restart=Never --image=ubuntu --overrides='{"spec": {"hostPID": true, "nodeSelector": {"kubernetes.io/hostname": "aks-default-14050942-vmss000000"}}}' debug-shell -- dpkg --list
https://zigmax.net/aks-ssh-to-an-aks-node-with-kubectl/

kubectl get node
kubectl debug node/aks-nodepool1-12345678-0 -it --image=ubuntu
kubectl debug node/aks-nodepool1-12345678-vmss000000 -it --image=mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.11
exit
kubectl delete  pod/node-debugger-aks-default-30216496-vmss000003-7f7v7
kubectl run -it --rm --restart=Never --image=ubuntu --overrides='{"spec": {"hostPID": true, "nodeSelector": {"kubernetes.io/hostname": "aks-default-1234-vms000000"}}}' debug-shell -- dpkg --list