2021-11-15 18:47:17 +00:00
|
|
|
image:
|
2021-12-05 11:44:43 +00:00
|
|
|
repository: ghcr.io/truecharts/mariadb
|
2021-11-15 18:47:17 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2022-06-11 07:31:56 +00:00
|
|
|
tag: v10.7.4@sha256:dd2042a79c38b92ec14b4c55b97c615c1c5f437f4f5b3e796a8fa7aa1c0a0865
|
2021-11-15 18:47:17 +00:00
|
|
|
|
|
|
|
controller:
|
|
|
|
# -- Set the controller type.
|
|
|
|
# Valid options are deployment, daemonset or statefulset
|
|
|
|
type: statefulset
|
|
|
|
# -- Number of desired pods
|
|
|
|
replicas: 1
|
|
|
|
# -- Set the controller upgrade strategy
|
|
|
|
# For Deployments, valid values are Recreate (default) and RollingUpdate.
|
|
|
|
# For StatefulSets, valid values are OnDelete and RollingUpdate (default).
|
|
|
|
# DaemonSets ignore this.
|
|
|
|
strategy: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
# -- Set deployment RollingUpdate max unavailable
|
|
|
|
unavailable: 1
|
|
|
|
# -- Set deployment RollingUpdate max surge
|
|
|
|
surge:
|
|
|
|
# -- Set statefulset RollingUpdate partition
|
|
|
|
partition:
|
|
|
|
# -- ReplicaSet revision history limit
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 3306
|
|
|
|
targetPort: 3306
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
|
2022-06-07 17:41:19 +00:00
|
|
|
secret:
|
|
|
|
credentials:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
mariadb-password: '{{ ( .Values.mariadbPassword | default "empty" ) }}'
|
|
|
|
mariadb-root-password: '{{ ( .Values.mariadbRootPassword | default "empty" ) }}'
|
|
|
|
|
|
|
|
env:
|
|
|
|
MARIADB_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: '{{ .Values.existingSecret | default ( printf "%s-credentials" ( include "tc.common.names.fullname" . ) ) }}'
|
|
|
|
key: "mariadb-password"
|
|
|
|
MARIADB_ROOT_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: '{{ .Values.existingSecret | default ( printf "%s-credentials" ( include "tc.common.names.fullname" . ) ) }}'
|
|
|
|
key: "mariadb-root-password"
|
|
|
|
MARIADB_USER: "{{ .Values.mariadbUsername }}"
|
|
|
|
MARIADB_DATABASE: "{{ .Values.mariadbDatabase }}"
|
2021-11-15 18:47:17 +00:00
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsGroup: 0
|
|
|
|
|
|
|
|
volumeClaimTemplates:
|
2021-11-15 19:50:10 +00:00
|
|
|
data:
|
2021-11-15 18:47:17 +00:00
|
|
|
enabled: true
|
2021-12-05 11:37:24 +00:00
|
|
|
mountPath: "/bitnami/mariadb"
|
2021-11-15 18:47:17 +00:00
|
|
|
|
|
|
|
# -- Probe configuration
|
|
|
|
# -- [[ref]](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
|
|
|
|
# @default -- See below
|
|
|
|
probes:
|
|
|
|
# -- Liveness probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
liveness:
|
|
|
|
# -- Enable the liveness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own livenessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
2022-03-20 22:56:33 +00:00
|
|
|
- "until /opt/bitnami/scripts/mariadb/healthcheck.sh; do sleep 2; done"
|
2021-11-15 18:47:17 +00:00
|
|
|
|
|
|
|
# -- Redainess probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
readiness:
|
|
|
|
# -- Enable the readiness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own readinessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default readinessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the readinessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
2022-03-20 22:56:33 +00:00
|
|
|
- "until /opt/bitnami/scripts/mariadb/healthcheck.sh; do sleep 2; done"
|
2021-11-15 18:47:17 +00:00
|
|
|
# -- Startup probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
startup:
|
|
|
|
# -- Enable the startup probe
|
|
|
|
enabled: true
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
2022-03-20 22:56:33 +00:00
|
|
|
- "until /opt/bitnami/scripts/mariadb/healthcheck.sh; do sleep 2; done"
|
2021-11-15 18:47:17 +00:00
|
|
|
|
|
|
|
mariadbPassword: "testpass"
|
|
|
|
mariadbUsername: "test"
|
|
|
|
mariadbDatabase: "test"
|
|
|
|
mariadbRootPassword: "testroot"
|
|
|
|
existingSecret: ""
|