'Failed to resolve "efs" - check that your file system ID is correct | with kubernetes pods

We have a EKS cluster setup with version 1.21 and AWS EFS-CSI driver installed. We have crated a storage class,pvc and pv. We are using EFS for storage purpose. Now wherever my pods comes up it is throwing above error saying "Failed to resolve "efs" - check that your file system ID is correct". I check pods resolv.conf it has the efs nameserver added in the resolv.conf. we have configuration done in EFS-CSI-POD as below

      dnsConfig:
        nameservers:
        - 10.60.0.2
      dnsPolicy: ClusterFirst

can somebody help me with the above issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source