Skip to content

Commit

Permalink
noproxy for direct communication to apiserver and timeouts of 3 secon…
Browse files Browse the repository at this point in the history
…ds (#1393)
  • Loading branch information
ajohnstone authored Aug 29, 2023
1 parent 93203d9 commit e0a5372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log-collector-script/linux/eks-log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ get_networking_info() {
CA_CRT=$(grep certificate-authority: "${COLLECT_DIR}"/kubelet/kubeconfig.yaml | sed 's/.*certificate-authority: //')
for i in $(seq 5); do
echo -e "curling ${API_SERVER} ($i of 5) $(date --utc +%FT%T.%3N%Z)\n\n" >> ${COLLECT_DIR}"/networking/curl_api_server.txt"
timeout 75 curl -v --cacert "${CA_CRT}" "${API_SERVER}"/livez?verbose >> ${COLLECT_DIR}"/networking/curl_api_server.txt" 2>&1
timeout 75 curl -v --connect-timeout 3 --max-time 10 --noproxy '*' --cacert "${CA_CRT}" "${API_SERVER}"/livez?verbose >> ${COLLECT_DIR}"/networking/curl_api_server.txt" 2>&1
done
fi

Expand Down

0 comments on commit e0a5372

Please sign in to comment.