CommandDescription

kubectl cluster-info

Display Cluster Info
kubectl config viewDisplay Config

kubectl get pods

List all running Pods

kubectl get pods -o wide

List all pods in ps output format with more information (such as node name).

kubectl get pods --all-namespaces

List all pods in all namespaces
kubectl get nodes
List nodes

kubectl get rc,services


List all replication controllers and services together in ps output format.


kubectl logs <pod>

Display the logs for a service
kubectl logs -f <pod>Display the logs for a service







Minikube Commands

CommandDescription
minikube startStart
minikube stopStop
minikube dashboardDisplay dashboard
minikube sshlog into minikube

ssh -i ~/.minikube/machines/minikube/id_rsa docker@$(minikube ip)

log into minikube
cat ~/.minikube/machines/minikube/config.jsonView minikube config





Reference

ReferenceURL
Cheatsheethttps://kubernetes.io/docs/reference/kubectl/cheatsheet/
Kubectl for docker usershttps://kubernetes.io/docs/reference/kubectl/docker-cli-to-kubectl/