kubectl describe node lke13311-16405-5fafd1b46dcf: node details
- Conditions: if
Ready is false: 🔥
kubectl get pods: List pods
kubectl get events: List events such as OOMs
kubectl rollout restart deployment public-stats: Restart pod
kubectl apply -f logcord/deployment.yaml: Apply deployment change
kubectl logs deploy/bot --tail=10: See logs
kubectl get jobs: List jobs
kubectl get rs: List replica sets
kubectl get services: List services
kubectl get pvc --all-namespaces: List persistent volume claims
- Traefik dashboard:
kubectl port-forward -n kube-system (kubectl get pods -n kube-system --selector "[app.kubernetes.io/name=traefik](<http://app.kubernetes.io/name=traefik>)" --output=name) 9000:9000 then go to http://localhost:9000/dashboard/
kubectl port-forward deployments/snekbox 8060:8060: Port forward pods
kubectl auth can-i get pods: See if you can run a command
kubectl drain $node: Schedule pods away from a node
kubectl cordon $node: Stop k8s from scheduling a pod on this node