Hey! I think pulumi updated somehow (does it have ...
# general
Hey! I think pulumi updated somehow (does it have automatic updates?), and now it wants to add
<http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: "pulumi"
label to all my k8s resources (probably because of https://github.com/pulumi/pulumi-kubernetes/commit/f23736ef49b83864a518e8c34135a466ca1f1588). Is there a way to opt-out?
@busy-pizza-73563 Pulumi doesn’t automatically update, but you likely have
set to
in your
if you’re seeing different behavior now.
There’s currently no way to opt out of that label for any resources created by pulumi. Curious why you want/need that?
I didn't want to update all my deployments / daemonsets, as that would recreate all child pods, afaik.
I also think I found the "issue" - the older project had
0.20.1, and meanwhile I created another one, which installed 0.20.3, and added the newer plugin version in
. So I was running
in the older project, but it was using the newer version of the plugin.
Adding that label shouldn’t affect running workloads. You can check the preview diff to see what changes are expected.
pulumi preview --diff
FWIW, here’s a link to the relevant docs on recommended labels: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels
Are you sure? I know for sure that changing annotations recreates child pods, so I somehow thought changing labels has the same effect.
AFAIK, both annotations and labels in general are just metadata that you can change without further effect. There are cases where a controller acts on a specific label/annotation, e.g., updating Ingress settings, but that’s not the usual case. Would be very interested to see it if you have a counter example.
Yeah, sorry, I used annotations in the past (using helm 🙂 ) to restart pods in a deployment when a configmap changes, but it was actually
So I was under the wrong impression that changing annotations on a deployment also updates the pods.
Thanks for clearing that up! 🙂
Great! You had me a little worried there for a second, and I had to double-check to make sure I wasn’t crazy 😛
Btw, thanks for this amazing tool, it's everything I ever needed to manage kubernetes - especially that I come from a JS/TS background! 😄
🎉 1