Cluster Management
kubectl
The kubectl command is used to interact with and manage a Kubernetes cluster. It allows administrators and developers to deploy applications, inspect resources, manage cluster components, and view logs. Essentially, kubectl acts as the command-line interface (CLI) for communicating with the Kubernetes API server to control the state of the cluster.
View cluster nodes
kubectl get nodes
View cluster info
kubectl cluster-info
View pods
kubectl get pods
View pod info
kubectl describe podname
View pod info, including running node
kubectl get pods -o wide
Deploy an application to the cluster
kubectl run podname --image=imagename
Delete a pod
kubectl delete pod podname
No Comments