File tree Expand file tree Collapse file tree
content/fr/docs/reference/access-authn-authz Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -344,14 +344,17 @@ Voici un exemple qui ajoute des règles au ClusterRole "monitoring", en créant
344344apiVersion: rbac.authorization.k8s.io/v1
345345kind: ClusterRole
346346metadata:
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.
352352rules:
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
You can’t perform that action at this time.
0 commit comments