Rollout deployment based on selector in kubernetes

Viewed 35

In the namespace, I have multiple applications deployed. I would like to rollout the deployment based on selector. Can someone please share how to achieve it?

Thanks

1 Answers

You can achieve that by:

kubectl rollout status deployment --selector="key=value"

But this argument is added in kubctl v1.24, so if you have a lower version, you need to update it.

Related