Difference between revisions of "Kubernetes selectors"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
   [[kubectl get pods]] [[--selector]]=app=YOUR_APP -o=[[jsonpath]]='{.items[0].metadata.name}'
 
   [[kubectl get pods]] [[--selector]]=app=YOUR_APP -o=[[jsonpath]]='{.items[0].metadata.name}'
  
  [[kubectl get pods]] --field-selector [[status.]]phase=Running
+
  [[kubectl get pods]] --field-selector [[status.]]phase=Running <ref>https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/</ref>
  
 
  [[selector:]]
 
  [[selector:]]

Revision as of 06:09, 4 November 2022

Advertising: