From 96785158e72b20f01f2497f8402d00aa73d58c62 Mon Sep 17 00:00:00 2001 From: OdooSky v3 Date: Fri, 8 May 2026 22:04:07 +0200 Subject: [PATCH] fix(readiness): bump Odoo readinessProbe failureThreshold 2 -> 15 Heavy addon installs (e.g. ks_dashboard_ninja) blocked /web/login probes for >10s, causing K8s to pull the Pod from Endpoints; Traefik then 503d the operator addon-apply RPC. failureThreshold: 15 (~75s of headroom) covers the install window without affecting true pod-restart detection (initialDelay gates boot). Chart 0.1.0 -> 0.1.1. --- Chart.yaml | 2 +- templates/odoo-deployment.yaml | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index c066bac..5c82102 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -5,7 +5,7 @@ description: | Variation between instances is expressed via values.yaml only. No chart variants. No string-templating in Tower. type: application -version: 0.1.0 +version: 0.1.1 appVersion: "1.0" keywords: - odoo diff --git a/templates/odoo-deployment.yaml b/templates/odoo-deployment.yaml index d21786f..a38c40e 100644 --- a/templates/odoo-deployment.yaml +++ b/templates/odoo-deployment.yaml @@ -289,10 +289,14 @@ spec: # 16/17/18/19 — /web/health is 17+. Use login HTTP 200 as # readiness signal. # - # 5s period so K8s catches an Odoo restart (addon install - # via the Apps menu can trigger one) within a single probe - # cycle and pulls the Pod from Endpoints — paired with the - # Traefik retry middleware that swallows the brief gap. + # 5s period catches a true pod restart fast (initialDelay + # gates the boot path; failureThreshold only matters once + # the pod has been ready). failureThreshold: 15 (= 75s of + # consecutive probe failures) gives Odoo headroom to install + # heavy modules (e.g. ks_dashboard_ninja) without K8s pulling + # the Pod from Endpoints mid-install — which produced 503s + # at the operator surface during addon-apply. Paired with + # the Traefik retry middleware for short gaps. readinessProbe: httpGet: path: /web/login @@ -300,7 +304,7 @@ spec: initialDelaySeconds: 30 periodSeconds: 5 timeoutSeconds: 5 - failureThreshold: 2 + failureThreshold: 15 livenessProbe: tcpSocket: port: 8069