Skip to content

Commit

Permalink
fix(helm): Remove hardcoded hostname from nc command and use env vari…
Browse files Browse the repository at this point in the history
…able instead. This is an issue when you use an external mysql database.
  • Loading branch information
Badmuts committed Sep 22, 2021
1 parent 324b76e commit 33b2862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/openstad/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33b2862

Please sign in to comment.