File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
manifests/02-kube-aws-iam-controller Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ metrics_service_mem_max: "4Gi"
417
417
metrics_server_metric_resolution : " 15s"
418
418
419
419
kube_aws_iam_controller_cpu : " 5m"
420
- kube_aws_iam_controller_mem_max : " 1Gi "
420
+ kube_aws_iam_controller_mem : " 50Mi "
421
421
422
422
kube_state_metrics_cpu : " 100m"
423
423
kube_state_metrics_mem_max : " 4Gi"
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ spec:
34
34
resources :
35
35
limits :
36
36
cpu : " {{.Cluster.ConfigItems.kube_aws_iam_controller_cpu}}"
37
- memory : " {{.Cluster.ConfigItems.kube_aws_iam_controller_mem_max }}"
37
+ memory : " {{.Cluster.ConfigItems.kube_aws_iam_controller_mem }}"
38
38
requests :
39
39
cpu : " {{.Cluster.ConfigItems.kube_aws_iam_controller_cpu}}"
40
- memory : " {{.Cluster.ConfigItems.kube_aws_iam_controller_mem_max }}"
40
+ memory : " {{.Cluster.ConfigItems.kube_aws_iam_controller_mem }}"
41
41
tolerations :
42
42
- key : node.kubernetes.io/role
43
43
value : master
Original file line number Diff line number Diff line change 17
17
containerPolicies :
18
18
- containerName : kube-aws-iam-controller
19
19
maxAllowed :
20
- memory : {{.Cluster.ConfigItems.kube_aws_iam_controller_mem_max}}
20
+ {{ range $NodePool := .Cluster.NodePools }}
21
+ {{ if eq $NodePool.name "default-master" }}
22
+ # Scaling is relative to r6g.large (smallest master node)
23
+ # 0.014 -> 25m CPU, 0.003 -> 50Mi memory
24
+ cpu : {{ scaleQuantity ( instanceTypeCPU ( index .InstanceTypes 0 )) 0.014 }}
25
+ memory : {{ scaleQuantity ( instanceTypeMemory ( index .InstanceTypes 0 )) 0.003 }}
26
+ {{ end }}
27
+ {{ end }}
You can’t perform that action at this time.
0 commit comments