| Command | Description |
|---|---|
for … do | Runs a for command multiple times as specified. |
kubectl apply | Applies a configuration to a resource. |
kubectl config get-clusters | Displays clusters defined in the kubeconfig. |
kubectl config get-contexts | Displays the current context. |
kubectl create | Creates a resource. |
kubectl delete | Deletes resources. |
kubectl describe | Shows details of a resource or group of resources. |
kubectl expose | Exposes a resource to the internet as a Kubernetes service. |
kubectl get | Displays resources. |
kubectl get pods | Lists all the Pods. |
kubectl get pods -o wide | Lists all the Pods with details. |
kubectl get deployments | Lists the deployments created. |
kubectl get services | Lists the services created. |
kubectl proxy | Creates a proxy server between a localhost and the Kubernetes API server. |
kubectl run | Creates and runs a particular image in a pod. |
kubectl version | Prints the client and server version information. |
Reference
Kubernetes: kubectl CLI Cheatsheet
Common kubectl commands for inspecting and managing Kubernetes resources.
views 0