HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

k9s — View and manage Kubernetes clusters. More information: <https://k9scli.io/topics/commands/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandclimanagekubernetesclustersk9sview

Problem

How to use the k9s command: View and manage Kubernetes clusters. More information: <https://k9scli.io/topics/commands/>.

Solution

k9s — View and manage Kubernetes clusters. More information: <https://k9scli.io/topics/commands/>.

Manage a cluster using a kubeconfig context:
k9s --context {{kubeconfig_context_name}}


Manage a cluster in read-only mode (disabling all commands that may cause modifications):
k9s --readonly --cluster {{cluster_name}}


Manage a cluster using a given Kubernetes namespace:
k9s {{[-n|--namespace]}} {{kubernetes_namespace}} --cluster {{cluster_name}}


Manage a cluster launching k9s in the pod view and enable debug logging:
k9s {{[-c|--command]}} {{pod}} {{[-l|--logLevel]}} debug --cluster {{cluster_name}}

Code Snippets

Manage a cluster using a kubeconfig context

k9s --context {{kubeconfig_context_name}}

Manage a cluster in read-only mode (disabling all commands that may cause modifications)

k9s --readonly --cluster {{cluster_name}}

Manage a cluster using a given Kubernetes namespace

k9s {{[-n|--namespace]}} {{kubernetes_namespace}} --cluster {{cluster_name}}

Manage a cluster launching k9s in the pod view and enable debug logging

k9s {{[-c|--command]}} {{pod}} {{[-l|--logLevel]}} debug --cluster {{cluster_name}}

Context

tldr-pages: common/k9s

Revisions (0)

No revisions yet.