proxy: add timeout and restart configuration

This commit is contained in:
iwilltry42 2020-05-09 12:47:07 +02:00
parent 6287808aa1
commit 82b2d0e241
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110

View File

@ -10,7 +10,7 @@ events {
stream {
upstream kube_apiserver {
{{ $servers := split (getenv "SERVERS") "," }}{{range $servers}}
server {{.}}:{{getenv "PORT"}};
server {{.}}:{{getenv "PORT"}} max_fails=1 fail_timeout=10s slow_start=10s;
{{end}}
}