- Getting the kube cluster info
$ kubectl cluster-info
$ kubectl cluster-info | grep master #(Getting the master node info-IP)
- Getting all node-info in a cluster and getting all attributes of nodes
$ kubectl get nodes
$ kubectl describe node <node-name>
- Getting deployed pods(full description)/(getting all attributes of pods) in a deployment
$ kubectl describe pod
$ kubectl describe pod pod_name #(can be used for getting the pod IP)
- Getting services lists and description
$ kubectl get service #svc
$ kubectl get service | grep service_name
$ kubectl describe svc/<service-name>
- Deploying the application after defining .yml file
$ kubectl create -f templates/appConfigFile.yml
$ kubectl delete -f templates/appConfigFile.yml
- minikube cmds
$ minikube start
$ minikube start --vm-driver=none #(On EC2)
$ minikube dashboard #(Do not try on EC2 rather try http://127.0.0.1:30000/)
$ minikube stop
$ minikube service web #(displaying the service for our web page)
git@gist.github.com:869085.git
git@github.com:ishaq4466/repoName.git