[zh]update file content/zh/docs/reference/access-authn-authz/rbac.md

This commit is contained in:
wei.wang
2022-04-21 01:25:21 +08:00
parent c62c9e9c61
commit 1e6c02e1cd
@@ -574,23 +574,23 @@ rules:
<!-- <!--
Allow reading/writing Deployments (at the HTTP level: objects with `"deployments"` Allow reading/writing Deployments (at the HTTP level: objects with `"deployments"`
in the resource part of their URL) in both the `"extensions"` and `"apps"` API groups: in the resource part of their URL) in the `"apps"` API groups:
--> -->
允许读/写在 "extensions" 和 "apps" API 组中的 Deployment(在 HTTP 层面,对应 允许读/写在 `"apps"` API 组中的 Deployment(在 HTTP 层面,对应
URL 中资源部分为 "deployments"): URL 中资源部分为 "deployments"):
```yaml ```yaml
rules: rules:
- apiGroups: ["extensions", "apps"] - apiGroups: ["apps"]
resources: ["deployments"] resources: ["deployments"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
``` ```
<!-- <!--
Allow reading Pods in the core API group, as well as reading or writing Job Allow reading Pods in the core API group, as well as reading or writing Job
resources in the `"batch"` or `"extensions"` API groups: resources in the `"batch"` API group:
--> -->
允许读取核心 API 组中的 "pods" 和读/写 `"batch"``"extensions"` API 组中的 允许读取核心 API 组中的 "pods" 和读/写 `"batch"` API 组中的
"jobs" "jobs"
```yaml ```yaml
@@ -598,7 +598,7 @@ rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["pods"] resources: ["pods"]
verbs: ["get", "list", "watch"] verbs: ["get", "list", "watch"]
- apiGroups: ["batch", "extensions"] - apiGroups: ["batch"]
resources: ["jobs"] resources: ["jobs"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
``` ```