Difference between revisions of "-l"
Jump to navigation
Jump to search
(One intermediate revision by the same user 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}") |
Line 7: | Line 7: | ||
* <code>[[kubectl get pods]]</code> | * <code>[[kubectl get pods]]</code> | ||
* <code>[[psql -l]]</code> | * <code>[[psql -l]]</code> | ||
+ | * [[helm install prometheus]] | ||
== See also == | == See also == |
Latest revision as of 13:25, 30 November 2023
export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
ktail -l app=myapp
Related[edit]
See also[edit]
- Kubernetes labels, selectors, recommended labels
,
kubectl label, kubectl annotate
, Common,kubernetes.io, app.kubernetes.io, MatchLabels:
,labels:
kubectl get pods, -l, -n
,Running, Pending, Init
, ContainerCreating, ImagePullBackOff,Init:ImagePullBackOff, Terminating, ErrImagePull, Completed, InvalidImageName,kube-system
,ls_containers.sh
Advertising: