Difference between revisions of "Kubectl annotate"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
[[kubectl annotate serviceaccount]] | [[kubectl annotate serviceaccount]] | ||
[[kubectl annotate node]] | [[kubectl annotate node]] | ||
− | |||
== Examples == | == Examples == | ||
Line 23: | Line 22: | ||
* [[Kubernetes annotations]] | * [[Kubernetes annotations]] | ||
* [[Kubernetes labels]]: <code>[[kubectl label]]</code> | * [[Kubernetes labels]]: <code>[[kubectl label]]</code> | ||
+ | |||
+ | == Related == | ||
+ | * [[annotations:]] | ||
== See also == | == See also == |
Latest revision as of 20:55, 8 November 2023
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_annotate/
kubectl annotate --help kubectl annotate pods kubectl annotate serviceaccount kubectl annotate node
Contents
Examples[edit]
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
kubectl annotate pod your-pod-name karpenter.sh/do-not-evict='true' -n yournamespace your-pod-name annotated
Activities[edit]
- CKAD: Understand how to use Labels, Selector and Annotations
- Kubernetes annotations
- Kubernetes labels:
kubectl label
Related[edit]
See also[edit]
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: