kind create cluster --config 01-cluster.
yaml
kind delete cluster --name dev-cluster
kubectl apply -f [Link]
kubectl get all
exec inside pod
kubectl exec -it pod/my-deploy-5c5b7bc6d7-bvwpc bash
kubectl get deployment
describe deployment:
kubectl describe deploy
getting logs of specific container that is inside a pod:
kubectl logs deploy/my-deploy will show log of any one container that is
running inside a pod
kubectl logs pod/my-deploy-5c5b7bc6d7-bvwpc
Rollout history
---------------
Switching from 1.1 to 1.2
kubectl rollout history deploy
let assume there is bug in 1.2 and we want to migrate from 1.2 to 1.1
kubectl rollout undo deploy/empapp-deploy
if you want to see more details:
kubectl rollout history deploy --revision=4
looks for service information:
--------------------------------
service/empapp-svc NodePort [Link] <none> 8080:30001/TCP 6s
now we can connect to the service using go to the browser and req for:
---------------------------------------
[Link]