kubectl

Table of contents

  1. kubectl
    1. Information
    2. Releases
    3. Installation
    4. Completion
    5. Usage
    6. Links

Kubernetes provides a command line tool for communicating with a Kubernetes cluster’s control plane, using the Kubernetes API.

This tool is named kubectl.

For configuration, kubectl looks for a file named config in the $HOME/.kube directory. You can specify other kubeconfig files by setting the KUBECONFIG environment variable or by setting the --kubeconfig flag.


Information

Source | Tracker | VCS | QA | Bugs


Releases

  • 1.31.4+ds-2 (sid | unstable )

If you are using an unlisted debian version probably that means this package it’s not available.


Installation

apt install kubectl

Completion

Completions will be installed for bash, zsh and fish shells.


Usage

For a quick guide, see the cheat sheet

If you’re used to using the docker command-line tool, kubectl for Docker Users explains some equivalent commands for Kubernetes.