First of all to put some context on that question.
EKS
cluster with version >= 1.15
EFS
- EKS
security group
/ mount target
etc. are working properlyCSI
driver for EFS
in EKS
is installed and work as expectedefs-sc
using the EFS CSI
driver as a provisionerEFS
volume on the podBut ... it only works if it is the root path /
that is defined as the path in the kubernetes
persistent volume resource definition.
Example with Terraform 0.12 syntax
resource "kubernetes_persistent_volume" "vol" {
metadata {
name = "my-vol"
}
spec {
capacity = {
storage = "15Gi"
}
access_modes = ["ReadWriteMany"]
storage_class_name = "efs-sc"
persistent_volume_reclaim_policy = "Recycle"
persistent_volume_source {
nfs {
path = "/" # -> OK it works properly
# path = "/access-point-path" -> NOT WORKING
server = var.efs-storage-apt-server
}
}
}
}
When I try to specify the path of my access point the mounting of the volume fails.
The efs
access point is configured like this
So is it a limitation? Did I miss something?
I was looking about this solution efs-provisioner but I don't see what this will solve from this current configuration.