Description:

  • Doc and Cheatsheet
  • Transform CLI command to and back of kube-apiserver’s api HTTPS call to control clusters
  • Must be configured to store credentials for each sluster (different Kubernetes Context)
    • stored in config file in $HOME/.kube/config
  • kubectl help and kubectl api-resources

Synopis:

  • kubectl [command] [TYPE] [NAME] [flags]
    • Types = Resourse types
      • Use kubectl api-resources for a complete list of supported resources.
    • -c argument to specify which container

0. Common flags:

  • -h,--help
  • -n,--namespace

1. Getting started:

2. App management:

3. Working with apps:

4. Cluster management:

5. Kubectl setting and usage: