It is a kubernetes command line tool. It controls the Kubernetes cluster manager. It allows to run commands against our cluster.
kubectl version
- show the client and server version infokubectl api-resources
- show all Kubernetes resourceskubectl run hello-nginx --image=nginx:latest --port=80
- start a nginx pod, let the container expose port 80kubectl get pod hello-nginx -o wide
- show one-liner info about the pod