kubectl create deployment first-app --image=mjuyelrana/kub-first-app
kubectl get deployments
kubectl get pods
kubectl delete deployment first-app
kubectl get services
kubectl delete service first-app
kubectl expose deployment first-app --type=LoadBalancer --port=8080
kubectl scale deployment/first-app --replicas=3
9. Attaching new build to deployment [kub-first-app = Container name, mjuyelrana/kub-first-app= docker-hub image name]
kubectl set image deployment/first-app kub-first-app=mjuyelrana/kub-first-app
kubectl rollout status deployment/first-app
kubctl rollout history deployment/first-app
kubctl rollout history deployment/first-app --revision=1
kubectl rollout undo deployment/first-app --to-revision=1
kubectl apply -f=deployment.yaml
kubectl apply -f service.yaml
kubectl apply -f=deployment.yaml, service.yaml
4. Delete resources by yaml file/ Declarative fole [deployment.yaml=Yaml file for running deployment, service.yaml=Yaml file for attaching deployment]
kubectl delete -f=deployment.yaml,service.yaml
kubectl delete deployments,services -l group=second-app-label
kubectl get sc
kubectl get pv
kubectl get pvc
kubectl get configMap
kubectl get namespaces
minikube start
minikube stop
minikube status
minikube dashboard
minikube service first-app