Kubectl Link to heading
Kubernetes Command Line interface Link to heading
kubectl is essentially the command you will use most often to interface with Kubernetes. It is used to deploy and manage applications on k8s cluster. It is pronounced “cube-see-tee-ELL” and don’t let anyone tell you different! 😄
“k8s” is short for Kubernetes, where the number eight means the letters between ‘K’ and “s” in Kubernetes.
Your first command should be:
kubectl cluster-info
This will tell you about the state of the cluster.
kubectl get nodes
This will list all the nodes on cluster
kubectl run nginx --image=nginx
This will create a pod called “nginx” running the image “nginx”!