Difference between revisions of "Kubectl annotate"

From wikieduonline
Jump to navigation Jump to search
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lc}}https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_annotate/
{{lc}}
 
  
 +
[[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 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 ebs-csi-controller-sa]]
 
  [[kubectl annotate serviceaccount ebs-csi-controller-sa]]
  
  [[kubectl annotate node]]
+
  [[kubectl annotate pod]] [[your-pod-name]] [[karpenter.sh/do-not-evict]]='true' -n [[yournamespace]]
 
+
[[your-pod-name]] [[annotated]]
  
 
== Activities ==
 
== Activities ==
 
* [[CKAD: Understand how to use Labels, Selector and Annotations]]
 
* [[CKAD: Understand how to use Labels, Selector and Annotations]]
 +
* [[Kubernetes annotations]]
 +
* [[Kubernetes labels]]: <code>[[kubectl label]]</code>
 +
 +
== Related ==
 +
* [[annotations:]]
  
 
== See also ==
 
== See also ==
 
* {{kubectl annotate}}
 
* {{kubectl annotate}}
 
* {{Kubernetes labels}}
 
* {{Kubernetes labels}}
 +
* {{Kubernetes annotations}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 20:55, 8 November 2023

Advertising: