Replies: 1 comment
-
Typically, this would be done via labels, defined as part of the Deployment, and then selecting the pods via a Label Selector. For example:
Given the Deployment defined above, all the labels defined in
Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a specific way to list pods that are associated with a deployment? Perhaps a function that accepts a deployment name and returns a list of pods? The only way I've been able to do this so far is by using pattern matching to see if the pod name begins with the deployment name, which isn't really sufficient.
It's easy to do in the GUI (Click on the deployment and view the 'pods' tab) but I can't find a solid way of doing it using the CLI. Any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions