https://pulumi.com logo
#aws
Title
# aws
m

millions-market-17062

02/03/2021, 9:23 AM
Is it possible to use NVME disk on EKS nodes? Is there anything built in?
c

cool-fireman-90027

02/03/2021, 1:24 PM
yes, if you select the c5d.x or r5d.x family you can get the nvme disks on eks nodes. The code would go here:
Copy code
instanceType: r5d.x or c5d.x
https://aws.amazon.com/ec2/instance-types/ If you are using an IDE such as visual studio code the intellisense would show you the different instances types available and you can lookup if that instance supports nvme.
instanceType: ""
Hit control and then spacebar when you are in the double quotes and you will see different instance sizes.
m

millions-market-17062

02/03/2021, 3:45 PM
Will the docker overlay dir will be on the NVME disk?
Copy code
const managedNodeGroup_2 = eks.createManagedNodeGroup(`${name}-managed-ng-nvme`, {
    capacityType: "SPOT",
    cluster: cluster,
    nodeGroupName: `${name}-managed-ng-nvme`,
    nodeRoleArn: cluster.instanceRoles[0].arn,
    subnetIds: vpc.privateSubnetIds,
    scalingConfig: {
        desiredSize: 1,
        minSize: 1,
        maxSize: 2,
    },
    diskSize: 50,
    instanceType: ["r5d.large","r5d.xlarge"],
    labels: {"preemptible": "true"},
    tags: [{"org": "pulumi"},
        {"nodeGroupName": `${name}-managed-ng-nvme`}
    ],
}, cluster);
Tried this.. didn’t worked as expected. It gave me
t3a.x
not sure why 😮