84 lines
2.3 KiB
YAML
84 lines
2.3 KiB
YAML
image:
|
|
repository: bitnami/mariadb
|
|
pullPolicy: IfNotPresent
|
|
tag: 11.3.2@sha256:181080b3f8c42d9f57378fda848802b911c7609a23ba0619bb34c29471955aa6
|
|
|
|
includeCommon: true
|
|
workload:
|
|
main:
|
|
podSpec:
|
|
containers:
|
|
main:
|
|
env:
|
|
MARIADB_PASSWORD: "{{ .Values.password }}"
|
|
MARIADB_ROOT_PASSWORD: "{{ .Values.rootPassword }}"
|
|
MARIADB_USER: "{{ .Values.mariadbUsername }}"
|
|
MARIADB_DATABASE: "{{ .Values.mariadbDatabase }}"
|
|
MARIADB_EXTRA_FLAGS: "--init-file=/init/passinit.sql"
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/bash
|
|
- -ec
|
|
- "until /opt/bitnami/scripts/mariadb/healthcheck.sh; do sleep 2; done"
|
|
readiness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/bash
|
|
- -ec
|
|
- "until /opt/bitnami/scripts/mariadb/healthcheck.sh; do sleep 2; done"
|
|
startup:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/bash
|
|
- -ec
|
|
- "until /opt/bitnami/scripts/mariadb/healthcheck.sh; do sleep 2; done"
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
port: 3306
|
|
targetPort: 3306
|
|
securityContext:
|
|
container:
|
|
readOnlyRootFilesystem: false
|
|
runAsGroup: 0
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
mountPath: "/bitnami/mariadb"
|
|
passinit:
|
|
enabled: true
|
|
type: configmap
|
|
objectName: passinit
|
|
items:
|
|
- key: passinit.sql
|
|
path: passinit.sql
|
|
targetSelector:
|
|
main:
|
|
main:
|
|
subPath: passinit.sql
|
|
mountPath: /init/passinit.sql
|
|
|
|
configmap:
|
|
passinit:
|
|
enabled: true
|
|
data:
|
|
passinit.sql: |
|
|
ALTER USER root@'%' IDENTIFIED VIA mysql_native_password USING PASSWORD("{{ .Values.rootPassword }}");
|
|
ALTER USER {{ .Values.mariadbUsername }}@'%' IDENTIFIED VIA mysql_native_password USING PASSWORD("{{ .Values.password }}");
|
|
FLUSH PRIVILEGES;
|
|
|
|
mariadbUsername: "test"
|
|
mariadbDatabase: "test"
|
|
## DEVNOTE: These password defaults always need to match common
|
|
rootPassword: "PLACEHOLDERROOTPASSWORD"
|
|
password: "PLACEHOLDERPASSWORD"
|
|
portal:
|
|
open:
|
|
enabled: false
|