diff --git a/k8s/openstad/templates/api/deployment.yaml b/k8s/openstad/templates/api/deployment.yaml index 0eae8a45..6b6ab909 100644 --- a/k8s/openstad/templates/api/deployment.yaml +++ b/k8s/openstad/templates/api/deployment.yaml @@ -226,7 +226,7 @@ spec: initContainers: - command: ["/bin/sh", "-c"] args: - - nc {{.Release.Name}}-mysql 3306 -z -w1 && node migrate.js; + - nc $API_DATABASE_HOST 3306 -z -w1 && node migrate.js; env: - name: DB_TYPE value: mysql