Skip to content

Commit

Permalink
[bitnami/gitea] Use different liveness/readiness probes
Browse files Browse the repository at this point in the history
Signed-off-by: David Gomez <[email protected]>
  • Loading branch information
dgomezleon committed May 17, 2024
1 parent 10b559d commit c120cbb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions bitnami/gitea/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 15.3.1
version: 15.3.2
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.19.2
digest: sha256:0a137267accf031c1dd6e0f4779956e4e1c02065ff182b6eeadd95f9c5873bc9
generated: "2024-05-13T21:21:12.705823327Z"
digest: sha256:b3be00d62395c3cbec87e3ed0b505d68b48a969323d3e4bb14428dca34c75a52
generated: "2024-05-17T18:00:02.787518+02:00"
1 change: 0 additions & 1 deletion bitnami/gitea/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ helm install my-release --set persistence.existingClaim=PVC_NAME oci://REGISTRY_
| `startupProbe.failureThreshold` | Failure threshold for startupProbe | `5` |
| `startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `livenessProbe.enabled` | Enable livenessProbe | `true` |
| `livenessProbe.path` | Request path for livenessProbe | `/` |
| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `600` |
| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
| `livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` |
Expand Down
3 changes: 1 addition & 2 deletions bitnami/gitea/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.path }}
tcpSocket:
port: http
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
Expand Down
8 changes: 1 addition & 7 deletions bitnami/gitea/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,8 @@ startupProbe:
failureThreshold: 5
successThreshold: 1
## Configure extra options for liveness probe
## Gitea core exposes / to unauthenticated requests, making it a good
## default liveness and readiness path. However, that may not always be the
## case. For example, if the image value is overridden to an image containing a
## module that alters that route, or an image that does not auto-install Gitea.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
## @param livenessProbe.enabled Enable livenessProbe
## @param livenessProbe.path Request path for livenessProbe
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
Expand All @@ -392,15 +387,14 @@ startupProbe:
##
livenessProbe:
enabled: true
path: /
initialDelaySeconds: 600
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 5
successThreshold: 1
## Configure extra options for readiness probe
## Gitea core exposes / to unauthenticated requests, making it a good
## default liveness and readiness path. However, that may not always be the
## default startup and readiness path. However, that may not always be the
## case. For example, if the image value is overridden to an image containing a
## module that alters that route, or an image that does not auto-install Gitea.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
Expand Down

0 comments on commit c120cbb

Please sign in to comment.