Kubernetes Quick Reference


kubectl is the client app that communicates with the master nodes.


kubectl config ...Get/Set configuration
kubectl config current-contextGet current context. you are running against. A context element in a kubeconfig file is used to group access parameters under a convenient name. Each context has three parameters: cluster, namespace, and user.
kubectl config get-contextsGet a list of available contexts


Resource Structure

apiVersionKubernetes API version. Review each resource documentation for the API version string.
kindType of Resource. See kubectl api-resources for available resources
metadataInformation about the pod. See kubectl explain pods.metadata for more information.
specDescription of the pods contents. See kubectl explain pods.sepc for more information.

You can list the pods current structure with kubectl get pod [pod-name] -o yaml. The running structure has a lot more items in it.