This is similar to having a job
or task
restart/reload when a Vault value changes. However, instead of watching for Vault changes, I have a job that is watching for Consul service catalog changes.
I have run into a situation with a task
that has four templates. Each of them has dynamically generated data in it from Consul. When a service is added/removed/healthy/unhealthy etc the templates should re-render. After they are re-rendered, they should send a signal.
The problem I am seeing is that not all of the templates are being updated and not all are sending the signal.
To troubleshoot, I removed the change_mode
parameters on all but the main template. After I did this, the task started functioning as expected, minus the dynamic updates from the other templates.
I am guessing that a task
may not be able to handle multiple dynamically updating templates, that then also send a signal to the task. This being the case, I may need to combine some of the templates, or perhaps put them in sidecars.
Can anyone else confirm this?