我有带有访问策略的pvc
accessModes:
- ReadWriteOnce
我想将其更改为ReadWriteMany是否可以在不删除的情况下编辑pvc?
我知道我可以通过删除它来创建它,但是我不想删除它。
我检查了this answer,但并没有帮助我。这与我的用例相反。
我尝试使用kubectl edit pvc <pvc_name>
对其进行编辑,这是commititng更改时错误的输出:
persistentvolumeclaims "task-pv-claim" was not valid:
spec: Forbidden: is immutable after creation except resources.requests for bound claims
这表示您无法在创建声明后使用kubectl edit
或kubectl patch
对其进行编辑。