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

Add new logic for eks 1.30 and ebs-csi-driver #152

Open
zack-is-cool opened this issue Jun 3, 2024 · 0 comments
Open

Add new logic for eks 1.30 and ebs-csi-driver #152

zack-is-cool opened this issue Jun 3, 2024 · 0 comments

Comments

@zack-is-cool
Copy link
Member

zack-is-cool commented Jun 3, 2024

eks 1.30 has some relevant changes

We should add logic to the ebs-csi-driver addon config to handle setting gp3 as the default in the addon settings if the addon-version is > 1.31.0 or something.

https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions-standard.html

With Amazon EKS 1.30, the topology.k8s.aws/zone-id label is added to worker nodes. You can use Availability Zone IDs (AZ IDs) to determine the location of resources in one account relative to the resources in another account. For more information, see Availability Zone IDs for your AWS resources in the AWS RAM User Guide.

Starting with 1.30, Amazon EKS no longer includes the default annotation on the gp2 StorageClass resource applied to newly created clusters. This has no impact if you are referencing this storage class by name. You must take action if you were relying on having a default StorageClass in the cluster. You should reference the StorageClass by the name gp2. Alternatively, you can deploy the Amazon EBS recommended default storage class by setting the defaultStorageClass.enabled parameter to true when installing v1.31.0 or later of the aws-ebs-csi-driver add-on.

The minimum required IAM policy for the Amazon EKS cluster IAM role has changed. The action ec2:DescribeAvailabilityZones is required. For more information, see Amazon EKS cluster IAM role.

aws eks describe-addon-configuration  \
  --addon-name aws-ebs-csi-driver \
  --addon-version v1.31.0-eksbuild.1 \
  --query 'configurationSchema' \
  --output text | jq
they finally provided a config for
    "defaultStorageClass": {
      "additionalProperties": false,
      "properties": {
        "enabled": {
          "default": false,
          "description": "Creates a default StorageClass.",
          "type": "boolean"
        }
      },

when installing aws-ebs-csi-driver
means that you can get gp3 set as the default storage class when using marketplace addons && without touching the cluster itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant