Skip to content

Commit 916746e

Browse files
committed
fix NetBox liveness probe: chart checks nginx-status:8081 but granian doesn't serve it
1 parent feaa3ef commit 916746e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

cluster/apps/net/netbox/app/helmrelease.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,31 @@ spec:
115115
accessMode: ReadWriteOnce
116116
size: 1Gi
117117

118-
# -- Probes (Wyse 5070 is slow, needs longer timeouts)
118+
# -- Probes
119+
# Chart's default liveness probe checks port 8081 (nginx-status) but
120+
# NetBox v4.5+ uses granian, not NGINX Unit - port 8081 doesn't exist.
121+
# Override liveness to use the same /login/ endpoint on port 8080.
119122
startupProbe:
120123
enabled: true
121124
initialDelaySeconds: 10
122125
periodSeconds: 10
123126
timeoutSeconds: 5
124127
failureThreshold: 60
125128
livenessProbe:
126-
enabled: true
127-
periodSeconds: 10
129+
enabled: false
130+
customLivenessProbe:
131+
httpGet:
132+
path: /login/
133+
port: http
134+
initialDelaySeconds: 0
135+
periodSeconds: 30
128136
timeoutSeconds: 5
129-
failureThreshold: 5
137+
failureThreshold: 3
130138
readinessProbe:
131139
enabled: true
132140
periodSeconds: 10
133141
timeoutSeconds: 5
134-
failureThreshold: 5
142+
failureThreshold: 3
135143

136144
# -- Resources
137145
resources:

0 commit comments

Comments
 (0)