Closed nickveldrin closed 3 weeks ago
Hi, I don't know why this happened; we have made several upgrades using Helm without any problems. Right now, I don't have the ability to replicate this issue using Terraform, but I can investigate similar cases or options that might help. In the meantime, if you haven't resolved it yet, you could try manually stopping the API pod or reinstalling from scratch.
I just deleted the old api pod and the new one came up, so it's okay there.
But yeah, I'm not exactly sure if it's my issue or a parameter/setting that can be adjusted in the chart/chart helper/deployment somewhere.
Feel free to close unless other folks report issues as well.
Thank you for the report. I will leave it open for a while in case there are further reports.
It looks like the parameter you need to set is in the deployment spec: StrategyType should be "Recreate".
By default it is "RollingUpdate", which won't work for pods with PVC's.
@nickveldrin unless your PVC is RWM.
@nickveldrin unless your PVC is RWM.
Yep!
I use terraform for my helm and kubernetes resources, so I adjusted the version from 0.1.7 to 0.1.8 and saw that the API pod was stuck trying to create.
When i described the pod, i got this error:
kubectl get pod for the namespace looks like this:
So the helm upgrade is stuck.
I'm not well versed enough in the deployment spec or helm options, but i would assume there's a way to handle this since i've seen other applications with pvc's that are able to terminate.