kubectl get all
kubectl get nodes
kubectl get pod
kubectl get services
kubectl create deployment nginx-depl --image=nginx
kubectl get deployment
kubectl get replicaset
kubectl edit deployment nginx-depl
kubectl logs {pod-name}
kubectl exec -it {pod-name} -- bin/bash
kubectl describe pod {pod-name}
kubectl get pod -o wide
kubectl get pod --watch
kubectl create deployment mongo-depl --image=mongo
kubectl logs mongo-depl-{pod-name}
kubectl describe pod mongo-depl-{pod-name}
kubectl delete deployment mongo-depl
kubectl delete deployment nginx-depl
vim nginx-deployment.yaml
kubectl apply -f nginx-deployment.yaml
kubectl get pod
kubectl get deployment
kubectl delete -f nginx-deployment.yaml
kubectl top
The kubectl top command returns current CPU and memory usage for a cluster’s pods or nodes, or for a particular pod or node if specified.