Skip to content

Commit

Permalink
Update probe settings
Browse files Browse the repository at this point in the history
* Reduce readiness probe startup delay
* Increacse liveness polling period
  • Loading branch information
Claes Mogren committed Jun 15, 2020
1 parent af54066 commit 561a38f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config/master/aws-k8s-cni-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"periodSeconds": 60
"name": "aws-node"
"ports":
- "containerPort": 61678
Expand All @@ -121,7 +122,7 @@
"command":
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"initialDelaySeconds": 10
"resources":
"requests":
"cpu": "10m"
Expand Down
3 changes: 2 additions & 1 deletion config/master/aws-k8s-cni-us-gov-east-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"periodSeconds": 60
"name": "aws-node"
"ports":
- "containerPort": 61678
Expand All @@ -121,7 +122,7 @@
"command":
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"initialDelaySeconds": 10
"resources":
"requests":
"cpu": "10m"
Expand Down
3 changes: 2 additions & 1 deletion config/master/aws-k8s-cni-us-gov-west-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"periodSeconds": 60
"name": "aws-node"
"ports":
- "containerPort": 61678
Expand All @@ -121,7 +122,7 @@
"command":
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"initialDelaySeconds": 10
"resources":
"requests":
"cpu": "10m"
Expand Down
3 changes: 2 additions & 1 deletion config/master/aws-k8s-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"periodSeconds": 60
"name": "aws-node"
"ports":
- "containerPort": 61678
Expand All @@ -121,7 +122,7 @@
"command":
- "/app/grpc-health-probe"
- "-addr=:50051"
"initialDelaySeconds": 35
"initialDelaySeconds": 10
"resources":
"requests":
"cpu": "10m"
Expand Down
8 changes: 7 additions & 1 deletion config/master/manifests.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,18 @@ local awsnode = {
}],
name: "aws-node",
readinessProbe: {
exec: {
command: ["/app/grpc-health-probe", "-addr=:50051"],
},
initialDelaySeconds: 10,
},
livenessProbe: {
exec: {
command: ["/app/grpc-health-probe", "-addr=:50051"],
},
initialDelaySeconds: 35,
periodSeconds: 60,
},
livenessProbe: self.readinessProbe,
env_:: {
AWS_VPC_ENI_MTU: "9001",
AWS_VPC_K8S_CNI_CONFIGURE_RPFILTER: "false",
Expand Down

0 comments on commit 561a38f

Please sign in to comment.