sigs.k8s.io/kueue@v0.6.2/config/components/prometheus/role.yaml (about)

     1  apiVersion: rbac.authorization.k8s.io/v1
     2  kind: Role
     3  metadata:
     4    name: prometheus-k8s
     5    namespace: system
     6  rules:
     7  - apiGroups:
     8    - ""
     9    resources:
    10    - services
    11    - endpoints
    12    - pods
    13    verbs:
    14    - get
    15    - list
    16    - watch
    17  - apiGroups:
    18    - extensions
    19    resources:
    20    - ingresses
    21    verbs:
    22    - get
    23    - list
    24    - watch
    25  - apiGroups:
    26    - networking.k8s.io
    27    resources:
    28    - ingresses
    29    verbs:
    30    - get
    31    - list
    32    - watch
    33  ---
    34  apiVersion: rbac.authorization.k8s.io/v1
    35  kind: RoleBinding
    36  metadata:
    37    name: prometheus-k8s
    38    namespace: system
    39  roleRef:
    40    apiGroup: rbac.authorization.k8s.io
    41    kind: Role
    42    name: prometheus-k8s
    43  subjects:
    44  - kind: ServiceAccount
    45    name: prometheus-k8s
    46    namespace: monitoring
    47  - kind: ServiceAccount
    48    name: prometheus-operator
    49    namespace: monitoring