Skip to content

Commit

Permalink
Fix liveness and startup probes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Sep 9, 2024
1 parent 91e0b9d commit a0e33d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/netbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: netbox
version: 5.0.0-beta.88
version: 5.0.0-beta.89
appVersion: "v4.1.0"
type: application
kubeVersion: ^1.25.0-0
Expand Down
18 changes: 9 additions & 9 deletions charts/netbox/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,8 @@ spec:
{{- else if .Values.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.livenessProbe "enabled") "context" $) | nindent 10 }}
httpGet:
path: /{{ .Values.basePath }}login/
port: http
{{- if (not (eq (index .Values.allowedHosts 0) "*")) }}
httpHeaders:
- name: Host
value: {{ (index .Values.allowedHosts 0) | quote }}
{{- end }}
path: /status/applications/netbox/processes/running
port: nginx-status
{{- end }}
{{- if .Values.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 10 }}
Expand All @@ -143,8 +138,13 @@ spec:
{{- else if .Values.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.startupProbe "enabled") "context" $) | nindent 10 }}
httpGet:
path: /status/applications/netbox/processes/running
port: nginx-status
path: /{{ .Values.basePath }}login/
port: http
{{- if (not (eq (index .Values.allowedHosts 0) "*")) }}
httpHeaders:
- name: Host
value: {{ (index .Values.allowedHosts 0) | quote }}
{{- end }}
{{- end }}
{{- if .Values.lifecycleHooks }}
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 10 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/netbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ automountServiceAccountToken: false
##
livenessProbe:
enabled: true
initialDelaySeconds: 5
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
Expand All @@ -801,8 +801,8 @@ livenessProbe:
readinessProbe:
enabled: true
initialDelaySeconds: 0
timeoutSeconds: 1
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1
## Configure extra options for startupProbe probe
Expand Down

0 comments on commit a0e33d4

Please sign in to comment.