Installing and configuring the AWS CSI drivers in your cluster
We will install both the EBS and EFS drivers in this section. You will need a similar process for both, detailed next:
- Create an Identity and Access Management (IAM) policy that will allow the plugin to perform AWS API calls for either EBS or EFS.
- Create and map an IAM role to an EKS service account (this is discussed in detail in Chapter 1)3.
- Deploy the plugin and configure it to use the service account created in step 2.
Installing and configuring the EBS CSI driver
The driver can be found at https://github.com/kubernetes-sigs/aws-ebs-csi-driver. Let’s get down to installing it!
- You can create the IAM policy from scratch or you can use the
AmazonEBSCSIDriverPolicy
AWS-managed policy. - We can now create the role. We will use the
–role-only
command-line switch, so we don’t create the EKS service account. Using the followingeksctl
command, adjust the command line...