From 4a8d4feea01d72a1afc44adb1ec7f039ce5c4631 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Sat, 26 Sep 2026 19:07:47 +0200 Subject: [PATCH] fix(netbox): run probes with curl directly, not python -c python -c 'exec /usr/bin/curl ...' is shell syntax, not Python, so every probe raised SyntaxError and the pod never became ready. Verified curl against /login/ returns HTTP 200. --- netbox/k8s/netbox.yaml | 45 +++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/netbox/k8s/netbox.yaml b/netbox/k8s/netbox.yaml index 95f778c..b8f3550 100644 --- a/netbox/k8s/netbox.yaml +++ b/netbox/k8s/netbox.yaml @@ -56,33 +56,42 @@ spec: startupProbe: exec: command: - - /opt/netbox/venv/bin/python - - -c - - >- - exec /usr/bin/curl --fail --silent --show-error --max-time 4 - --header 'Host: netbox.forust.xyz' - http://127.0.0.1:8080/login/ >/dev/null + - /usr/bin/curl + - --fail + - --silent + - --show-error + - --max-time + - "4" + - --header + - "Host: netbox.forust.xyz" + - http://127.0.0.1:8080/login/ failureThreshold: 90 periodSeconds: 10 readinessProbe: exec: command: - - /opt/netbox/venv/bin/python - - -c - - >- - exec /usr/bin/curl --fail --silent --show-error --max-time 4 - --header 'Host: netbox.forust.xyz' - http://127.0.0.1:8080/login/ >/dev/null + - /usr/bin/curl + - --fail + - --silent + - --show-error + - --max-time + - "4" + - --header + - "Host: netbox.forust.xyz" + - http://127.0.0.1:8080/login/ periodSeconds: 10 livenessProbe: exec: command: - - /opt/netbox/venv/bin/python - - -c - - >- - exec /usr/bin/curl --fail --silent --show-error --max-time 4 - --header 'Host: netbox.forust.xyz' - http://127.0.0.1:8080/login/ >/dev/null + - /usr/bin/curl + - --fail + - --silent + - --show-error + - --max-time + - "4" + - --header + - "Host: netbox.forust.xyz" + - http://127.0.0.1:8080/login/ initialDelaySeconds: 30 periodSeconds: 30 resources: