I have successfully deployed efs-provisioner
following the steps outlined in efs-provisioner.
But the PVC is hanging in Pending
State displaying the same message:
waiting for a volume to be created, either by external provisioner "example.com/aws-efs" or manually created by system administrator
.
What could be a reason why PVC is not created properly?
The solution was described by ParaSwarm posted here
"...The quick fix is to give the cluster-admin role to the default service account. Of course, depending on your environment and security, you may need a more elaborate fix. If you elect to go the easy way, you can simply apply this:"
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: default-admin-rbac (or whatever)
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io