mirror of
https://github.com/bitnami/charts.git
synced 2026-03-07 08:07:55 +08:00
[bitnami/prestashop] Feat: Add support for Startup Probes (#4595)
* feat: add startup probes support * doc: add startup probes documentation in README * version: change from 12.0.2 to 12.1.0 * change values for startupProbe
This commit is contained in:
@@ -29,4 +29,4 @@ name: prestashop
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-prestashop
|
||||
- https://prestashop.com/
|
||||
version: 12.0.2
|
||||
version: 12.1.0
|
||||
|
||||
@@ -88,6 +88,7 @@ The following table lists the configurable parameters of the PrestaShop chart an
|
||||
| `containerSecurityContext.runAsUser` | PrestaShop containers' Security Context | `1001` |
|
||||
| `customLivenessProbe` | Override default liveness probe | `nil` |
|
||||
| `customReadinessProbe` | Override default readiness probe | `nil` |
|
||||
| `customStartupProbe` | Override default startup probe | `nil` |
|
||||
| `existingSecret` | Name of a secret with the application password | `nil` |
|
||||
| `extraEnvVarsCM` | ConfigMap containing extra env vars | `nil` |
|
||||
| `extraEnvVarsSecret` | Secret containing extra env vars (in case of sensitive data) | `nil` |
|
||||
@@ -132,6 +133,7 @@ The following table lists the configurable parameters of the PrestaShop chart an
|
||||
| `smtpProtocol` | SMTP Protocol (options: ssl,tls, nil) | `nil` |
|
||||
| `smtpUser` | SMTP user | `nil` |
|
||||
| `smtpPassword` | SMTP password | `nil` |
|
||||
| `startupProbe` | Startup probe configuration | `Check values.yaml file` |
|
||||
| `tolerations` | Tolerations for pod assignment | `[]` (The value is evaluated as a template) |
|
||||
| `updateStrategy` | Deployment update strategy | `nil` |
|
||||
|
||||
|
||||
@@ -270,6 +270,22 @@ spec:
|
||||
{{- else if .Values.customReadinessProbe }}
|
||||
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.startupProbe.enabled }}
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: {{ .Values.startupProbe.path }}
|
||||
port: http
|
||||
httpHeaders:
|
||||
- name: Host
|
||||
value: {{ include "prestashop.host" . | quote }}
|
||||
initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
|
||||
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
|
||||
successThreshold: {{ .Values.startupProbe.successThreshold }}
|
||||
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
||||
{{- else if .Values.customStartupProbe }}
|
||||
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.resources }}
|
||||
resources: {{- toYaml .Values.resources | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -481,8 +481,8 @@ containerSecurityContext:
|
||||
enabled: true
|
||||
runAsUser: 1001
|
||||
|
||||
## Configure extra options for liveness and readiness probes
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
|
||||
## Configure extra options for liveness, readiness and startup probes
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
|
||||
livenessProbe:
|
||||
enabled: true
|
||||
path: /login
|
||||
@@ -499,6 +499,14 @@ readinessProbe:
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 6
|
||||
successThreshold: 1
|
||||
startupProbe:
|
||||
enabled: false
|
||||
path: /login
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 60
|
||||
successThreshold: 1
|
||||
|
||||
## Custom Liveness probe
|
||||
##
|
||||
@@ -508,6 +516,10 @@ customLivenessProbe: {}
|
||||
##
|
||||
customReadinessProbe: {}
|
||||
|
||||
## Custom Startup probe
|
||||
##
|
||||
customStartupProbe: {}
|
||||
|
||||
## lifecycleHooks for the container to automate configuration before or after startup.
|
||||
##
|
||||
lifecycleHooks:
|
||||
|
||||
Reference in New Issue
Block a user