Closed kulla closed 2 years ago
Using subPath the volume is not updated automatically. https://kubernetes.io/docs/concepts/configuration/secret/#mounted-secrets-are-updated-automatically Anyways, I've deleted the old pod and the new one comes with the applied value. Please check if the behavior corresponds to the desired.
It is better to automatize it. I will see how to not use subPath
Typical workaround for such cases: add a checksum of the config as an environment variable to the pod. Since changes in environment variables will trigger a redeployment, this ensures that config updates are handled correctly. See e.g. https://github.com/serlo/infrastructure-modules-serlo.org/blob/main/server/main.tf#L78-L81.
Currently we have
sync.interval
set to6
in the fileconfig.json.tpl
(see https://github.com/serlo/infrastructure-modules-shared/blob/main/enmeshed/config.json.tpl#L22). However, when I have a look at/config.json
in the enmeshed container viakubectl exec <pod-name> -n data-wallet -i -t -- sh
there is the old number60
stored.