Command:
#Enter container
kubectl exec -it container bash -- sh
#Create yaml file
kubectl run nginx --image=nginx --dry-run=client
kubectl run nginx --image=nginx --dry-run=client -o yaml
kubectl run nginx --image=nginx --dry-run=client -o yaml > pod-new.yaml
#show container labels
kubectl get pods nginx-pod --show-labels
#Pod details
kubectl get pods -o wide
#Node details
kubectl get nodes -o wide
#Rollout History
kubectl rollout history deploy/nginx-deploy
#Show image version
kubectl describe deploy/nginx-deploy
#Rollout undo
kubectl rollout undo deploy/nginx-deploy
#Create kind cluster with port mapping
kind create cluster --config kind.yaml --name cka-cluster3
#Service details
kubectl describe svc svc name