Kubectl Help (CloudMonk.io)
kubectl help
Return to K8S Topics, Kubernetes
Kubernetes CLI: kubectl, kubectl Installation (brew install kubernetes-cli, choco install kubectl, kubectl --help,
Basic Commands (Beginner):
* kubectl create - Create a resource from a file or from stdin
* kubectl expose - Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service
* kubectl run - Run a particular image on the cluster
* kubectl set - Set specific features on objects
----
Basic Commands (Intermediate):
* kubectl explain - Get documentation for a resource
* kubectl get - Display one or many resources
* kubectl edit - Edit a resource on the server
* kubectl delete - Delete resources by file names, stdin, resources and names, or by resources and label selector
----
Deploy Commands:
* kubectl rollout - Manage the rollout of a resource
* 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:
* kubectl certificate - Modify certificate resources.
* kubectl cluster-info - Display cluster information
* kubectl top - Display resource (CPU/memory) usage
* kubectl cordon - Mark node as unschedulable
* kubectl uncordon - Mark node as schedulable
* kubectl drain - Drain node in preparation for maintenance
* kubectl taint - Update the taints on one or more nodes
----
Troubleshooting and Debugging Commands:
* kubectl describe - Show details of a specific resource or group of resources
* kubectl logs - Print the logs for a container in a pod
* kubectl attach - Attach to a running container
* kubectl exec - Execute a command in a container
* kubectl port-forward - Forward one or more local ports to a pod
* kubectl proxy - Run a proxy to the Kubernetes API server
* kubectl cp - Copy files and directories to and from containers
* kubectl auth - Inspect authorization
* 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 patch - Update fields of a resource
* kubectl replace - Replace a resource by file name or stdin
* kubectl wait - Experimental: Wait for a specific condition on one or many resources
* kubectl kustomize - Build a kustomization target from a directory or URL.
----
Settings Commands:
* kubectl label - Update the labels on a resource
* kubectl annotate - Update the annotations on a resource
* kubectl completion - Output shell completion code for the specified shell (bash, zsh, fish, or powershell)
----
Other Commands:
* kubectl alpha - Commands for features in alpha
* kubectl api-resources - Print the supported API resources on the server
* kubectl api-versions - Print the supported API versions on the server, in the form of "group/version"
* kubectl config - Modify kubeconfig files
* kubectl plugin - Provides utilities for interacting with plugins
* kubectl version - Print the client and server version information
Usage:
kubectl [flags] [options]
Use "kubectl --help" for more information about a given command.
Use "kubectl options" for a list of global command-line options (applies to all commands).
Kubernetes CLI: kubectl, kubectl Installation (brew install kubernetes-cli, choco install kubectl, kubectl --help, kubectl help
Basic Commands (Beginner):
* kubectl create - Create a resource from a file or from stdin
* kubectl expose - Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service
* kubectl run - Run a particular image on the cluster
* kubectl set - Set specific features on objects
----
Basic Commands (Intermediate):
* kubectl explain - Get documentation for a resource
* kubectl get - Display one or many resources
* kubectl edit - Edit a resource on the server
* kubectl delete - Delete resources by file names, stdin, resources and names, or by resources and label selector
----
Deploy Commands:
* kubectl rollout - Manage the rollout of a resource
* 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:
* kubectl certificate - Modify certificate resources.
* kubectl cluster-info - Display cluster information
* kubectl top - Display resource (CPU/memory) usage
* kubectl cordon - Mark node as unschedulable
* kubectl uncordon - Mark node as schedulable
* kubectl drain - Drain node in preparation for maintenance
* kubectl taint - Update the taints on one or more nodes
----
Troubleshooting and Debugging Commands:
* kubectl describe - Show details of a specific resource or group of resources
* kubectl logs - Print the logs for a container in a pod
* kubectl attach - Attach to a running container
* kubectl exec - Execute a command in a container
* kubectl port-forward - Forward one or more local ports to a pod
* kubectl proxy - Run a proxy to the Kubernetes API server
* kubectl cp - Copy files and directories to and from containers
* kubectl auth - Inspect authorization
* 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 patch - Update fields of a resource
* kubectl replace - Replace a resource by file name or stdin
* kubectl wait - Experimental: Wait for a specific condition on one or many resources
* kubectl kustomize - Build a kustomization target from a directory or URL.
----
Settings Commands:
* kubectl label - Update the labels on a resource
* kubectl annotate - Update the annotations on a resource
* kubectl completion - Output shell completion code for the specified shell (bash, zsh, fish, or powershell)
----
Other Commands:
* kubectl alpha - Commands for features in alpha
* kubectl api-resources - Print the supported API resources on the server
* kubectl api-versions - Print the supported API versions on the server, in the form of "group/version"
* kubectl config - Modify kubeconfig files
* kubectl plugin - Provides utilities for interacting with plugins
* kubectl version - Print the client and server version information
Usage:
kubectl [flags] [options]
Use "kubectl --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)
See navbar_k8s
----
Cloud Monk is Retired (impermanence |for now). Buddha with you. Copyright | © Beginningless Time - Present Moment - Three Times: The Buddhas or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.
----