I want to know is there a way to monitor the progress of a particular pod instead of seeing all pods?
For example I scale consleapp
oc scale dc consleapp --replicas=3
After that command I want to watch the progress of only consoleapp and ensure the pods are active.
I thought you'd be able to run this command
oc get pods consoleapp -watch but it does not work. Is there a way for me to monitor the progress of this? very similar to oc rollout status deploymentconfig/consoleapp --watch but without rolling out a new deployment.
When you run
oc get pods consoleapp, you're asking for a pod namedconsoleapp, which of course doesn't exist. If you want to watch all the pods managed by the DeploymentConfig, you can use the--selector(-l) option to select pods that match theselectorin your DeploymentConfig.If you have:
Then you would run:
If your
selectorhas multiple labels, combine them with commas:NB: DeploymentConfigs are considered deprecated and can generally be replaced by standard Kubernetes Deployments:
(from "Understanding Deployment and DeploymentConfig objects")