Skip to content

Commit 3651974

Browse files
committed
[fr] Fix endpointslices API group in RBAC
1 parent e23e2aa commit 3651974

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • content/fr/docs/reference/access-authn-authz

content/fr/docs/reference/access-authn-authz/rbac.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,17 @@ Voici un exemple qui ajoute des règles au ClusterRole "monitoring", en créant
344344
apiVersion: rbac.authorization.k8s.io/v1
345345
kind: ClusterRole
346346
metadata:
347-
name: monitoring-endpoints
347+
name: monitoring-endpointslices
348348
labels:
349349
rbac.example.com/aggregate-to-monitoring: "true"
350-
# When you create the "monitoring-endpoints" ClusterRole,
350+
# When you create the "monitoring-endpointslices" ClusterRole,
351351
# the rules below will be added to the "monitoring" ClusterRole.
352352
rules:
353353
- apiGroups: [""]
354-
resources: ["services", "endpointslices", "pods"]
354+
resources: ["services", "pods"]
355+
verbs: ["get", "list", "watch"]
356+
- apiGroups: ["discovery.k8s.io"]
357+
resources: ["endpointslices"]
355358
verbs: ["get", "list", "watch"]
356359
```
357360

0 commit comments

Comments
 (0)