[英]Issue with PVC in EKS Cluster
I am trying to create a PVC using AWS FSx serrvice for windows but getting the following error message:我正在尝试使用 AWS FSx 服务为 windows 创建 PVC,但收到以下错误消息:
"rror from server (Forbidden): error when creating "pvc-smb.yaml": persistentvolumeclaims "pvc-smb" is forbidden: may only update PVC status" “来自服务器的错误(禁止):创建“pvc-smb.yaml”时出错:persistentvolumeclaims “pvc-smb”被禁止:只能更新 PVC 状态”
I was referring the URL: https://aws.amazon.com/blogs/containers/using-amazon-fsx-for-windows-file-server-as-persistent-storage-on-amazon-eks/ to utilize FSx as volume.我指的是 URL: https://aws.amazon.com/blogs/containers/using-amazon-fsx-for-windows-file-server-as-persistent-storage-on-amazon-eks/来利用 FS体积。
I am able to create the volume but volume claim is failing with above error message.我能够创建卷,但卷声明失败并显示上述错误消息。 This is the pvc yaml file:
这是 pvc yaml 文件:
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvc-smb spec: accessModes: - ReadWriteMany resources: requests: storage: 10Gi volumeName: pv-smb storageClassName: ""种类:PersistentVolumeClaim apiVersion:v1 元数据:名称:pvc-smb 规范:accessModes:-ReadWriteMany 资源:请求:存储:10Gi 卷名:pv-smb storageClassName:“”
Any kind of help is highly appreciated.任何形式的帮助都将受到高度赞赏。
Thanks谢谢
This is resolved.这解决了。 Actually system:nodes group does not allow to create pvc.
实际上 system:nodes 组不允许创建 pvc。 I applied the manifest from different machine which is not a worker node.
我从不是工作节点的不同机器应用了清单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.