LinuxCommandLibrary

k9s

View and manage Kubernetes clusters.

TLDR

Manage a cluster using a kubeconfig context

$ k9s --context [kubeconfig_context_name]
copy


Manage a cluster in read-only mode (disabling all commands that may cause modifications)
$ k9s --readonly --cluster [cluster_name]
copy


Manage a cluster using a given kubernetes namespace
$ k9s --namespace [kubernetes_namespace] --cluster [cluster_name]
copy


Manage a cluster launching k9s in the pod view and enable debug logging
$ k9s --command [pod] --logLevel debug --cluster [cluster_name]
copy

Copied to clipboard