Difference between revisions of "Kubectl annotate"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
[[kubectl annotate pods]] my-nginx-v4-9gw19 description='my frontend running nginx' | [[kubectl annotate pods]] my-nginx-v4-9gw19 description='my frontend running nginx' | ||
[[kubectl get pods]] my-nginx-v4-9gw19 -o yaml | [[kubectl get pods]] my-nginx-v4-9gw19 -o yaml | ||
+ | |||
+ | [[kubectl annotate storageclass gp2 storageclass.kubernetes.io/is-default-class=true]] | ||
[[kubectl annotate serviceaccount]] | [[kubectl annotate serviceaccount]] |
Revision as of 13:30, 30 December 2022
This article is a Draft. Help us to complete it.
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_annotate/
kubectl annotate --help kubectl annotate pods kubectl annotate serviceaccount kubectl annotate node
Examples
kubectl annotate pods my-nginx-v4-9gw19 description='my frontend running nginx' kubectl get pods my-nginx-v4-9gw19 -o yaml
kubectl annotate storageclass gp2 storageclass.kubernetes.io/is-default-class=true
kubectl annotate serviceaccount kubectl annotate serviceaccount ebs-csi-controller-sa
Activities
See also
kubectl annotate [ serviceaccount | pods | node | storageclass ]
- Kubernetes labels, selectors, recommended labels
,
kubectl label, kubectl annotate
, Common,kubernetes.io, app.kubernetes.io, MatchLabels:
,labels:
- Kubernetes annotations,
kubectl annotate, eks.amazonaws.com, annotations.kubernetes.io, annotations:, ingress.annotations
Advertising: