Skip to content

Cluster Cheatsheet

This page contains a useful selection of commands to troubleshoot and manage your cluster.

Fluxcd

Show all Flux Resources:

Terminal window
flux get all -A

Show all Kustomizations:

Terminal window
flux get ks -A

Show all Helm-Releases:

Terminal window
flux get hr -A

Show all Flux objects which are not ready:

Terminal window
flux get all -A --status-selector ready=false

Helm

Get Values from a running deployment:

Terminal window
helm get values -n <namespace> <deployment-name>

Kubectl

Most of the following commands can be adapted to either show all namespaces -A or only show a specific namespace with -n <namespace>. Examples use the all namespaces flag. Additionally you can use additional commands like grep to sort and filter your results.

Show all Running Pods

Terminal window
kubectl get pods -A

Show all Services:

Terminal window
kubectl get svc -A

Show events:

Terminal window
kubectl get events -A

Describe a pod:

Terminal window
kubectl describe pod -n <namespace> podname

As you can see kubectl follows a certain pattern. The usual format is

Terminal window
kubectl (get/describe/delete/edit) <resource-type> -n <namespace>

An exception to this pattern is the logs command:

Terminal window
kubectl logs -n <namespace> <pod-name>

Talosctl

Show talos dashboard:

Terminal window
talosctl dashboard

Show talos kernel logs:

Terminal window
talosctl dmesg