Skip to content

Commit e69a9bd

Browse files
committed
update README
1 parent 4f93897 commit e69a9bd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/@aws-cdk/aws-eks-v2-alpha/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,22 @@ const cluster = new eks.Cluster(this, 'EksAutoCluster', {
148148

149149
For more information, see [Create a Node Pool for EKS Auto Mode](https://docs.aws.amazon.com/eks/latest/userguide/create-node-pool.html).
150150

151+
### Disabling Default Node Pools
152+
153+
You can disable the default node pools entirely by setting an empty array for `nodePools`. This is useful when you want to use Auto Mode features but manage your compute resources separately:
154+
155+
```ts
156+
const cluster = new eks.Cluster(this, 'EksAutoCluster', {
157+
version: eks.KubernetesVersion.V1_32,
158+
defaultCapacityType: eks.DefaultCapacityType.AUTOMODE,
159+
compute: {
160+
nodePools: [], // Disable default node pools
161+
},
162+
});
163+
```
164+
165+
When node pools are disabled this way, no IAM role will be created for the node pools, preventing deployment failures that would otherwise occur when a role is created without any node pools.
166+
151167
### Node Groups as the default capacity type
152168

153169
If you prefer to manage your own node groups instead of using Auto Mode, you can use the traditional node group approach by specifying `defaultCapacityType` as `NODEGROUP`:

0 commit comments

Comments
 (0)