--- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: status-reader rules: - apiGroups: - batch - v1 resources: - jobs verbs: - get - list - apiGroups: - "" - v1 resources: - secrets verbs: - get - list - patch # Declaration d'un role nommé status-reader et attribution de droit #- apiGroups: # - "" # - v1 # resources: # - services # verbs: # - get # - list #- apiGroups: # - "" # - v1 # resources: # - pods # verbs: # - get # - list