I’m seeing some “bad” behavior when I’m deploying ...
# kubernetes
I’m seeing some “bad” behavior when I’m deploying a
whose replica count is controlled by an HPA. Basically when a
change happens, it will scale the replica set behind the deployment to
replica, destroying what the HPA has set. I originally had
replicas: 1
in the deployment spec, but I removed that and I still see this behavior. Anyone else experience this and is there a way to fix it?
I think this turned out to still happen when pulumi was “removing” the replica count from the deployment. Further deployments with the replica count removed doesn’t cause this.
you can set ignoreChanges in the pulumi customresourceoptions
Copy code
new x(name, { opts }, { ignoreChanges: 'spec.template.replicas' });
something like that IIRC
yeah, it’s just strange that this happens in the first place. it’s like pulumi completely takes over the replica sets to do it’s own thing. When applying raw yaml with this field set to
, this behavior isn’t experienced.