Events which can be used during helm upgrade to be consumed in the docker image

10/27/2020

I am very new to Helm and Kubernetes. I have a use case where, whenever there is a helm upgrade

helm upgrade xxx --values yy.yaml

I need to trigger invocation of a method in my docker image which is deployed onto the kubernetes pods ,so that i can work on the changes encountered in yy.yaml in the image code . Do we have some way of doing it ? Please help me here.

-- ysn
kubernetes
kubernetes-helm

1 Answer

10/27/2020

Though your problem is not clear to me but i think, You can use helm hook to do the same thing. Please check documentation. You can certainly use pre-upgrade hook to invoke your function.

-- Taybur Rahaman
Source: StackOverflow