Kubernetes CLI: kubectl, kubectl Installation (brew install kubernetes-cli, choco install kubectl, kubectl --help, kubectl help
Basic Commands (Beginner):
Basic Commands (Intermediate):
kubectl delete - Delete resources by file names, stdin, resources and names, or by resources and label selector
Deploy Commands:
kubectl scale - Set a new size for a deployment, replica set, or replication controller
kubectl autoscale - Auto-scale a deployment, replica set, stateful set, or replication controller
Cluster Management Commands:
Troubleshooting and Debugging Commands:
kubectl cp - Copy files and directories to and from containers
kubectl debug - Create debugging sessions for troubleshooting workloads and nodes
Advanced Commands:
kubectl diff - Diff the live version against a would-be applied version
kubectl apply - Apply a configuration to a resource by file name or stdin
kubectl wait - Experimental: Wait for a specific condition on one or many resources
Settings Commands:
kubectl completion - Output shell completion code for the specified shell (bash, zsh, fish, or powershell)
Other Commands:
kubectl api-versions - Print the supported
API versions on the server, in the form of “group/version”
Usage:
kubectl [flags] [options]
Use “kubectl <command> –help” for more information about a given command.
Use “kubectl options” for a list of global command-line options (applies to all commands).
navbar_kubectl - see also navbar_kubernetes)