Install AWS EBS CSI Driver
This page explains steps by step instruction to install the AWS EBS CSI driver on AWS EKS cluster.
Was this helpful?
This page explains steps by step instruction to install the AWS EBS CSI driver on AWS EKS cluster.
Was this helpful?
A CSI driver with snapshotting capability is a requirement for T4K to function properly. It has been discovered that in the Fall of 2022, the snapshot controller has been removed from the AWS EBS CSI driver install process. In addition, CSI is not installed by default with the creation of an EKS cluster so a customer will have to add this CSI support manually after the creation of an EKS cluster.
The instructions are validated for AWS EKS v 1.21, 1.22, and 1.23.
Once you have an existing EKS cluster user with eks-admin
privileges then fetch the kubeconfig
file of the cluster
Install the AWS EBS CSI Driver through . You can follow the below step-by-step instruction with commands:
Get OIDC endpoint:
The output will show the OIDC endpoint:
In the left pane, select Clusters, and then select the name of your cluster on the Clusters page.
In the Details section on the Overview tab, note the value of the OpenID Connect provider URL.
In the left navigation pane, choose Identity Providers under Access management. If a Provider is listed that matches the URL for your cluster, then you already have a provider for your cluster. If a provider isn't listed that matches the URL for your cluster, then you must create one.
To create a provider, choose Add provider.
For Provider type, select OpenID Connect.
For Provider URL, enter the OIDC provider URL for your cluster, and then choose Get thumbprint.
Get OIDC provider for cluster:
The output will show the OIDC endpoint with region name:
Create role JSON file to be applied with AWS CLI
Change the AWS account number, OIDC provider URL and region code as per the EKS cluster deployment.
Create Role by applying role ISON file with AWS CLI:
Attach above created role to Amazon EBS CSI policy
Adding the Amazon EBS CSI add-on:
Add ebs-sc
storage class, example pod and PVC using a CSI volume:
Change default StorageClass
to ebs-sc
:
Add VolumeSnapshot CRDs and Snapshot Controller:
With all above steps, EBS CSI driver with VolumeSnapshot capability is installed.
Install and run the T4K preflight plugin:
Open the Amazon EKS console at .
Open the IAM console at
For Audience, enter and choose Add provider.
If T4K Preflight plugin is not already installed, follow the instructions