kubectl_help

kubectl help

Return to K8S Topics, Kubernetes

Kubernetes CLI: kubectl, kubectl Installation (brew install kubernetes-cli, choco install kubectl, 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).

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)

See navbar_k8s


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


kubectl_help.txt · Last modified: 2024/05/01 04:40 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki