- This tutorial using minikube and kubectl please do install if you want to follow
- kubectl get nodes | kubectl get nodes -o wide #to see running nodes
- kubectl get deployment | kubectl get deployment -o wide #to see running deployment
- kubectl get pods | kubectl get pods-o wide #to see running pods
- kubectl get services | kubectl get svc | kubectl get svc -o wide | # to see running services
- kubectl get ingress | kubectl get ingress -o wide #to see running ingress
- kubectl delete deployment (name of deployment)
- kubectl delete service (name of service)
- kubectl delete pods (name of pods)
- kubectl delete ingress (name of ingress)
- kubectl logs pods (name of pods)
- kubectl exec -it (name of pods) -- /bin/bash
- kubectl scale deployment (name of deployment) --replicas=(number)
- kubectl set image deployment/ =
- kubectl rollout status deployment/my-app
- kubectl rollout undo deployment/
- kubectl describe pods (name of pods)
- kubectl describe service (name of service)
- kubectl describe deployment (name of deployment)
- kubectl describe ingress (name of ingress)
kubectl port-forward service name-of-service accessport:insideport
kubectl port-forward svc/service-nginx 8383:8383
kubectl logs namapods
minikube addons enable ingress
minikube tunnel