Difference between revisions of "-l"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  export POD_NAME=$([[kubectl get pods]] --namespace default -l "app=prometheus,component=server" -o [[jsonpath]]="{.items[0].metadata.name}")
+
  export POD_NAME=$([[kubectl get pods]] --namespace default -l "[[app=prometheus]],[[component=server]]" -o [[jsonpath]]="{.items[0].metadata.name}")
  
 +
 +
[[ktail -l]] app=myapp
  
 
== Related ==
 
== Related ==
 
* <code>[[kubectl get pods]]</code>
 
* <code>[[kubectl get pods]]</code>
 +
* <code>[[psql -l]]</code>
 +
* [[helm install prometheus]]
  
 +
== See also ==
 +
* {{K8s labels}}
 +
* {{kubectl get pods}}
  
 
+
[[Category:K8s]]
* {{K8s}}
 

Latest revision as of 13:25, 30 November 2023

Advertising: