cheatsheet-kubernetes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cheatsheet-kubernetes [2025/07/20 05:47] – [MISC] sjoerd | cheatsheet-kubernetes [2025/10/26 19:59] (current) – sjoerd | ||
|---|---|---|---|
| Line 70: | Line 70: | ||
| kubectl top nodes --sort-by=cpu --no-headers | sort -k3 -n | kubectl top nodes --sort-by=cpu --no-headers | sort -k3 -n | ||
| kubectl top nodes --sort-by=memory --no-headers | sort -k3 -n | kubectl top nodes --sort-by=memory --no-headers | sort -k3 -n | ||
| + | </ | ||
| + | \\ | ||
| + | > Connect to nodes in a private aks cluster | ||
| + | <code bash> | ||
| + | # Based on https:// | ||
| + | # Get all the nodes | ||
| + | kubectl get nodes -o wide | ||
| + | # Start the debug command to connect to the node using an image from a private container registry | ||
| + | kubectl debug node/ | ||
| </ | </ | ||
| Line 113: | Line 122: | ||
| kubectl delete ns dev1 | kubectl delete ns dev1 | ||
| kubectl delete ns dev2 | kubectl delete ns dev2 | ||
| + | </ | ||
| + | |||
| + | > Set a default namespace | ||
| + | <code bash> | ||
| + | # Set the default namespace and expected output | ||
| + | kubectl config set-context --current --namespace=ops | ||
| + | Context " | ||
| </ | </ | ||
| Line 353: | Line 369: | ||
| --set controller.service.loadBalancerIP=" | --set controller.service.loadBalancerIP=" | ||
| </ | </ | ||
| + | |||
| + | //This wiki has been made possible by:// | ||
| + | |||
| + | < | ||
| + | <script async src=" | ||
| + | | ||
| + | <!-- Wiki End of Page --> | ||
| + | <ins class=" | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | < | ||
| + | | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
cheatsheet-kubernetes.1752990463.txt.gz · Last modified: by sjoerd
