如何在 PVC 工作的情况下部署 EFS-Provisioner
How to Deploy EFS-Provisioner with PVC working
我已按照 efs-provisioner 中概述的步骤成功部署 efs-provisioner
。
但是 PVC 处于 Pending
状态并显示相同的消息:
waiting for a volume to be created, either by external provisioner "example.com/aws-efs" or manually created by system administrator
.
没有正确创建 PVC 的原因可能是什么?
解决方案由 ParaSwarm 发布 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
我已按照 efs-provisioner 中概述的步骤成功部署 efs-provisioner
。
但是 PVC 处于 Pending
状态并显示相同的消息:
waiting for a volume to be created, either by external provisioner "example.com/aws-efs" or manually created by system administrator
.
没有正确创建 PVC 的原因可能是什么?
解决方案由 ParaSwarm 发布 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