LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-explain

shows resource and field documentation

TLDR

Explain resource
$ kubectl explain [pod]
copy
Explain field
$ kubectl explain [pod.spec]
copy
Explain nested field
$ kubectl explain [pod.spec.containers]
copy
Show recursive structure
$ kubectl explain [pod] --recursive
copy
Explain specific API version
$ kubectl explain [deployment] --api-version=[apps/v1]
copy

SYNOPSIS

kubectl explain [options] resource

DESCRIPTION

kubectl explain shows resource and field documentation. It displays the schema for Kubernetes objects.The command helps write manifests correctly. It shows field types, defaults, and descriptions.

PARAMETERS

RESOURCE

Resource type and optional field path.
--recursive
Show all fields recursively.
--api-version VERSION
Explain specific API version.
--help
Display help information.

INSTALL

sudo apt install kubectl
copy
sudo pacman -S kubectl
copy
sudo apk add kubectl
copy
brew install kubectl
copy
nix profile install nixpkgs#kubectl
copy

CAVEATS

Subcommand of kubectl. Documentation from API server. Varies by Kubernetes version.

HISTORY

kubectl explain provides built-in API documentation for Kubernetes resource authoring.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid