DevOps/Kubernetes/kubectl

Kubectl is a command line interface for running commands against Kubernetes clusters.

To install in MacOS execute:

kubectl info commands

 * Verify running Pods:
 * Fetch metrics for PODNAME pod
 * Fetch metrics for PODNAME pod
 * Fetch metrics for PODNAME pod
 * Fetch metrics for PODNAME pod
 * Fetch metrics for PODNAME pod

kubectl operation commands

 * Connect to a Pod:

kubectl Command Reference
The following table includes short descriptions and the general syntax for all of the  operations:


 * Apply . Apply a configuration change to a resource from a file or stdin. Allows to create a Pod.


 * Attach :Attach to a running container either to view the output stream or interact with the container (stdin)


 * Auto Scale : Automatically scale the set of pods that are managed by a replication controller


 * Cluster Info  :Display endpoint information about the master and services in the cluster


 * Create : Create one or more resources from a file or stdin
 * (Create service account for your my_new_user)
 * (Create service account for your my_new_user)


 * Config:


 * Delete  :Delete resources


 * Describe  : Detailed state of one or more resources.


 * Edit  : Edit and update the definition of one or more resources on the server by using the default editor.


 * Execute : Execute a command against a container in a pod


 * Logs : Print the logs for a container in a pod.
 * (using labels: -l)


 * Get:


 * Replace:


 * Proxy:


 * Rolling-update:


 * Run : Run a specified image on the cluster.


 * Scale:


 * Stop


 * Version : Display the Kubernetes version running on the client and server.