diff --git a/content/zh/docs/reference/access-authn-authz/rbac.md b/content/zh/docs/reference/access-authn-authz/rbac.md index 59c5a00d72..85a982786c 100644 --- a/content/zh/docs/reference/access-authn-authz/rbac.md +++ b/content/zh/docs/reference/access-authn-authz/rbac.md @@ -574,23 +574,23 @@ rules: -允许读/写在 "extensions" 和 "apps" API 组中的 Deployment(在 HTTP 层面,对应 +允许读/写在 `"apps"` API 组中的 Deployment(在 HTTP 层面,对应 URL 中资源部分为 "deployments"): ```yaml rules: -- apiGroups: ["extensions", "apps"] +- apiGroups: ["apps"] resources: ["deployments"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] ``` -允许读取核心 API 组中的 "pods" 和读/写 `"batch"` 或 `"extensions"` API 组中的 +允许读取核心 API 组中的 "pods" 和读/写 `"batch"` API 组中的 "jobs": ```yaml @@ -598,7 +598,7 @@ rules: - apiGroups: [""] resources: ["pods"] verbs: ["get", "list", "watch"] -- apiGroups: ["batch", "extensions"] +- apiGroups: ["batch"] resources: ["jobs"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] ```