From ae79ed6f74e6c8761a317b080deb5285ff9c01d9 Mon Sep 17 00:00:00 2001 From: Pablo Acevedo Montserrat Date: Mon, 14 Sep 2026 14:04:57 +0200 Subject: [PATCH] OCPBUGS-122385: Add startupProbe to ovnk pods --- assets/components/ovn/multi-node/node/daemonset.yaml | 9 +++++++++ assets/components/ovn/single-node/master/daemonset.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/assets/components/ovn/multi-node/node/daemonset.yaml b/assets/components/ovn/multi-node/node/daemonset.yaml index 7d01ee561d..cb8d0b9f0e 100644 --- a/assets/components/ovn/multi-node/node/daemonset.yaml +++ b/assets/components/ovn/multi-node/node/daemonset.yaml @@ -160,6 +160,15 @@ spec: preStop: exec: command: ["rm","-f","/etc/cni/net.d/10-ovn-kubernetes.conf"] + # The CNI conf file is written only once node init completes, so its + # presence is a reliable "started" signal. Bound a wedged init to ~180s + # while tolerating slow starts. + startupProbe: + exec: + command: ["test", "-f", "/etc/cni/net.d/10-ovn-kubernetes.conf"] + periodSeconds: 5 + timeoutSeconds: 5 + failureThreshold: 36 readinessProbe: exec: command: ["test", "-f", "/etc/cni/net.d/10-ovn-kubernetes.conf"] diff --git a/assets/components/ovn/single-node/master/daemonset.yaml b/assets/components/ovn/single-node/master/daemonset.yaml index 03f242bd86..ad5fcdaef3 100644 --- a/assets/components/ovn/single-node/master/daemonset.yaml +++ b/assets/components/ovn/single-node/master/daemonset.yaml @@ -397,6 +397,15 @@ spec: preStop: exec: command: ["rm","-f","/etc/cni/net.d/10-ovn-kubernetes.conf"] + # The CNI conf file is written only once node init completes, so its + # presence is a reliable "started" signal. Bound a wedged init to ~180s + # while tolerating slow starts. + startupProbe: + exec: + command: ["test", "-f", "/etc/cni/net.d/10-ovn-kubernetes.conf"] + periodSeconds: 5 + timeoutSeconds: 5 + failureThreshold: 36 readinessProbe: exec: command: ["test", "-f", "/etc/cni/net.d/10-ovn-kubernetes.conf"]