Skip to content

Commit

Permalink
Add an extra delay CILIUM_WATCHDOG_FAST_START_WAIT
Browse files Browse the repository at this point in the history
To allow for more time for Cilium to start, before a fast-start node is
marked unready after being ready.
  • Loading branch information
jingyuanliang committed Apr 10, 2024
1 parent 77f2c60 commit 3bda2df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/install-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,12 @@ fi
echo "Running CNI watchdog to watch Cilium and manage CNI config at '${output_file}' with content: $(jq -c . <<<"${cni_spec}")"
cilium_watchdog_success_wait=${CILIUM_WATCHDOG_SUCCESS_WAIT:-300}
cilium_watchdog_failure_retry=${CILIUM_WATCHDOG_FAILURE_RETRY:-60}
cilium_watchdog_fast_start_wait=${CILIUM_WATCHDOG_FAST_START_WAIT:-60}

if [[ -n "${CILIUM_FAST_START_NAMESPACES:-}" ]]; then
echo "Cilium has fast-start; writing CNI config upfront then start to check Cilium health."
echo "Cilium has fast-start; writing CNI config upfront then wait for ${cilium_watchdog_fast_start_wait}s and start to check Cilium health."
write_file "${output_file}" "${cni_spec}"
sleep "${cilium_watchdog_fast_start_wait}"s
fi

while true; do
Expand Down

0 comments on commit 3bda2df

Please sign in to comment.