kubernetes working with deployments : quick and easy
Do your deployment
kubectl run connectcd --image=kepung/dotnetapp-prod --port=5050
Check your deployment is deployed
kubectl get deployments
Get the pods spin up by your deployments and look for the labels :-
kubectl describe deployment/connectcd
kubectl get pods -l run=connectcd
NAME READY STATUS RESTARTS AGE
connectcd-545c87f8d8-j4fsv 1/1 Running 0 27s
connectcd-545c87f8d8-j4fsv is our pods
Get all the pods in all namespace
kubectl get pods --all-namespaces
Comments