Difference between revisions of "-l"
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]] | |
− |
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: