File tree Expand file tree Collapse file tree 4 files changed +15
-15
lines changed
Expand file tree Collapse file tree 4 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1414
1515| Name | Version |
1616| ------| ---------|
17- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | 5.97 .0 |
18- | <a name =" provider_aws.karpenter " ></a > [ aws.karpenter] ( #provider\_ aws.karpenter ) | 5.97 .0 |
17+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | 5.98 .0 |
18+ | <a name =" provider_aws.karpenter " ></a > [ aws.karpenter] ( #provider\_ aws.karpenter ) | 5.98 .0 |
1919| <a name =" provider_helm " ></a > [ helm] ( #provider\_ helm ) | 2.17.0 |
2020| <a name =" provider_null " ></a > [ null] ( #provider\_ null ) | 3.2.3 |
2121
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ locals {
7575 ec2_node_class_manifest = templatefile (" ${ path . module } /templates/ec2_node_class.yaml.tpl" , {
7676 ami_id = data.aws_ami.eks_default.image_id
7777 role_arn = module.karpenter.node_iam_role_arn
78+ subnet_ids = var.subnet_ids
7879 primary_security_group_id = module.eks.cluster_primary_security_group_id
7980 security_group_id = module.eks.cluster_security_group_id
8081 })
Original file line number Diff line number Diff line change 88 - id: ${ ami_id}
99 role: ${ role_arn}
1010 subnetSelectorTerms:
11- - tags:
12- Name: ops_a
13- - tags:
14- Name: ops_b
11+ %{ for id in subnet_ids }
12+ - id: ${ id}
13+ %{ endfor }
1514 securityGroupSelectorTerms:
1615 - id: ${ primary_security_group_id}
1716 - id: ${ security_group_id}
17+ blockDeviceMappings:
18+ - deviceName: /dev/sda1
19+ ebs:
20+ volumeSize: 200Gi
21+ volumeType: gp3
22+ encrypted: true
23+ iops: 10000
24+ throughput: 500
25+ deleteOnTermination: true
1826 kubelet:
1927 maxPods: 100
Original file line number Diff line number Diff line change 3232 group: karpenter.k8s.aws
3333 kind: EC2NodeClass
3434 name: karpenter
35- blockDeviceMappings:
36- - deviceName: /dev/sda1
37- ebs:
38- volumeSize: 200Gi
39- volumeType: gp3
40- encrypted: true
41- iops: 10000
42- throughput: 500
43- deleteOnTermination: true
4435 limits:
4536 cpu: 1000
4637 disruption:
You can’t perform that action at this time.
0 commit comments