• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
AWS EKS EBS volume attach issue in Kubernetes: Persistence Volume Attach issue fix EKS

AWS EKS EBS volume attach issue in Kubernetes: Persistence Volume Attach issue fix EKS

Abhiram Thejas

  • 4 min read
AWS EKS EBS volume attach issue in Kubernetes: Persistence Volume Attach issue fix EKS

Generating audio, please wait...

Amazon Elastic Kubernetes Service (EKS) is a managed Kubernetes service that simplifies deploying, managing, and scaling containerized applications using Kubernetes on AWS. In this documentation, we’ll address common issues related to persistent volume attachment and demonstrate how to associate an EBS volume encryption policy with an IAM role for use in EKS.

When attempting to attach a persistent volume to an EKS cluster, you may encounter the error message:

"waiting for a volume to be created, either by external provisioner 'ebs.csi.aws.com' or manually created by the system administrator."

while describing the PVC by running

kubectl describe PVC yourpvcname

This error typically occurs during volume provisioning, preventing successful attachment of the volume to the cluster.

Solution

To resolve the persistent volume attachment issue and attach an EBS volume encryption policy to an IAM role, follow these steps:

1. Associate IAM OIDC Provider

IAM OIDC Provider (Identity and Access Management OpenID Connect Provider) is a service provided by AWS that allows you to integrate your AWS Identity and Access Management (IAM) system with an OpenID Connect (OIDC)-compatible identity provider. It enables authentication and authorization of users and applications in AWS based on the standards of OpenID Connect.

By configuring an IAM OIDC Provider, you establish a trust relationship between AWS and your OIDC IdP. This trust allows AWS services like Amazon EKS, Amazon Cognito, etc., to use OIDC tokens issued by your IdP for authentication and authorization.

For example, Amazon EKS can use the IAM OIDC Provider to authenticate Kubernetes service accounts using OIDC tokens, simplifying access control for pods in your EKS cluster.

In summary, IAM OIDC Provider facilitates secure integration between your existing identity provider using OpenID Connect and AWS IAM, allowing you to use standardized identity protocols for authentication and authorization within the AWS ecosystem.

Before proceeding, ensure you have the necessary permissions. Run the following command to associate the IAM OIDC provider with your EKS cluster:

eksctl utils associate-iam-oidc-provider --region=your_region --cluster=your_cluster --approve

2. Create IAM Service Account

Next, create an IAM service account named “ebs-csi-controller-sa” using eksctl. This account will have the permissions required for EBS volume provisioning:

eksctl create iamserviceaccount \
--name ebs-csi-controller-sa \
--namespace kube-system \
--cluster your_cluster \
--attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \
--approve \
--role-only \
--role-name AmazonEKS_EBS_CSI_Driver

3. Update IAM Policy for EBS Volume Encryption(Optional)

Now, let’s update the IAM service account to include an EBS volume encryption policy:

  • Update the IAM policy by adding the following JSON snippet for EBS volume encryption permissions:

the full policy can be viewed here https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/example-iam-policy.json

{
"Effect": "Allow",
"Action": [
"kms:Decrypt",
"kms:GenerateDataKeyWithoutPlaintext",
"kms:CreateGrant"
],
"Resource": "*"
}

Update the IAM service account using eksctl, adding the encryption policy ARN:

eksctl create iamserviceaccount \
--name ebs-csi-controller-sa \
--namespace kube-system \
--cluster your_cluster\
--attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \
--attach-policy-arn arn:aws:iam::aws:policy/your-encryption-policy-name # Replace with the actual encryption policy ARN
--approve \
--role-only \
--role-name AmazonEKS_EBS_CSI_Driver

4. Create EKS Addon

An EKS addon is a pre-built extension or enhancement for Amazon Elastic Kubernetes Service (EKS) that provides additional functionalities, features, or components to extend the capabilities of your Kubernetes clusters running on EKS. Addons help streamline the deployment and management of specific functionalities, making it easier for users to integrate and utilize various AWS services within their EKS environment.

Examples of EKS Addons:

  • Amazon VPC CNI (Container Network Interface): This addon enhances networking for pods by integrating with Amazon VPC, improving performance and security.
  • Amazon EBS CSI (Container Storage Interface) Driver: Simplifies the management and use of Amazon Elastic Block Store (EBS) volumes in Kubernetes applications.
  • Cluster Autoscaler: Automatically adjusts the size of the EKS cluster by managing the number of nodes based on resource requirements.

Create the EKS addon “aws-ebs-csi-driver” using eksctl and link it to the IAM service account you just created:

eksctl create addon --name aws-ebs-csi-driver --cluster your_cluster --service-account-role-arn arn:aws:iam::$(aws sts get-caller-identity --query Account --output text):role/AmazonEKS_EBS_CSI_Driver --force

By following these steps, you should resolve the persistent volume attachment issue and configure EBS volume encryption policy for your IAM service account, allowing successful encryption and decryption of EBS volumes within your AWS EKS cluster.

Frustrated by EBS volume attachment issues in Kubernetes? This guide provides a step-by-step solution to fix persistent volume attachment problems on AWS EKS. Don’t let storage issues slow you down - read now and get your cluster back on track!

  • AWS
  • DevOps

Continue Your Journey With…

DevOps as a Service

DevOps as a Service

Let us do the heavy lifting for you

Promotional banner
Promotional banner

Kubernetes runtime security tool: Falco

Kubernetes runtime security tool: Falco
  • AWS
  • DevOps
logo

Monitor Kubernetes nodes with Wazuh

Monitor Kubernetes nodes with Wazuh
  • AWS
  • DevOps
logo

Posts by Abhiram Thejas