Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Servers, nginx and Docker

EKS pod cannot mount EFS because its node has no EFS CSI plugin

Your error

driver name efs.csi.aws.com not found in the list of registered CSI drivers

Fix it fast

Most common cause, 1 of 3

The EFS CSI driver was never installed in the cluster

Create the IAM role first, then install the add-on.

Fix
aws eks create-addon --cluster-name my-cluster --addon-name aws-efs-csi-driver
# or self-managed:
helm repo add aws-efs-csi-driver https://kubernetes-sigs.github.io/aws-efs-csi-driver/
helm repo update aws-efs-csi-driver
helm upgrade --install aws-efs-csi-driver --namespace kube-system aws-efs-csi-driver/aws-efs-csi-driver
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

The kubelet error "driver name efs.csi.aws.com not found in the list of registered CSI drivers" means the pod's node has no EFS CSI node plugin registered (driver 3.x on EKS). Either the driver is not installed, its efs-csi-node pod there is not ready, or the node is a type the driver skips. Install the aws-efs-csi-driver add-on, then check that node.

  • Applies to Amazon EFS CSI driver 3.6.0 (Helm chart 4.6.0), Amazon EKS on Kubernetes 1.34 to 1.37
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

The list of registered drivers lives on each node, so start from the node the failing pod landed on. Ask that node which CSI drivers it knows, then look for an EFS node pod on it.

Run this first
NODE=$(kubectl get pod <app-pod> -o jsonpath='{.spec.nodeName}')
kubectl get csinode "$NODE" -o jsonpath='{.spec.drivers[*].name}'; echo
kubectl get pods -n kube-system -l app=efs-csi-node -o wide | grep "$NODE"

Then find the line you see in this list and open its fix:

  1. 1The EFS CSI driver was never installed in the clusterkubectl get csidriver efs.csi.aws.com returns NotFound and there is no efs-csi-node DaemonSet in kube-system
  2. 2The efs-csi-node pod on that node is missing, crashing or not ready yetThe DaemonSet exists, but the pod on this node is Pending, in CrashLoopBackOff, not Ready, or the node joined moments before the app pod
  3. 3The pod was scheduled to a node type the driver does not run onThe node is an EKS Hybrid Node or a Windows node, where the EFS driver cannot work

What does the error look like?

  • driver name efs.csi.aws.com not found in the list of registered CSI drivers

Cause 1 of 3

The EFS CSI driver was never installed in the cluster

You seekubectl get csidriver efs.csi.aws.com returns NotFound and there is no efs-csi-node DaemonSet in kube-system

Check

A StorageClass or PersistentVolume can name efs.csi.aws.com long before anything in the cluster provides it. On EC2 nodes the driver is a separate install; AWS recommends adding it as the aws-efs-csi-driver EKS add-on, together with an IAM role that has the AmazonEFSCSIDriverPolicy managed policy.

Check
kubectl get csidriver efs.csi.aws.com
kubectl get daemonset efs-csi-node -n kube-system

Fix

Create the IAM role first, then install the add-on. Check that no self-managed copy is already installed, because AWS asks you to remove it before adding the add-on. Helm from the project's chart repository is the self-managed alternative.

Fix
aws eks create-addon --cluster-name my-cluster --addon-name aws-efs-csi-driver
# or self-managed:
helm repo add aws-efs-csi-driver https://kubernetes-sigs.github.io/aws-efs-csi-driver/
helm repo update aws-efs-csi-driver
helm upgrade --install aws-efs-csi-driver --namespace kube-system aws-efs-csi-driver/aws-efs-csi-driver

Verify

The csinode query from the first step now prints efs.csi.aws.com, and the app pod starts with its volume mounted.

Verify
kubectl get pods -n kube-system -l app=efs-csi-node -o wide

Confirmed by docs.aws.amazon.com

Did this fix it?

Cause 2 of 3

The efs-csi-node pod on that node is missing, crashing or not ready yet

You seeThe DaemonSet exists, but the pod on this node is Pending, in CrashLoopBackOff, not Ready, or the node joined moments before the app pod

Check

Registration happens when the node pod's csi-driver-registrar sidecar tells the kubelet about the driver, which then fills the CSINode object. Until that pod is up, mounts on that node fail with this error. The project documents a startup race on new nodes, where workloads act before the driver is ready.

Check
kubectl describe pod <efs-csi-node-pod> -n kube-system
kubectl logs <efs-csi-node-pod> -n kube-system -c efs-plugin

Fix

Fix what the describe events show, then delete the stuck app pod so it mounts again. For new nodes, taint them with efs.csi.aws.com/agent-not-ready:NoExecute when they join (EKS managed node groups can apply taints); driver v1.7.2 and later removes that taint once it is ready.

Fix
kubectl taint nodes <new-node> efs.csi.aws.com/agent-not-ready:NoExecute
kubectl delete pod <app-pod>

Verify

The efs-csi-node pod on the node shows all containers ready, and the recreated app pod reaches Running.

Verify
kubectl get pod <app-pod> -o wide

Confirmed by raw.githubusercontent.com

Did this fix it?

Cause 3 of 3

The pod was scheduled to a node type the driver does not run on

You seeThe node is an EKS Hybrid Node or a Windows node, where the EFS driver cannot work

Check

AWS lists the EFS CSI driver as incompatible with Windows-based container images and with EKS Hybrid Nodes, and the chart's node affinity keeps the DaemonSet off nodes whose eks.amazonaws.com/compute-type is fargate or hybrid. A pod with an EFS volume placed on such a node never finds the driver. Fargate pods are the exception: they mount EFS without the driver.

Check
kubectl get node "$NODE" -L eks.amazonaws.com/compute-type -L kubernetes.io/os

Fix

Pin workloads that mount EFS to Linux EC2 nodes with a nodeSelector or node affinity, or run them on Fargate.

Fix
spec:
  nodeSelector:
    kubernetes.io/os: linux

Verify

The rescheduled pod lands on a node whose csinode entry lists efs.csi.aws.com, and the volume mounts.

Verify
kubectl describe pod <app-pod> | tail -n 20

Confirmed by docs.aws.amazon.com

Did this fix it?

How do I stop it coming back?

  • Manage the EFS driver as an EKS add-on in the same Terraform or eksctl config that creates the cluster, so a new cluster never ships without it.
  • Add the efs.csi.aws.com/agent-not-ready:NoExecute taint to every node group template that can run EFS workloads.
  • Give EFS-backed Deployments a nodeSelector for Linux EC2 capacity from the first commit, before hybrid or Windows nodes join the cluster.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Projects of mine on the same stack: Dispatch Pro, Raheeb, Loade Driver.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.