Skip to main content

Kubernetes (k8s) Tools

Kubernetes is a powerful platform for managing containerized applications, but working with its vast ecosystem can sometimes feel overwhelming. This guide introduces essential tools like kubectl, k9s, and kubectx, which simplify interacting with Kubernetes clusters and streamline day-to-day operations. Whether you're deploying applications, managing resources, or switching contexts, these tools empower developers and operators to work efficiently and effectively. Dive in to explore their installation and key usage tips to enhance your Kubernetes experience.

Prerequisite:

Before you are able to use the below tools, you would need to log into the appropriate cloud account. Please install p6m CLI and read through the Automatic SSO Configuration

kubectl

The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.

Install kubectl

https://kubernetes.io/docs/tasks/tools/

k9s

K9s is a terminal based UI to interact with your Kubernetes clusters. The aim of this project is to make it easier to navigate, observe and manage your deployed applications in the wild. K9s continually watches Kubernetes for changes and offers subsequent commands to interact with your observed resources.

Install k9s

https://k9scli.io/topics/install/

kubectx

kubectx is a tool to switch between contexts (clusters) on kubectl faster.

Install kubectx

https://github.com/ahmetb/kubectx?tab=readme-ov-file#installation

kubectx Usage

Show all k8s contexts

kubectx

Switch k8s

kubectx {context_name}