← DevOps tools
CLI / Kubernetes

kubectl

The Kubernetes command-line client for inspecting clusters and creating, updating, and troubleshooting resources.

Why it exists.

It gives operators and developers a direct, scriptable interface to the Kubernetes API.

Where it shines.

Interactive cluster operations, diagnostics, automation scripts, and deployment workflows.

Where not to use it.

Do not use broad destructive commands casually or bypass reviewed declarative workflows for production changes.

What it is made of.

  • Kubernetes API
  • Contexts
  • Resources
  • Plugins
  • Output formats

How it works.

  1. kubectl loads the active context
  2. The command is translated into an API request
  3. The API server authenticates and authorizes it
  4. kubectl renders the response
Questions and answers.Open the interview practice set for kubectl.
Search