Commit c5124920 by tingweiwang

autodl roles增加pods/exec资源对象,并增加create操作权限

1 parent 640a27cf
Showing with 2 additions and 2 deletions
...@@ -37,8 +37,8 @@ rules: ...@@ -37,8 +37,8 @@ rules:
resources: ["services", "ingresses", "deployments", "replicasets"] resources: ["services", "ingresses", "deployments", "replicasets"]
verbs: ["get", "create", "patch", "delete", "list"] verbs: ["get", "create", "patch", "delete", "list"]
- apiGroups: ["", "*"] - apiGroups: ["", "*"]
resources: ["events", "pods/status", "pods/log"] resources: ["events", "pods/status", "pods/log","pods/exec"]
verbs: ["watch", "get", "list"] verbs: ["watch", "get", "list","create"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding kind: RoleBinding
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!