Skip to content

Commit

Permalink
set requests/limits for initcontainer (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored Aug 2, 2021
1 parent afde779 commit d03b0dc
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/master/aws-k8s-cni-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@
"value": "false"
"image": "961992271922.dkr.ecr.cn-northwest-1.amazonaws.com.cn/amazon-k8s-cni-init:v1.9.0"
"name": "aws-vpc-cni-init"
"resources":
"limits":
"cpu": "50m"
"memory": "64Mi"
"requests":
"cpu": "10m"
"memory": "32Mi"
"securityContext":
"privileged": true
"volumeMounts":
Expand Down
7 changes: 7 additions & 0 deletions config/master/aws-k8s-cni-us-gov-east-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@
"value": "false"
"image": "151742754352.dkr.ecr.us-gov-east-1.amazonaws.com/amazon-k8s-cni-init:v1.9.0"
"name": "aws-vpc-cni-init"
"resources":
"limits":
"cpu": "50m"
"memory": "64Mi"
"requests":
"cpu": "10m"
"memory": "32Mi"
"securityContext":
"privileged": true
"volumeMounts":
Expand Down
7 changes: 7 additions & 0 deletions config/master/aws-k8s-cni-us-gov-west-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@
"value": "false"
"image": "013241004608.dkr.ecr.us-gov-west-1.amazonaws.com/amazon-k8s-cni-init:v1.9.0"
"name": "aws-vpc-cni-init"
"resources":
"limits":
"cpu": "50m"
"memory": "64Mi"
"requests":
"cpu": "10m"
"memory": "32Mi"
"securityContext":
"privileged": true
"volumeMounts":
Expand Down
7 changes: 7 additions & 0 deletions config/master/aws-k8s-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@
"value": "false"
"image": "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.9.0"
"name": "aws-vpc-cni-init"
"resources":
"limits":
"cpu": "50m"
"memory": "64Mi"
"requests":
"cpu": "10m"
"memory": "32Mi"
"securityContext":
"privileged": true
"volumeMounts":
Expand Down
4 changes: 4 additions & 0 deletions config/master/manifests.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ local awsnode = {
name: "DISABLE_TCP_EARLY_DEMUX", value: "false",
},
],
resources: {
requests: {cpu: "10m", memory: "32Mi"},
limits: {cpu: "50m", memory: "64Mi"},
},
volumeMounts: [
{mountPath: "/host/opt/cni/bin", name: "cni-bin-dir"},
],
Expand Down

0 comments on commit d03b0dc

Please sign in to comment.