mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-07-04 23:34:12 +02:00
Drop custom probes (#248)
As a replacement, the default probes are now fully configurable and used as-is during Chart deployment. Fixes: #189 ⚠️ BREAKING ⚠️ --- Users have to remove the `custom` prefix from their probes, if customized. Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/248 Reviewed-by: luhahn <luhahn@noreply.gitea.io> Reviewed-by: Andrew Thornton <art27@cantab.net> Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.io> Co-committed-by: justusbunsi <justusbunsi@noreply.gitea.io>
This commit is contained in:
parent
0461fa92a9
commit
bfa68f6f58
52
README.md
52
README.md
@ -47,7 +47,7 @@ Please note the following changes in the Chart to upgrade successfully. :warning
|
|||||||
The app.ini generation has changed and now utilizes the environment-to-ini
|
The app.ini generation has changed and now utilizes the environment-to-ini
|
||||||
script provided by newer Gitea versions.
|
script provided by newer Gitea versions.
|
||||||
|
|
||||||
:boom: The Helm Chart now requires Gitea versions of at least 1.11.0.
|
> :boom: The Helm Chart now requires Gitea versions of at least 1.11.0.
|
||||||
|
|
||||||
This change ensures, that the app.ini is now persistent.
|
This change ensures, that the app.ini is now persistent.
|
||||||
|
|
||||||
@ -61,11 +61,32 @@ automatically in certain situations:
|
|||||||
- Existing installs: The secrets won't be deployed, neither via
|
- Existing installs: The secrets won't be deployed, neither via
|
||||||
configuration nor via auto generation. We explicitly prevent to set new secrets.
|
configuration nor via auto generation. We explicitly prevent to set new secrets.
|
||||||
|
|
||||||
:rotating_light: It would be possible to set new secret keys manually by entering
|
> :rotating_light: It would be possible to set new secret keys manually by entering
|
||||||
the running container and rewriting the app.ini by hand. However, this it is
|
the running container and rewriting the app.ini by hand. However, this it is
|
||||||
not advisable to do so for existing installations. Certain settings like
|
not advisable to do so for existing installations. Certain settings like
|
||||||
_LDAP_ would not be readable anymore.
|
_LDAP_ would not be readable anymore.
|
||||||
|
|
||||||
|
### Probes
|
||||||
|
|
||||||
|
> :boom: `gitea.customLivenessProbe`, `gitea.customReadinessProbe` and `gitea.customStartupProbe`
|
||||||
|
have been removed.
|
||||||
|
|
||||||
|
They are replaced by the settings `gitea.livenessProbe`, `gitea.readinessProbe`
|
||||||
|
and `gitea.startupProbe` which are now fully configurable and used _as-is_ for
|
||||||
|
a Chart deployment.
|
||||||
|
If you have customized their values instead of using the `custom` prefixed settings,
|
||||||
|
please ensure that you remove the `enabled` property from each of them.
|
||||||
|
|
||||||
|
In case you want to disable one of these probes, let's say the `livenessProbe`, add
|
||||||
|
the following to your values. The `podAnnotation` is just there to have a bit more
|
||||||
|
context.
|
||||||
|
|
||||||
|
```diff
|
||||||
|
gitea:
|
||||||
|
+ livenessProbe:
|
||||||
|
podAnnotations: {}
|
||||||
|
```
|
||||||
|
|
||||||
## Chart upgrade from 3.x.x to 4.0.0
|
## Chart upgrade from 3.x.x to 4.0.0
|
||||||
|
|
||||||
:warning: The most recent `4.0.0` update brings some breaking changes. Please note
|
:warning: The most recent `4.0.0` update brings some breaking changes. Please note
|
||||||
@ -635,29 +656,44 @@ gitea:
|
|||||||
Configure Liveness, Readiness and Startup
|
Configure Liveness, Readiness and Startup
|
||||||
[Probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).
|
[Probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).
|
||||||
|
|
||||||
|
#### Liveness probe
|
||||||
|
|
||||||
|
- Default status: Enabled
|
||||||
|
- Default action: tcp socket connect
|
||||||
|
|
||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
| ------------------------------------------ | -------------------------------------------------------------------- | ------- |
|
| ------------------------------------------ | -------------------------------------------------------------------- | ------- |
|
||||||
| `gitea.livenessProbe.enabled` | Enable liveness probe | `true` |
|
|
||||||
| `gitea.livenessProbe.initialDelaySeconds` | Delay before probe start | `200` |
|
| `gitea.livenessProbe.initialDelaySeconds` | Delay before probe start | `200` |
|
||||||
| `gitea.livenessProbe.timeoutSeconds` | probe timeout | `1` |
|
| `gitea.livenessProbe.timeoutSeconds` | probe timeout | `1` |
|
||||||
| `gitea.livenessProbe.periodSeconds` | period between probes | `10` |
|
| `gitea.livenessProbe.periodSeconds` | period between probes | `10` |
|
||||||
| `gitea.livenessProbe.successThreshold` | Minimum consecutive success probes | `1` |
|
| `gitea.livenessProbe.successThreshold` | Minimum consecutive success probes | `1` |
|
||||||
| `gitea.livenessProbe.failureThreshold` | Minimum consecutive error probes | `10` |
|
| `gitea.livenessProbe.failureThreshold` | Minimum consecutive error probes | `10` |
|
||||||
| `gitea.readinessProbe.enabled` | Enable readiness probe | `true` |
|
|
||||||
|
#### Readiness probe
|
||||||
|
|
||||||
|
- Default status: Enabled
|
||||||
|
- Default action: tcp socket connect
|
||||||
|
|
||||||
|
| Parameter | Description | Default |
|
||||||
|
| ------------------------------------------ | -------------------------------------------------------------------- | ------- |
|
||||||
| `gitea.readinessProbe.initialDelaySeconds` | Delay before probe start | `5` |
|
| `gitea.readinessProbe.initialDelaySeconds` | Delay before probe start | `5` |
|
||||||
| `gitea.readinessProbe.timeoutSeconds` | probe timeout | `1` |
|
| `gitea.readinessProbe.timeoutSeconds` | probe timeout | `1` |
|
||||||
| `gitea.readinessProbe.periodSeconds` | period between probes | `10` |
|
| `gitea.readinessProbe.periodSeconds` | period between probes | `10` |
|
||||||
| `gitea.readinessProbe.successThreshold` | Minimum consecutive success probes | `1` |
|
| `gitea.readinessProbe.successThreshold` | Minimum consecutive success probes | `1` |
|
||||||
| `gitea.readinessProbe.failureThreshold` | Minimum consecutive error probes | `3` |
|
| `gitea.readinessProbe.failureThreshold` | Minimum consecutive error probes | `3` |
|
||||||
| `gitea.startupProbe.enabled` | Enable startup probe | `false` |
|
|
||||||
|
#### Startup probe
|
||||||
|
|
||||||
|
- Default status: Disabled
|
||||||
|
- Default action: tcp socket connect
|
||||||
|
|
||||||
|
| Parameter | Description | Default |
|
||||||
|
| ------------------------------------------ | -------------------------------------------------------------------- | ------- |
|
||||||
| `gitea.startupProbe.initialDelaySeconds` | Delay before probe start | `60` |
|
| `gitea.startupProbe.initialDelaySeconds` | Delay before probe start | `60` |
|
||||||
| `gitea.startupProbe.timeoutSeconds` | probe timeout | `1` |
|
| `gitea.startupProbe.timeoutSeconds` | probe timeout | `1` |
|
||||||
| `gitea.startupProbe.periodSeconds` | period between probes | `10` |
|
| `gitea.startupProbe.periodSeconds` | period between probes | `10` |
|
||||||
| `gitea.startupProbe.successThreshold` | Minimum consecutive success probes | `1` |
|
| `gitea.startupProbe.successThreshold` | Minimum consecutive success probes | `1` |
|
||||||
| `gitea.startupProbe.failureThreshold` | Minimum consecutive error probes | `10` |
|
| `gitea.startupProbe.failureThreshold` | Minimum consecutive error probes | `10` |
|
||||||
| `gitea.customLivenessProbe` | Custom liveness probe (needs `gitea.livenessProbe.enabled: false`) | |
|
|
||||||
| `gitea.customReadinessProbe` | Custom readiness probe (needs `gitea.readinessProbe.enabled: false`) | |
|
|
||||||
| `gitea.customStartupProbe` | Custom startup probe (needs `gitea.startupProbe.enabled: false`) | |
|
|
||||||
|
|
||||||
### Memcached BuiltIn
|
### Memcached BuiltIn
|
||||||
|
|
||||||
|
@ -192,44 +192,17 @@ spec:
|
|||||||
- name: profiler
|
- name: profiler
|
||||||
containerPort: 6060
|
containerPort: 6060
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.gitea.livenessProbe.enabled }}
|
{{- if .Values.gitea.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
{{- toYaml .Values.gitea.livenessProbe | nindent 12 }}
|
||||||
port: http
|
|
||||||
initialDelaySeconds: {{ .Values.gitea.livenessProbe.initialDelaySeconds }}
|
|
||||||
periodSeconds: {{ .Values.gitea.livenessProbe.periodSeconds }}
|
|
||||||
timeoutSeconds: {{ .Values.gitea.livenessProbe.timeoutSeconds }}
|
|
||||||
successThreshold: {{ .Values.gitea.livenessProbe.successThreshold }}
|
|
||||||
failureThreshold: {{ .Values.gitea.livenessProbe.failureThreshold }}
|
|
||||||
{{- else if .Values.gitea.customLivenessProbe }}
|
|
||||||
livenessProbe:
|
|
||||||
{{- toYaml .Values.gitea.customLivenessProbe | nindent 12 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.gitea.readinessProbe.enabled }}
|
{{- if .Values.gitea.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
{{- toYaml .Values.gitea.readinessProbe | nindent 12 }}
|
||||||
port: http
|
|
||||||
initialDelaySeconds: {{ .Values.gitea.readinessProbe.initialDelaySeconds }}
|
|
||||||
periodSeconds: {{ .Values.gitea.readinessProbe.periodSeconds }}
|
|
||||||
timeoutSeconds: {{ .Values.gitea.readinessProbe.timeoutSeconds }}
|
|
||||||
successThreshold: {{ .Values.gitea.readinessProbe.successThreshold }}
|
|
||||||
failureThreshold: {{ .Values.gitea.readinessProbe.failureThreshold }}
|
|
||||||
{{- else if .Values.gitea.customReadinessProbe }}
|
|
||||||
readinessProbe:
|
|
||||||
{{- toYaml .Values.gitea.customReadinessProbe | nindent 12 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.gitea.startupProbe.enabled }}
|
{{- if .Values.gitea.startupProbe }}
|
||||||
startupProbe:
|
startupProbe:
|
||||||
tcpSocket:
|
{{- toYaml .Values.gitea.startupProbe | nindent 12 }}
|
||||||
port: http
|
|
||||||
initialDelaySeconds: {{ .Values.gitea.startupProbe.initialDelaySeconds }}
|
|
||||||
periodSeconds: {{ .Values.gitea.startupProbe.periodSeconds }}
|
|
||||||
timeoutSeconds: {{ .Values.gitea.startupProbe.timeoutSeconds }}
|
|
||||||
successThreshold: {{ .Values.gitea.startupProbe.successThreshold }}
|
|
||||||
failureThreshold: {{ .Values.gitea.startupProbe.failureThreshold }}
|
|
||||||
{{- else if .Values.gitea.customStartupProbe }}
|
|
||||||
startupProbe:
|
|
||||||
{{- toYaml .Values.gitea.customStartupProbe | nindent 12 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
39
values.yaml
39
values.yaml
@ -207,49 +207,32 @@ gitea:
|
|||||||
builtIn:
|
builtIn:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
# Modify the liveness probe for your needs or completely disable it by commenting out.
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
tcpSocket:
|
||||||
|
port: http
|
||||||
initialDelaySeconds: 200
|
initialDelaySeconds: 200
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 10
|
failureThreshold: 10
|
||||||
|
|
||||||
|
# Modify the readiness probe for your needs or completely disable it by commenting out.
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
tcpSocket:
|
||||||
|
port: http
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
startupProbe:
|
|
||||||
enabled: false
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
timeoutSeconds: 1
|
|
||||||
periodSeconds: 10
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 10
|
|
||||||
|
|
||||||
# customLivenessProbe:
|
# # Uncomment the startup probe to enable and modify it for your needs.
|
||||||
# httpGet:
|
# startupProbe:
|
||||||
# path: /user/login
|
# tcpSocket:
|
||||||
# port: http
|
|
||||||
# initialDelaySeconds: 60
|
|
||||||
# periodSeconds: 10
|
|
||||||
# successThreshold: 1
|
|
||||||
# failureThreshold: 10
|
|
||||||
# customReadinessProbe:
|
|
||||||
# httpGet:
|
|
||||||
# path: /user/login
|
|
||||||
# port: http
|
|
||||||
# initialDelaySeconds: 5
|
|
||||||
# periodSeconds: 10
|
|
||||||
# successThreshold: 1
|
|
||||||
# failureThreshold: 3
|
|
||||||
# customStartupProbe:
|
|
||||||
# httpGet:
|
|
||||||
# path: /user/login
|
|
||||||
# port: http
|
# port: http
|
||||||
# initialDelaySeconds: 60
|
# initialDelaySeconds: 60
|
||||||
|
# timeoutSeconds: 1
|
||||||
# periodSeconds: 10
|
# periodSeconds: 10
|
||||||
# successThreshold: 1
|
# successThreshold: 1
|
||||||
# failureThreshold: 10
|
# failureThreshold: 10
|
||||||
|
Loading…
Reference in New Issue
Block a user