cheatsheet-kubernetes
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cheatsheet-kubernetes [2025/06/01 11:59] – created - external edit 127.0.0.1 | 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 283: | Line 299: | ||
| # Open the terminal (click terminal icon next to the name) | # Open the terminal (click terminal icon next to the name) | ||
| grafana cli admin reset-admin-password < | grafana cli admin reset-admin-password < | ||
| + | </ | ||
| + | \\ Check for kafka topics | ||
| + | <code bash> | ||
| + | # open a terminal on one of the kafka brokers (eg kafka-kafka-0) | ||
| + | ./ | ||
| + | </ | ||
| + | \\ Get all resource kinds with their name from a manifest: | ||
| + | <code bash> | ||
| + | cat opentelemetry-operator.yaml | grep -i ' | ||
| </ | </ | ||
| Line 344: | 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.1748779162.txt.gz · Last modified: by 127.0.0.1
