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] [-w]
kubectl get svc [-o wide] [-w]
kubectl get deploy [-o wide] [-w]
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.txt
  • Last modified: 2019/10/06 18:22
  • by jdx