https://pulumi.com logo
#kubernetes
Title
# kubernetes
m

miniature-leather-70472

04/23/2021, 3:53 PM
Has anyone worked with the Prometheus helm chart with Pulumi? I've been able to deploy it initially without issue, however when it comes to upgrading the version it fails, it seems that Pulumi creates a new replica set and waits for it to be ready before turning the old one down to 0, however Prometheus server pod can't start becuause it can't get a lock on the volume, because the old pod is still using it. Going in and setting the old replica set to 0 resolves it. Anyone have an idea on resolving this?
b

billowy-army-68599

04/23/2021, 4:53 PM
hmm i haven't confirmed, but I think this might be related to helm hooks. do you get a hook warning when you provision the helm chart?
p

proud-pizza-80589

04/24/2021, 8:12 AM
@miniature-leather-70472 had the same, the trick is to change the strategy to Recreate
Copy code
values: {
          server: {
            strategy: {
              type: 'Recreate',
            },
            ...
m

miniature-leather-70472

05/11/2021, 7:26 AM
@proud-pizza-80589 thanks, will try that out
3 Views