Kubernetes Quick Reference

Basics

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

Configuration

CommandDescription
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

Pods

Resource Structure

KeyDescription
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.