Skip to content

Commit

Permalink
Allow specifying timeout second for HTTP2/2 health check
Browse files Browse the repository at this point in the history
The env vars were implemented in kubernetes#95981.
Effectively no impacts if using the default values here.

BUG=255296578

Change-Id: I2441ef1a181a0fb202af7893c25cff5ff15ef17a
  • Loading branch information
linxiulei authored and GCB Sync Bot committed Mar 12, 2024
1 parent 03d8e12 commit 1ce3e9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gke/cluster/gce/gci/configure-kubeapiserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ function start-kube-apiserver {
fi
container_env+='{"name": "GODEBUG", "value": "x509sha1=1"}'

# b/255296578
container_env+=", {\"name\": \"HTTP2_READ_IDLE_TIMEOUT_SECONDS\", \"value\": \"${KUBE_APISERVER_HTTP2_READ_IDLE_TIMEOUT_SECONDS:-30}\"}"
container_env+=", {\"name\": \"HTTP2_PING_TIMEOUT_SECONDS\", \"value\": \"${KUBE_APISERVER_HTTP2_PING_TIMEOUT_SECONDS:-15}\"}"

if [[ -n "${container_env}" ]]; then
container_env="\"env\":[${container_env}],"
fi
Expand Down

0 comments on commit 1ce3e9d

Please sign in to comment.