Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix disk pressure error #152

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"desiredSize": 2,
"minSize": 2,
"maxSize": 3,
"ebsSize": 50
"ebsSize": 50,
"ebsDeviceName": "/dev/xvda"
},
"existing.cluster.name": "single-new-eks-observability-accelerator",
"existing.kubectl.rolename": "YOUR_KUBECTL_ROLE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,23 @@ Example settings: Update the context in `cdk.json` file located in `cdk-eks-blue
"desiredSize": 2,
"minSize": 2,
"maxSize": 3,
"ebsSize": 50
"ebsSize": 50,
"ebsDeviceName": "/dev/xvda"
},
}
```

**Note**: insure your selected instance type is available in your region. To check that, you can run the following command (amend `Values` below as you see fit):
**Note**: ensure your selected instance type is available in your region. To check that, you can run the following command (amend `Values` below as you see fit):

```bash
aws ec2 describe-instance-type-offerings \
--filters Name=instance-type,Values="g4*" \
--query "InstanceTypeOfferings[].InstanceType" \
--region us-east-2
--region $AWS_REGION
```

**Note**: ensure `ebsDeviceName` [reflects the name of the root device name of your AMI](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html).

8. Once all pre-requisites are set you are ready to deploy the pipeline. Run the following command from the root of this repository to deploy the pipeline stack:

```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ interface GpuNodeGroupProps {
desiredSize: number,
minSize: number,
maxSize:number,
ebsSize: number
ebsSize: number,
ebsDeviceName: string
}

export default class SingleNewEksGpuOpenSourceObservabilityPattern {
Expand Down Expand Up @@ -113,7 +114,7 @@ function addGpuNodeGroup(gpuNodeGroupProps: GpuNodeGroupProps): blueprints.Manag
requireImdsv2: false,
blockDevices: [
{
deviceName: "/dev/sda1",
deviceName: gpuNodeGroupProps.ebsDeviceName,
volume: ec2.BlockDeviceVolume.ebs(gpuNodeGroupProps.ebsSize),
}
]
Expand Down
Loading