Open
Description
There is a service name mismatch between the 'wait-for-db' check helper and the service name for mongodb being created by the chart, specifically right here:
stackstorm-k8s/templates/_helpers.tpl
Line 112 in b6419e6
You are looking for {{ $.Release.Name }}-mongodb-headless
when the service created matches {{ $.Release.Name }}-mongodb
. I would have created a pull request to fix, but was denied permission to push a branch.
Here is proof of the fix from my test environment:
root@stackstorm-st2client-5fff65dbfc-c7z8c:/opt/stackstorm# nc -z -w 2 stackstorm-mongodb-headless 27017 && echo 'broken'
nc: getaddrinfo for host "stackstorm-mongodb-headless" port 27017: Name or service not known
root@stackstorm-st2client-5fff65dbfc-c7z8c:/opt/stackstorm# nc -z -w 2 stackstorm-mongodb 27017 && echo 'working'
working
root@stackstorm-st2client-5fff65dbfc-c7z8c:/opt/stackstorm#