Jsonpath — all container images kubectl
Enumerate every container image running in the cluster
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{range .spec.containers[*]}{.image}{"\n"}{end}{end}'
more kubectl
all 73 commands →
Switch kubeconfig context
kubectl config use-context <context>
List kubeconfig contexts
kubectl config get-contexts
Merge kubeconfigs
KUBECONFIG=~/.kube/config:~/.kube/cluster2.yaml kubectl config view --flatten > ~/.kube/merged.yaml
Set default namespace for context
kubectl config set-context --current --namespace=<ns>
Get cluster info
kubectl cluster-info