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: