summaryrefslogtreecommitdiffstats
path: root/kubernetes/vid/templates/dbcmd-configmap.yaml
blob: 7c06e748f4083c9491198b7cfbc53d1b9286f21c (plain)
1
2
3
4
5
6
7
8
9
10
11
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "common.fullname" . }}-dbcmd-configmap
  namespace: {{ include "common.namespace" . }}
data:
 db_cmd.sh : |-
   #!/bin/sh
   #mysql -uroot -p${MYSQL_ROOT_PASSWORD} -h${MYSQL_HOST} -P3306 < /db-config/vid-pre-init.sql
   mysql -uvidadmin -p${MYSQL_PASSWORD} -h${MYSQL_HOST} -P3306 < /db-config/vid-pre-init.sql