Skip to content

Commit

Permalink
make probes optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Nov 11, 2024
1 parent b89bfd8 commit 7979c3a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/libretranslate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ sources:
- https://github.com/LibreTranslate/LibreTranslate/
- https://github.com/LibreTranslate/helm-chart/
icon: https://libretranslate.com/static/favicon.ico
version: 0.2.2
version: 0.3.0
8 changes: 6 additions & 2 deletions charts/libretranslate/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,14 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
{{- end }}
allowPrivilegeEscalation: false
{{- with .Values.readinessProbe }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
env:
{{- if and (.Values.appSettings.debug) (ne .Values.appSettings.debug "") }}
- name: LT_DEBUG
Expand Down
28 changes: 14 additions & 14 deletions charts/libretranslate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,22 @@ resources:
memory: 1Gi

# Readiness probe for kubernetes
readinessProbe:
exec:
command:
- /app/venv/bin/python
- /app/scripts/healthcheck.py
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe: {}
# exec:
# command:
# - /app/venv/bin/python
# - /app/scripts/healthcheck.py
# initialDelaySeconds: 10
# periodSeconds: 5

# Liveness probe for kubernetes
livenessProbe:
exec:
command:
- /app/venv/bin/python
- scripts/healthcheck.py
initialDelaySeconds: 10
periodSeconds: 5
livenessProbe: {}
# exec:
# command:
# - /app/venv/bin/python
# - scripts/healthcheck.py
# initialDelaySeconds: 10
# periodSeconds: 5

# Auth secret for basic authentication
# generate base64-user-password-pair with:
Expand Down

0 comments on commit 7979c3a

Please sign in to comment.