diff --git a/charts/gitea/Chart.yaml b/charts/gitea/Chart.yaml index de42088737adf2e4f705ba6f21c99994cdabd70e..eb5f5427f35e1e14a960e0657102ed8fcc2aec43 100644 --- a/charts/gitea/Chart.yaml +++ b/charts/gitea/Chart.yaml @@ -8,10 +8,10 @@ maintainers: - name: groundhog2k # This is the chart version -version: 0.4.11 +version: 0.4.12 # This is the version number of the application being deployed. -appVersion: "1.15.8" +appVersion: "1.15.9" dependencies: - name: mariadb diff --git a/charts/gitea/README.md b/charts/gitea/README.md index a4de6f5137b2063e4fd15648f7a05fea33d46787..1d22c4805d51e82ac35a6cd57ac81666137ad54a 100644 --- a/charts/gitea/README.md +++ b/charts/gitea/README.md @@ -1,6 +1,6 @@ # Gitea -   +   A Helm chart for Gitea on Kubernetes @@ -63,8 +63,10 @@ $ helm uninstall my-release | image.tag | string | `""` | Image tag | | imagePullSecrets | list | `[]` | Image pull secrets | | strategy.type | object | `Recreate` | Pod deployment strategy | +| startupProbe | object | `see values.yaml` | Startup probe configuration | | livenessProbe | object | `see values.yaml` | Liveness probe configuration | | readinessProbe | object | `see values.yaml` | Readiness probe configuration | +| customStartupProbe | object | `{}` | Custom startup probe (overwrites default startup probe configuration) | | customLivenessProbe | object | `{}` | Custom liveness probe (overwrites default liveness probe configuration) | | customReadinessProbe | object | `{}` | Custom readiness probe (overwrites default readiness probe configuration) | | resources | object | `{}` | Resource limits and requests | diff --git a/charts/gitea/templates/deployment.yaml b/charts/gitea/templates/deployment.yaml index 7f2433d82dbea4a736cec3d059afefe2ce28d3b7..f50b68117ff969088ea510bc6fc3f55ed213ffcb 100644 --- a/charts/gitea/templates/deployment.yaml +++ b/charts/gitea/templates/deployment.yaml @@ -73,6 +73,23 @@ spec: {{- toYaml . | nindent 12 }} {{- end }} {{- end }} + {{- if .Values.customStartupProbe }} + startupProbe: + {{- toYaml .Values.customStartupProbe | nindent 12 }} + {{- else }} + {{- if .Values.startupProbe.enabled }} + startupProbe: + tcpSocket: + port: http + {{- with .Values.startupProbe }} + initialDelaySeconds: {{ .initialDelaySeconds }} + timeoutSeconds: {{ .timeoutSeconds }} + failureThreshold: {{ .failureThreshold }} + successThreshold: {{ .successThreshold }} + periodSeconds: {{ .periodSeconds }} + {{- end }} + {{- end }} + {{- end }} {{- if .Values.customLivenessProbe }} livenessProbe: {{- toYaml .Values.customLivenessProbe | nindent 12 }} diff --git a/charts/gitea/values.yaml b/charts/gitea/values.yaml index 8d15dcce7c26e3dda7279d2b3e1ec9af527a88e8..3a79a72f360d21638902752577667e139acc3933 100644 --- a/charts/gitea/values.yaml +++ b/charts/gitea/values.yaml @@ -95,6 +95,18 @@ resources: {} # cpu: 100m # memory: 128Mi +## Custom startup probe (overwrites default startup probe) +customStartupProbe: {} + +## Default startup check +startupProbe: + enabled: true + initialDelaySeconds: 10 + timeoutSeconds: 5 + failureThreshold: 30 + successThreshold: 1 + periodSeconds: 10 + ## Custom liveness probe (overwrites default liveness probe) customLivenessProbe: {}