Skip to content

Commit d50e1a9

Browse files
committed
Increase Kind apiserver event TTL from 1h to 4h
Kubernetes events expire after 1 hour by default. In CI, kind export logs often runs 1-2 hours after the test window, by which time the relevant events have already been garbage-collected. This was a concrete gap during the Azure archive flakiness investigation (PR #2340): the failing tests ran around 06:36 but kind export logs didn't execute until ~08:22 — nearly 2 hours later. All Kubernetes events from the failure window (pod scheduling, restarts, liveness probe failures, OOM kills) had expired and were unavailable for diagnosis. Bump --event-ttl to 4h via a kubeadm ClusterConfiguration patch in the Kind cluster config, ensuring events survive for the entire duration of CI jobs. Issue: ZENKO-5217
1 parent 4da7e65 commit d50e1a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/scripts/end2end/bootstrap-kind.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ nodes:
6161
nodeRegistration:
6262
kubeletExtraArgs:
6363
node-labels: "ingress-ready=true"
64+
- |
65+
kind: ClusterConfiguration
66+
apiServer:
67+
extraArgs:
68+
event-ttl: "4h0m0s"
6469
extraMounts:
6570
- hostPath: ${VOLUME_ROOT}/data
6671
containerPath: /data

0 commit comments

Comments
 (0)