Hi, Is there any way to apply annotations on all running replica pods in the dep . . .

Srinivas Bevara:
Hi, Is there any way to apply annotations on all running replica pods in the deployment using command line? Annotations are needed at POD level.

One option is like edit deployment and update in spec.template.metadata section. Is it possible to do via "kubectl annotate " command?

William H.:
not sure you can do it via kubectl annotate…you may have to update the spec.template.metadata section to get what you want

Srinivas Bevara:
yes, we can update it using ‘kubectl edit’… but it could lead to typo and spaces. It would be great if just apply annotate directly on all pods.

William H.:
applying the annotation in pod template section of the deployment will affect all pods…albeit new pods will be rolled out