【发布时间】:2020-11-24 16:30:57
【问题描述】:
我正在尝试配置 RBAC,以便我可以配置卷。这是此 (How can I properly provision a volume for argo?) 线程的后续。添加角色将错误从“无法获取资源”更改为“无法创建资源”。
我现在认为是 Kubernetes 的问题,但还是不明白如何解决。
错误:
Error from server (Forbidden): error when creating "/tmp/manifest.yaml": persistentvolumeclaims is forbidden: User "system:serviceaccount:argo:argo" cannot create resource "persistentvolumeclaims" in API group "" in the namespace "argo"
角色.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: workflow
namespace: argo
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- pods/log
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- persistentvolumeclaims
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
【问题讨论】:
标签: kubernetes volume persistent-volume-claims