Skip to content

Commit a5ff926

Browse files
authored
Merge pull request #1099 from jigisha620/add-allowed-topologies
Add allowedTopologies to the storageClass
2 parents 4652444 + fabf79f commit a5ff926

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

latest/ug/automode/create-storage-class.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ metadata:
2121
name: auto-ebs-sc
2222
annotations:
2323
storageclass.kubernetes.io/is-default-class: "true"
24+
allowedTopologies:
25+
- matchLabelExpressions:
26+
- key: eks.amazonaws.com/compute-type
27+
values:
28+
- auto
2429
provisioner: ebs.csi.eks.amazonaws.com
2530
volumeBindingMode: WaitForFirstConsumer
2631
parameters:
@@ -38,6 +43,7 @@ kubectl apply -f storage-class.yaml
3843
*Key components:*
3944

4045
- `provisioner: ebs.csi.eks.amazonaws.com` - Uses EKS Auto Mode
46+
- `allowedTopologies` - Specifying `matchLabelExpressions` to match on `eks.amazonaws.com/compute-type:auto` will ensure that if your pods need a volume to be automatically provisioned using Auto Mode then the pods will not be scheduled on non-Auto nodes.
4147
- `volumeBindingMode: WaitForFirstConsumer` - Delays volume creation until a pod needs it
4248
- `type: gp3` - Specifies the EBS volume type
4349
- `encrypted: "true"` - EBS will encrypt any volumes created using the `StorageClass`. EBS will use the default `aws/ebs` key alias. For more information, see link:ebs/latest/userguide/how-ebs-encryption-works.html["How Amazon EBS encryption works",type="documentation"] in the Amazon EBS User Guide. This value is optional but suggested.

0 commit comments

Comments
 (0)