ivinco
Kubernetes at Your Fingertips

Kubernetes at Your Fingertips

Ivan MarovIvan Marov··Updated

Kubernetes, a powerful container orchestration platform, has become the go-to choice for managing and scaling applications. While kubectl is a versatile command-line tool for interacting with Kubernetes clusters, it can sometimes be challenging to remember and type all the necessary commands. Kube-dialog is a CLI tool that simplifies the process by providing a user-friendly interface to navigate and manage Kubernetes resources with ease.

Prerequisites

Before using kube-dialog, you need to have the 'dialog' utility installed on your system, as it is a crucial part of the script. To install 'dialog', use the following commands based on your distribution:

For Debian/Ubuntu:

apt install dialog

For CentOS/RHEL:

yum install dialog

Installation

To install kube-dialog, follow these simple steps:

  • Clone the GitHub repository:

  • Change to the kube-dialog directory:

  • Make sure 'kd' script is executable:

  • (Optional) Install the 'kd' script to /usr/bin for system-wide access:

Features

Kube-dialog is a dialog wrapper for the kubectl utility that operates with existing Kubernetes artifacts. While it cannot create resources, it does allow you to list, select, edit and delete them. Kube-dialog automatically adds hotkeys to the items in its menus, making it even more convenient to use.

Kube-Dialog Usage Example

Let's walk through a typical kube-dialog session to observe and manage Kubernetes resources:

  1. Select a cluster:

You will be presented with a list of available clusters. Use the arrow keys to navigate and the Enter key to select the desired cluster. The selected cluster will be remembered for the next kube-dialog run, so you won't have to select it again unless you want to change it.

Features - figure 1

  1. Select a namespace:

Once the cluster is selected, you will be prompted to choose a namespace. Again, use the arrow keys to navigate and the Enter key to select the appropriate namespace. The selected namespace will also be remembered for the next kube-dialog run, so you won't have to select it again unless you want to change it.

Features - figure 2

  1. Choose the type of object to observe:

After selecting the namespace, you will be presented with a list of object types to observe, such as pods, jobs, statefulsets, deployments, etc. Use the arrow keys to navigate, and press the Enter key to select the object type you want to observe.

Features - figure 3

  1. Select a specific object:

Kube-dialog will display a list of objects of the chosen type in the selected namespace. Use the arrow keys to navigate, and press the Enter key to select the object you want to work with.

Features - figure 4

  1. Choose an action:

Once you have selected a specific object, you will be presented with a list of available actions, such as get, describe, logs, delete, or start an interactive shell (for pods). Use the arrow keys to navigate, and press the Enter key to select the desired action.

Features - figure 5

  1. View results or perform the action:

Kube-dialog will generate the corresponding kubectl command for the chosen action and execute it. Depending on the action you chose, the details of the selected objects will be displayed in the terminal, the logs will be shown, the interactive shell will be launched, or the object will be deleted. This allows you to efficiently manage your Kubernetes resources.

The auto hotkeys assigned to menu items streamline the process, and the tool's ability to remember your selected cluster and namespace ensures that Kubernetes is always at your fingertips. Kube-dialog is a practical tool for engineers who frequently interact with Kubernetes clusters. It provides a fast, menu-driven interface that replaces repetitive kubectl typing with point-and-select navigation. If you manage multiple clusters daily, try kube-dialog — it puts the full power of Kubernetes right at your fingertips.


Need help with your Kubernetes setup? Talk to our infrastructure team — we've managed 1,350+ production servers and the first conversation is free.

Frequently Asked Questions

What is kube-dialog and how does it simplify Kubernetes management?

Kube-dialog is a CLI wrapper around kubectl that provides an interactive menu-driven interface for navigating Kubernetes resources. Instead of memorizing kubectl commands and flags, you select clusters, namespaces, and resources from menus. It remembers your last selections between sessions, making daily operations faster — especially useful for engineers managing multiple clusters.

What are the best CLI tools for managing Kubernetes clusters?

Beyond kubectl, useful tools include k9s (terminal UI for cluster monitoring), kubectx/kubens (fast context and namespace switching), stern (multi-pod log tailing), and kube-dialog (interactive menu interface). For configuration management, Helm and Kustomize are essential. The right toolset depends on your workflow — operators benefit from k9s, while developers often prefer kubectl with shell aliases.

How do you manage multiple Kubernetes clusters efficiently?

Use kubectx to switch between cluster contexts quickly and kubens to switch namespaces. Organize your kubeconfig with clear naming conventions. For production operations, use tools like k9s or kube-dialog that show cluster state at a glance. Set up shell prompts that display current context and namespace to prevent accidentally running commands against the wrong cluster.