Most common commands.
kubectl get nodes
kubectl get pods
kubectl get pods -A
kubectl describe pod nginx
kubectl logs nginx
kubectl exec -it nginx -- /bin/bash
kubectl get nodes
kubectl cluster-info
kubectl describe node worker1
You can manage Kubernetes in two ways:
1) Using Commands (kubectl)
You can manage Kubernetes resources directly from the command line using the kubectl command.
kubectl create deployment nginx --image=nginx
2) Using YAML Files
You can define Kubernetes resources in a YAML file and apply them to the cluster.
No comments:
Post a Comment
testing