Skip to content

Commit

Permalink
reduce readinessProbe failureThreshold and periodSeconds (#4021)
Browse files Browse the repository at this point in the history
* Reduces time for the endpoint to be removed from the endpointSlice
from `30s` (3 * 10) to `5s` (1 * 5)

* Since kube-proxy and CNIs rely on this info and so do external LBs
like GKE https://cloud.google.com/kubernetes-engine/docs/concepts/service-load-balancer

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
  • Loading branch information
arkodg authored Aug 9, 2024
1 parent 176811d commit 67575b8
Show file tree
Hide file tree
Showing 53 changed files with 106 additions and 106 deletions.
4 changes: 2 additions & 2 deletions internal/infrastructure/kubernetes/proxy/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ func expectedProxyContainers(infra *ir.ProxyInfra,
},
},
TimeoutSeconds: 1,
PeriodSeconds: 10,
PeriodSeconds: 5,
SuccessThreshold: 1,
FailureThreshold: 3,
FailureThreshold: 1,
},
Lifecycle: &corev1.Lifecycle{
PreStop: &corev1.LifecycleHandler{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ spec:
name: EnvoyHTTPSPort
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ spec:
name: EnvoyHTTPSPort
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ spec:
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
failureThreshold: 1
httpGet:
path: /ready
port: 19001
scheme: HTTP
periodSeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
Expand Down
Loading

0 comments on commit 67575b8

Please sign in to comment.