From e0c032be94ce8f69a42c12070cdfec50cda99790 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sat, 15 Dec 2018 14:20:53 -0800 Subject: [PATCH] Increase GCP TCP proxy apiserver backend timeout to 5 minutes * On GCP, kubectl port-forward connections to pods are closed after a timeout (unlike AWS NLB's or Azure load balancers) * Increase the GCP apiserver backend service timeout from 1 minute to 5 minutes to be more similar to AWS/Azure LB behavior --- CHANGES.md | 5 +++++ google-cloud/container-linux/kubernetes/apiserver.tf | 2 +- google-cloud/fedora-atomic/kubernetes/apiserver.tf | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 5e78da79..7e35f4a7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,11 @@ Notable changes between versions. * Kubernetes [v1.13.1](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.13.md#v1131) +#### Google Cloud + +* Increase TCP proxy apiserver backend service timeout from 1 minute to 5 minutes ([#361](https://github.com/poseidon/typhoon/pull/361)) + * Align `port-forward` behavior closer to AWS/Azure (no timeout) + #### Addons * Update Grafana from v5.4.0 to v5.4.2 diff --git a/google-cloud/container-linux/kubernetes/apiserver.tf b/google-cloud/container-linux/kubernetes/apiserver.tf index ffeb8cd6..883feb24 100644 --- a/google-cloud/container-linux/kubernetes/apiserver.tf +++ b/google-cloud/container-linux/kubernetes/apiserver.tf @@ -42,7 +42,7 @@ resource "google_compute_backend_service" "apiserver" { protocol = "TCP" port_name = "apiserver" session_affinity = "NONE" - timeout_sec = "60" + timeout_sec = "300" # controller(s) spread across zonal instance groups backend { diff --git a/google-cloud/fedora-atomic/kubernetes/apiserver.tf b/google-cloud/fedora-atomic/kubernetes/apiserver.tf index 002c553e..b56a4e7b 100644 --- a/google-cloud/fedora-atomic/kubernetes/apiserver.tf +++ b/google-cloud/fedora-atomic/kubernetes/apiserver.tf @@ -42,7 +42,7 @@ resource "google_compute_backend_service" "apiserver" { protocol = "TCP" port_name = "apiserver" session_affinity = "NONE" - timeout_sec = "60" + timeout_sec = "300" # controller(s) spread across zonal instance groups backend {