Skip to content

Commit ddaaa79

Browse files
lowerzeromicahhausler
lowerzero
authored andcommitted
Add ability to modify node root volume size
* Add ability modify root volume size
1 parent 5eed55c commit ddaaa79

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

amazon-eks-nodegroup.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ Parameters:
8484
Description: Maximum size of Node Group ASG.
8585
Default: 3
8686

87+
NodeVolumeSize:
88+
Type: Number
89+
Description: Node volume size
90+
Default: 20
91+
8792
ClusterName:
8893
Description: The cluster name provided when the cluster was created. If it is incorrect, nodes will not be able to join the cluster.
8994
Type: String
@@ -127,6 +132,7 @@ Metadata:
127132
- NodeAutoScalingGroupMaxSize
128133
- NodeInstanceType
129134
- NodeImageId
135+
- NodeVolumeSize
130136
- KeyName
131137
- BootstrapArguments
132138
-
@@ -248,6 +254,12 @@ Resources:
248254
KeyName: !Ref KeyName
249255
SecurityGroups:
250256
- !Ref NodeSecurityGroup
257+
BlockDeviceMappings:
258+
- DeviceName: /dev/xvda
259+
Ebs:
260+
VolumeSize: !Ref NodeVolumeSize
261+
VolumeType: gp2
262+
DeleteOnTermination: true
251263
UserData:
252264
Fn::Base64:
253265
!Sub |

0 commit comments

Comments
 (0)