![Kubectl create deployment command line](https://kumkoniak.com/11.jpg)
![kubectl create deployment command line kubectl create deployment command line](https://s7280.pcdn.co/wp-content/uploads/2018/12/revision3.png)
# Update all containers in all replication controllers in the project to have ENV=prod Kubectl set env deployment/sample-build STORAGE_DIR =/data -o yaml Kubectl set env pods -all -list # Output modified deployment in YAML, and does not alter the object on the server Kubectl set env deployment/sample-build -list # List the environment variables defined on all pods # List the environment variables defined on a deployments 'sample-build' Kubectl set env deployment/registry STORAGE_DIR =/local # Update deployment 'registry' with a new environment variable Kubectl run pi -schedule = "0/5 * * * ?" -image =perl -restart =OnFailure - perl -Mbignum =bpi -wle 'print bpi(2000)' Set Kubectl run pi -image =perl -restart =OnFailure - perl -Mbignum =bpi -wle 'print bpi(2000)' # Start the cron job to compute π to 2000 places and print it out every 5 minutes. # Start the perl container to compute π to 2000 places and print it out. Kubectl run nginx -image =nginx -command. # Start the nginx container using a different command and custom arguments. # Start the nginx container using the default command, but use custom arguments (arg1. Kubectl run -i -t busybox -image =busybox -restart =Never
![kubectl create deployment command line kubectl create deployment command line](https://code.visualstudio.com/assets/docs/azure/kubernetes/start-deployment.gif)
# Load the kubectl completion code for zsh into the current shell source " $' # Start a pod of busybox and keep it in the foreground, don't restart it if it exits. # Installing bash completion on Linux # Load the kubectl completion code for bash into the current shell source ~/.kube/ Kubectl completion bash > $(brew -prefix )/etc/bash_completion.d/kubectl # If you've installed via other means, you may need add the completion to your completion directory # Installing bash completion on macOS using homebrew # If running Bash 3.2 included with macOSīrew install If kubectl is installed via homebrew, this should start working immediately.
![Kubectl create deployment command line](https://kumkoniak.com/11.jpg)