kubectl alpha Commands for features in alphakubectl alpha kuberc — Manage kuberc configuration fileskubectl alpha kuberc set — Set values in the kuberc configurationkubectl alpha kuberc view — Display the current kuberc configurationkubectl annotate Update the annotations on a resourcekubectl api-resources Print the supported API resources on the serverkubectl api-versions Print the supported API versions on the server, in the form of "group/version"kubectl apply Apply a configuration to a resource by file name or stdinkubectl apply edit-last-applied — Edit latest last-applied-configuration annotations of a resource/objectkubectl apply set-last-applied — Set the last-applied-configuration annotation on a live object to match the contents of a filekubectl apply view-last-applied — View the latest last-applied-configuration annotations of a resource/objectkubectl attach Attach to a running containerkubectl auth Inspect authorizationkubectl auth can-i — Check whether an action is allowedkubectl auth reconcile — Reconciles rules for RBAC role, role binding, cluster role, and cluster role binding objectskubectl auth whoami — Experimental: Check self subject attributeskubectl autoscale Auto-scale a deployment, replica set, stateful set, or replication controllerkubectl certificate Modify certificate resourceskubectl certificate approve — Approve a certificate signing requestkubectl certificate deny — Deny a certificate signing requestkubectl cluster-info Display cluster informationkubectl cluster-info dump — Dump relevant information for debugging and diagnosiskubectl completion Output shell completion code for the specified shell (bash, zsh, fish, or powershell)kubectl config Modify kubeconfig fileskubectl config current-context — Display the current-contextkubectl config delete-cluster — Delete the specified cluster from the kubeconfigkubectl config delete-context — Delete the specified context from the kubeconfigkubectl config delete-user — Delete the specified user from the kubeconfigkubectl config get-clusters — Display clusters defined in the kubeconfigkubectl config get-contexts — Describe one or many contextskubectl config get-users — Display users defined in the kubeconfigkubectl config rename-context — Rename a context from the kubeconfig filekubectl config set — Set an individual value in a kubeconfig filekubectl config set-cluster — Set a cluster entry in kubeconfigkubectl config set-context — Set a context entry in kubeconfigkubectl config set-credentials — Set a user entry in kubeconfigkubectl config unset — Unset an individual value in a kubeconfig filekubectl config use-context — Set the current-context in a kubeconfig filekubectl config view — Display merged kubeconfig settings or a specified kubeconfig filekubectl cordon Mark node as unschedulablekubectl cp Copy files and directories to and from containerskubectl create Create a resource from a file or from stdinkubectl create clusterrole — Create a cluster rolekubectl create clusterrolebinding — Create a cluster role binding for a particular cluster rolekubectl create configmap — Create a config map from a local file, directory or literal valuekubectl create cronjob — Create a cron job with the specified namekubectl create deployment — Create a deployment with the specified namekubectl create ingress — Create an ingress with the specified namekubectl create job — Create a job with the specified namekubectl create namespace — Create a namespace with the specified namekubectl create poddisruptionbudget — Create a pod disruption budget with the specified namekubectl create priorityclass — Create a priority class with the specified namekubectl create quota — Create a quota with the specified namekubectl create role — Create a role with single rulekubectl create rolebinding — Create a role binding for a particular role or cluster rolekubectl create secret — Create a secret using a specified subcommandkubectl create secret docker-registry — Create a secret for use with a Docker registrykubectl create secret generic — Create a secret from a local file, directory, or literal valuekubectl create secret tls — Create a TLS secretkubectl create service — Create a service using a specified subcommandkubectl create service clusterip — Create a ClusterIP servicekubectl create service externalname — Create an ExternalName servicekubectl create service loadbalancer — Create a LoadBalancer servicekubectl create service nodeport — Create a NodePort servicekubectl create serviceaccount — Create a service account with the specified namekubectl create token — Request a service account tokenkubectl debug Create debugging sessions for troubleshooting workloads and nodeskubectl delete Delete resources by file names, stdin, resources and names, or by resources and label selectorkubectl describe Show details of a specific resource or group of resourceskubectl diff Diff the live version against a would-be applied versionkubectl drain Drain node in preparation for maintenancekubectl edit Edit a resource on the serverkubectl events List eventskubectl exec Execute a command in a containerkubectl explain Get documentation for a resourcekubectl expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes servicekubectl get Display one or many resourceskubectl kustomize Build a kustomization target from a directory or URLkubectl label Update the labels on a resourcekubectl logs Print the logs for a container in a podkubectl options Print the list of flags inherited by all commandskubectl patch Update fields of a resourcekubectl plugin Provides utilities for interacting with pluginskubectl plugin list — List all visible plugin executables on a user's PATHkubectl port-forward Forward one or more local ports to a podkubectl proxy Run a proxy to the Kubernetes API serverkubectl replace Replace a resource by file name or stdinkubectl rollout Manage the rollout of a resourcekubectl rollout history — View rollout historykubectl rollout pause — Mark the provided resource as pausedkubectl rollout restart — Restart a resourcekubectl rollout resume — Resume a paused resourcekubectl rollout status — Show the status of the rolloutkubectl rollout undo — Undo a previous rolloutkubectl run Run a particular image on the clusterkubectl scale Set a new size for a deployment, replica set, or replication controllerkubectl set Set specific features on objectskubectl set env — Update environment variables on a pod templatekubectl set image — Update the image of a pod templatekubectl set resources — Update resource requests/limits on objects with pod templateskubectl set selector — Set the selector on a resourcekubectl set serviceaccount — Update the service account of a resourcekubectl set subject — Update the user, group, or service account in a role binding or cluster role bindingkubectl taint Update the taints on one or more nodeskubectl top Display resource (CPU/memory) usagekubectl top node — Display resource (CPU/memory) usage of nodeskubectl top pod — Display resource (CPU/memory) usage of podskubectl uncordon Mark node as schedulablekubectl version Print the client and server version informationkubectl wait Wait for a specific condition on one or many resources