This is an old revision of the document!

Kubernetes commands

kubectl --help

kubectl get all
kubectl get all -A
kubectl get all -n mynamespace

kubectl get nodes -o wide

kubectl apply -f myfile.yml
kubectl delete -f myfile.yml

kubectl get po [-o wide]
kubectl get svc [-o wide]
kubectl get deploy [-o wide]
kubectl get ns
kubectl get secret
kubectl get configmap
kubectl delete service,deployment NAME

Follow instructions here :

Then, you have a VM with Kubernetes installed :

minikube start # to start the VM
minikube stop # to stop the VM
minikube dashboard # to see the K8S Dashboard
minikube ssh # to connect to the VM with SSH, to see your docker images, etc.
  • k8s.1570378017.txt.gz
  • Last modified: 2019/10/06 18:06
  • by jdx