[bitnami/mariadb] Add options for image's builtin startup check (#6686)

* [bitnami/mariadb] Add options for image's builtin startup check (bitnami-docker-mariadb#240)

* [bitnami/mariadb] Add new values to README.md
This commit is contained in:
Serge Tkatchouk
2021-06-23 18:29:38 +08:00
committed by GitHub
parent 7243258988
commit 49cdd44ca2
4 changed files with 38 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ The following table lists the configurable parameters of the MariaDB chart and t
| `primary.readinessProbe` | Readiness probe configuration for MariaDB primary containers | Check `values.yaml` file |
| `primary.customLivenessProbe` | Override default liveness probe for MariaDB primary containers | `nil` |
| `primary.customReadinessProbe` | Override default readiness probe for MariaDB primary containers | `nil` |
| `primary.startupWaitOptions` | Override default builtin startup wait check options for MariaDB primary containers | `{}` |
| `primary.resources.limits` | The resources limits for MariaDB primary containers | `{}` |
| `primary.resources.requests` | The requested resources for MariaDB primary containers | `{}` |
| `primary.extraEnvVars` | Extra environment variables to be set on MariaDB primary containers | `{}` |
@@ -179,6 +180,7 @@ The following table lists the configurable parameters of the MariaDB chart and t
| `secondary.readinessProbe` | Readiness probe configuration for MariaDB secondary containers | Check `values.yaml` file |
| `secondary.customLivenessProbe` | Override default liveness probe for MariaDB secondary containers | `nil` |
| `secondary.customReadinessProbe` | Override default readiness probe for MariaDB secondary containers | `nil` |
| `secondary.startupWaitOptions` | Override default builtin startup wait check options for MariaDB secondary containers | `{}` |
| `secondary.resources.limits` | The resources limits for MariaDB secondary containers | `{}` |
| `secondary.resources.requests` | The requested resources for MariaDB secondary containers | `{}` |
| `secondary.extraEnvVars` | Extra environment variables to be set on MariaDB secondary containers | `{}` |

View File

@@ -160,6 +160,12 @@ spec:
- name: MARIADB_EXTRA_FLAGS
value: "{{ .Values.primary.extraFlags }}"
{{- end }}
{{- if .Values.primary.startupWaitOptions }}
- name: MARIADB_STARTUP_WAIT_RETRIES
value: "{{ .Values.primary.startupWaitOptions.retries | default 300 }}"
- name: MARIADB_STARTUP_WAIT_SLEEP_TIME
value: "{{ .Values.primary.startupWaitOptions.sleepTime | default 2 }}"
{{- end }}
{{- if .Values.primary.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.primary.extraEnvVars "context" $) | nindent 12 }}
{{- end }}

View File

@@ -149,6 +149,12 @@ spec:
- name: MARIADB_EXTRA_FLAGS
value: "{{ .Values.secondary.extraFlags }}"
{{- end }}
{{- if .Values.secondary.startupWaitOptions }}
- name: MARIADB_STARTUP_WAIT_RETRIES
value: "{{ .Values.secondary.startupWaitOptions.retries | default 300 }}"
- name: MARIADB_STARTUP_WAIT_SLEEP_TIME
value: "{{ .Values.secondary.startupWaitOptions.sleepTime | default 2 }}"
{{- end }}
{{- if .Values.secondary.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.secondary.extraEnvVars "context" $) | nindent 12 }}
{{- end }}

View File

@@ -286,6 +286,18 @@ primary:
##
customReadinessProbe: {}
## MariaDB startup wait options
## `bitnami/mariadb` Docker image has built-in startup check mechanism,
## which periodically checks if MariaDB service has started up and stops it
## if all checks have failed after X tries. Use these to control these checks.
## ref: https://github.com/bitnami/bitnami-docker-mariadb/pull/240
## Example (with default options):
## startupWaitOptions:
## retries: 300
## waitTime: 2
##
startupWaitOptions: {}
## MariaDB primary additional command line flags
## Can be used to specify command line flags, for example:
## E.g.
@@ -586,6 +598,18 @@ secondary:
##
customReadinessProbe: {}
## MariaDB startup wait options
## `bitnami/mariadb` Docker image has built-in startup check mechanism,
## which periodically checks if MariaDB service has started up and stops it
## if all checks have failed after X tries. Use these to control these checks.
## ref: https://github.com/bitnami/bitnami-docker-mariadb/pull/240
## Example (with default options):
## startupWaitOptions:
## retries: 300
## waitTime: 2
##
startupWaitOptions: {}
## MariaDB secondary additional command line flags
## Can be used to specify command line flags, for example:
## E.g.