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
This commit is contained in:
Dalton Hubble
2018-12-15 14:20:53 -08:00
parent b74bf11772
commit e0c032be94
3 changed files with 7 additions and 2 deletions

View File

@ -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 {