LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-set

updates resource fields

TLDR

Set image
$ kubectl set image deployment/[name] [container]=[image:tag]
copy
Set environment
$ kubectl set env deployment/[name] [KEY=value]
copy
Set resources
$ kubectl set resources deployment/[name] -c [container] --limits=[cpu=200m,memory=512Mi]
copy
Set service account
$ kubectl set serviceaccount deployment/[name] [sa-name]
copy
Set selector
$ kubectl set selector service/[name] [app=myapp]
copy

SYNOPSIS

kubectl set command [options]

DESCRIPTION

kubectl set updates resource fields. It modifies specific aspects of running workloads.The command is faster than full apply for targeted changes. It triggers rollouts for deployments.

PARAMETERS

image RESOURCE CONTAINER=IMAGE

Update container image.
env RESOURCE VAR=VALUE
Set environment variables.
resources RESOURCE
Set resource limits.
serviceaccount RESOURCE SA
Set service account.
selector RESOURCE LABELS
Set selector.
--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. Triggers rollout. Consider apply for declarative management.

HISTORY

kubectl set provides targeted resource updates for Kubernetes operational tasks.

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