Skip to content

Commit 1ce3e9d

Browse files
linxiuleiGCB Sync Bot
authored and
GCB Sync Bot
committed
Allow specifying timeout second for HTTP2/2 health check
The env vars were implemented in kubernetes#95981. Effectively no impacts if using the default values here. BUG=255296578 Change-Id: I2441ef1a181a0fb202af7893c25cff5ff15ef17a
1 parent 03d8e12 commit 1ce3e9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: gke/cluster/gce/gci/configure-kubeapiserver.sh

+4
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ function start-kube-apiserver {
363363
fi
364364
container_env+='{"name": "GODEBUG", "value": "x509sha1=1"}'
365365

366+
# b/255296578
367+
container_env+=", {\"name\": \"HTTP2_READ_IDLE_TIMEOUT_SECONDS\", \"value\": \"${KUBE_APISERVER_HTTP2_READ_IDLE_TIMEOUT_SECONDS:-30}\"}"
368+
container_env+=", {\"name\": \"HTTP2_PING_TIMEOUT_SECONDS\", \"value\": \"${KUBE_APISERVER_HTTP2_PING_TIMEOUT_SECONDS:-15}\"}"
369+
366370
if [[ -n "${container_env}" ]]; then
367371
container_env="\"env\":[${container_env}],"
368372
fi

0 commit comments

Comments
 (0)