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 | |