diff --git a/charts/weblate/Chart.yaml b/charts/weblate/Chart.yaml index 3a5317b6..2132fa04 100644 --- a/charts/weblate/Chart.yaml +++ b/charts/weblate/Chart.yaml @@ -4,7 +4,7 @@ appVersion: 4.18.2.1 description: Weblate is a free web-based translation management system. name: weblate type: application -version: 0.4.29 +version: 0.4.30 home: https://weblate.org/ icon: https://s.weblate.org/cdn/weblate.svg maintainers: diff --git a/charts/weblate/README.md b/charts/weblate/README.md index 0b48fd40..adc86655 100644 --- a/charts/weblate/README.md +++ b/charts/weblate/README.md @@ -1,6 +1,6 @@ # weblate -![Version: 0.4.29](https://img.shields.io/badge/Version-0.4.29-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.18.2.1](https://img.shields.io/badge/AppVersion-4.18.2.1-informational?style=flat-square) +![Version: 0.4.30](https://img.shields.io/badge/Version-0.4.30-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.18.2.1](https://img.shields.io/badge/AppVersion-4.18.2.1-informational?style=flat-square) Weblate is a free web-based translation management system. @@ -68,6 +68,9 @@ $ helm install my-release weblate/weblate | ingress.tls | list | `[]` | | | initContainers | list | `[]` | List of init containers to add to the pod. Values will be evaluated as Helm templates | | labels | object | `{}` | custom labels | +| livenessProbe.failureThreshold | int | `10` | | +| livenessProbe.initialDelaySeconds | int | `300` | | +| livenessProbe.periodSeconds | int | `30` | | | nameOverride | string | `""` | | | nodeSelector | object | `{}` | | | persistence.accessMode | string | `"ReadWriteOnce"` | | @@ -86,6 +89,9 @@ $ helm install my-release weblate/weblate | postgresql.enabled | bool | `true` | | | postgresql.postgresqlHost | string | `None` | External postgres database endpoint, to be used if `postgresql.enabled == false` | | postgresql.service.ports.postgresql | int | `5432` | | +| readinessProbe.failureThreshold | int | `2` | | +| readinessProbe.initialDelaySeconds | int | `60` | | +| readinessProbe.periodSeconds | int | `30` | | | redis.architecture | string | `"standalone"` | | | redis.auth.enabled | bool | `true` | | | redis.auth.existingSecret | string | `""` | | diff --git a/charts/weblate/templates/deployment.yaml b/charts/weblate/templates/deployment.yaml index b9ebf902..3cde8b96 100644 --- a/charts/weblate/templates/deployment.yaml +++ b/charts/weblate/templates/deployment.yaml @@ -176,20 +176,24 @@ spec: name: {{ .Values.externalSecretName }} {{- end }} {{- end }} + {{- with .Values.livenessProbe }} livenessProbe: httpGet: - path: {{ .Values.sitePrefix }}/healthz/ + path: {{ $.Values.sitePrefix }}/healthz/ port: http - failureThreshold: 10 - initialDelaySeconds: 300 - periodSeconds: 30 + failureThreshold: {{ .failureThreshold }} + initialDelaySeconds: {{ .initialDelaySeconds }} + periodSeconds: {{ .periodSeconds }} + {{- end }} + {{- with .Values.readinessProbe }} readinessProbe: httpGet: - path: {{ .Values.sitePrefix }}/healthz/ + path: {{ $.Values.sitePrefix }}/healthz/ port: http - failureThreshold: 5 - initialDelaySeconds: 300 - periodSeconds: 30 + failureThreshold: {{ .failureThreshold }} + initialDelaySeconds: {{ .initialDelaySeconds }} + periodSeconds: {{ .periodSeconds }} + {{- end }} volumeMounts: - mountPath: {{ .Values.persistence.filestore_dir }} name: weblate-data diff --git a/charts/weblate/values.yaml b/charts/weblate/values.yaml index 60743a4f..60ae5c95 100644 --- a/charts/weblate/values.yaml +++ b/charts/weblate/values.yaml @@ -163,6 +163,16 @@ tolerations: [] affinity: {} +livenessProbe: + initialDelaySeconds: 300 + periodSeconds: 30 + failureThreshold: 10 + +readinessProbe: + initialDelaySeconds: 60 + periodSeconds: 30 + failureThreshold: 2 + postgresql: auth: # PostgreSQL user should be a superuser to