@@ -57,15 +57,15 @@ const (
57
57
serviceAnnotationLoadBalancerHealthCheckType = "service.beta.kubernetes.io/scw-loadbalancer-health-check-type"
58
58
59
59
// serviceAnnotationLoadBalancerHealthCheckDelay is the time between two consecutive health checks
60
- // The default value is "10s ". The duration are go's time.Duration (ex: "1s", "2m", "4h", ...)
60
+ // The default value is "5s ". The duration are go's time.Duration (ex: "1s", "2m", "4h", ...)
61
61
serviceAnnotationLoadBalancerHealthCheckDelay = "service.beta.kubernetes.io/scw-loadbalancer-health-check-delay"
62
62
63
63
// serviceAnnotationLoadBalancerHealthCheckTimeout is the additional check timeout, after the connection has been already established
64
- // The default value is "10s ". The duration are go's time.Duration (ex: "1s", "2m", "4h", ...)
64
+ // The default value is "5s ". The duration are go's time.Duration (ex: "1s", "2m", "4h", ...)
65
65
serviceAnnotationLoadBalancerHealthCheckTimeout = "service.beta.kubernetes.io/scw-loadbalancer-health-check-timeout"
66
66
67
67
// serviceAnnotationLoadBalancerHealthCheckMaxRetries is the number of consecutive unsuccessful health checks, after wich the server will be considered dead
68
- // The default value is "10 ".
68
+ // The default value is "5 ".
69
69
serviceAnnotationLoadBalancerHealthCheckMaxRetries = "service.beta.kubernetes.io/scw-loadbalancer-health-check-max-retries"
70
70
71
71
// serviceAnnotationLoadBalancerHealthCheckHTTPURI is the URI that is used by the "http" health check
@@ -124,7 +124,7 @@ const (
124
124
serviceAnnotationLoadBalancerTimeoutServer = "service.beta.kubernetes.io/scw-loadbalancer-timeout-server"
125
125
126
126
// serviceAnnotationLoadBalancerTimeoutConnect is the maximum initical server connection establishment time
127
- // The default value is "10m ". The duration are go's time.Duration (ex: "1s", "2m", "4h", ...)
127
+ // The default value is "10s ". The duration are go's time.Duration (ex: "1s", "2m", "4h", ...)
128
128
serviceAnnotationLoadBalancerTimeoutConnect = "service.beta.kubernetes.io/scw-loadbalancer-timeout-connect"
129
129
130
130
// serviceAnnotationLoadBalancerTimeoutTunnel is the maximum tunnel inactivity time
@@ -1408,7 +1408,7 @@ func getTimeoutClient(service *v1.Service) (time.Duration, error) {
1408
1408
func getTimeoutServer (service * v1.Service ) (time.Duration , error ) {
1409
1409
timeoutServer , ok := service .Annotations [serviceAnnotationLoadBalancerTimeoutServer ]
1410
1410
if ! ok {
1411
- return time .ParseDuration ("10m " )
1411
+ return time .ParseDuration ("10s " )
1412
1412
}
1413
1413
1414
1414
timeoutServerDuration , err := time .ParseDuration (timeoutServer )
@@ -1469,7 +1469,7 @@ func getOnMarkedDownAction(service *v1.Service) (scwlb.OnMarkedDownAction, error
1469
1469
func getHealthCheckDelay (service * v1.Service ) (time.Duration , error ) {
1470
1470
healthCheckDelay , ok := service .Annotations [serviceAnnotationLoadBalancerHealthCheckDelay ]
1471
1471
if ! ok {
1472
- return time .ParseDuration ("10s " )
1472
+ return time .ParseDuration ("5s " )
1473
1473
}
1474
1474
1475
1475
healthCheckDelayDuration , err := time .ParseDuration (healthCheckDelay )
@@ -1484,7 +1484,7 @@ func getHealthCheckDelay(service *v1.Service) (time.Duration, error) {
1484
1484
func getHealthCheckTimeout (service * v1.Service ) (time.Duration , error ) {
1485
1485
healthCheckTimeout , ok := service .Annotations [serviceAnnotationLoadBalancerHealthCheckTimeout ]
1486
1486
if ! ok {
1487
- return time .ParseDuration ("10s " )
1487
+ return time .ParseDuration ("5s " )
1488
1488
}
1489
1489
1490
1490
healthCheckTimeoutDuration , err := time .ParseDuration (healthCheckTimeout )
@@ -1499,7 +1499,7 @@ func getHealthCheckTimeout(service *v1.Service) (time.Duration, error) {
1499
1499
func getHealthCheckMaxRetries (service * v1.Service ) (int32 , error ) {
1500
1500
healthCheckMaxRetries , ok := service .Annotations [serviceAnnotationLoadBalancerHealthCheckMaxRetries ]
1501
1501
if ! ok {
1502
- return 10 , nil
1502
+ return 5 , nil
1503
1503
}
1504
1504
1505
1505
healthCheckMaxRetriesInt , err := strconv .Atoi (healthCheckMaxRetries )
0 commit comments