Kubernetes Verbose CLI

Luca Berton
5 min readOct 30, 2024

When you run the command kubectrl node -v9, it seems like you're aiming for the kubectl command with extra verbosity (-v9):

kubectl get nodes -v9

Let’s break it down:

kubectl get nodes

This command is used to list all the nodes in your Kubernetes cluster. A node is a worker machine (VM or physical machine) in Kubernetes that runs Pods. Each node contains the necessary services to run containerized workloads, such as kubelet, container runtime, and kube-proxy.

-v9 Flag

The -v flag controls the verbosity of the output. The default verbosity level is 0, but you can increase it to get more detailed logs about the internal workings of the command. When you set -v9, it shows highly detailed debug information.

In this case, the command:

kubectl get nodes -v9

will:

  • List the nodes in the cluster, similar to kubectl get nodes.
  • Output highly verbose logs about what kubectl is doing, including information about API requests, authentication, and communication with the Kubernetes API server.

Example Output Without -v9:

kubectl get nodes
NAME STATUS ROLES AGE…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday