Minikube and kubectl
What is Minikube?

What is kubectl?
It’s the command line tool to interact with Minikube cluster or Cloud cluster

Main kubectl commands

kubectl get nodeskubectl get podskubectl get services
Create Deployment - abstraction of Pod
kubectl create deployment nginx-depl --image=nginxkubectl get deploymentkubectl get pod-
kubectl get replicaset - ReplicaSet is a layer between Deployment and Pod

Edit Deployment
kubectl edit deployment nginx-deplkubectl get podkubectl get replicaset
Debug
kubectl logs [pod-name]
Login to terminal of the Pod
kubectl exec -it [pod-name] -- bin/bashlsexit
Delete Deployment (Pod)
kubectl delete deployment mongo-depl
Apply the config file
kubectl apply -f [filename]
