From ed758ee8b657d8580e5d81ebb59ae448bfb61bef Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 20 Jun 2025 14:52:50 +0200 Subject: [PATCH] ci: decrease kubelet sync frequency Signed-off-by: Simon Pasquier --- test/e2e/kind-conf.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/e2e/kind-conf.yaml b/test/e2e/kind-conf.yaml index 42c6a320e..fa8d2e480 100644 --- a/test/e2e/kind-conf.yaml +++ b/test/e2e/kind-conf.yaml @@ -3,7 +3,28 @@ kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 name: kind +# We decrease the interval at which kubelet synchronizes the mounted configmaps +# and secrets from the default 1 minute to 10 seconds. It helps speeding up the +# tests because the configuration changes are propagated faster to the +# containers. +# +# While we apply the same settings to all nodes, there's a current limitation +# with Kind that kubelet configuration is cluster-wide so only the first patch +# is applied in fact. See https://github.com/kubernetes-sigs/kind/issues/3849 +# for details. nodes: - role: control-plane + kubeadmConfigPatches: + - | + kind: KubeletConfiguration + syncFrequency: 10s - role: worker + kubeadmConfigPatches: + - | + kind: KubeletConfiguration + syncFrequency: 10s - role: worker + kubeadmConfigPatches: + - | + kind: KubeletConfiguration + syncFrequency: 10s