kubectl
Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/
KUBECONFIG | |
Path to the kubectl configuration (“kubeconfig”) file. Default: “$HOME/.kube/config” | |
KUBECTL_COMMAND_HEADERS | |
When set to false, turns off extra HTTP headers detailing invoked kubectl command (Kubernetes version v1.22 or later) |
- - Update the annotations on a resource
- kubectl api-resources - Print the supported API resources on the server
- - Print the supported API versions on the server, in the form of “group/version”
- kubectl apply - Apply a configuration to a resource by filename or stdin
- - Attach to a running container
- kubectl auth - Inspect authorization
- - Auto-scale a Deployment, ReplicaSet, or ReplicationController
- kubectl certificate - Modify certificate resources.
- - Display cluster info
- kubectl completion - Output shell completion code for the specified shell (bash or zsh)
- - Mark node as unschedulable
- kubectl cp - Copy files and directories to and from containers.
- - Create a resource from a file or from stdin.
- kubectl debug - Create debugging sessions for troubleshooting workloads and nodes
- - Delete resources by filenames, stdin, resources and names, or by resources and label selector
- kubectl describe - Show details of a specific resource or group of resources
- - Diff live version against would-be applied version
- kubectl drain - Drain node in preparation for maintenance
- - Edit a resource on the server
- kubectl exec - Execute a command in a container
- - Documentation of resources
- kubectl expose - Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service
- - Display one or many resources
- kubectl kustomize - Build a kustomization target from a directory or a remote url.
- - Print the logs for a container in a pod
- kubectl options - Print the list of flags inherited by all commands
- - Update field(s) of a resource
- kubectl plugin - Provides utilities for interacting with plugins.
- - Forward one or more local ports to a pod
- kubectl proxy - Run a proxy to the Kubernetes API server
- - Replace a resource by filename or stdin
- kubectl rollout - Manage the rollout of a resource
- - Run a particular image on the cluster
- kubectl scale - Set a new size for a Deployment, ReplicaSet or Replication Controller
- - Set specific features on objects
- kubectl taint - Update the taints on one or more nodes
- - Display Resource (CPU/Memory/Storage) usage.
- kubectl uncordon - Mark node as schedulable
- - Experimental: Wait for a specific condition on one or many resources.