LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-edit

opens a resource's configuration in your default editor

TLDR

Edit deployment in editor
$ kubectl edit deployment [name]
copy
Edit pod
$ kubectl edit pod [pod-name]
copy
Edit with specific editor
$ EDITOR=nano kubectl edit deployment [name]
copy
Edit resource in YAML format
$ kubectl edit deployment [name] -o yaml
copy

SYNOPSIS

kubectl edit type/name [options]

DESCRIPTION

kubectl edit opens a resource's configuration in your default editor. Changes are applied when you save and exit. The resource is validated before applying. Set EDITOR or KUBE_EDITOR environment variable to change the editor.

PARAMETERS

-o, --output format

Edit format (yaml, json).
-n, --namespace name
Kubernetes namespace.
--record
Record command in resource annotation.

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

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