github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/ansible/roles/heapster/templates/heapster-rbac.yaml (about)

     1  kind: ClusterRoleBinding
     2  apiVersion: rbac.authorization.k8s.io/v1
     3  metadata:
     4    name: heapster
     5  roleRef:
     6    apiGroup: rbac.authorization.k8s.io
     7    kind: ClusterRole
     8    name: system:heapster
     9  subjects:
    10  - kind: ServiceAccount
    11    name: heapster
    12    namespace: kube-system
    13  ---
    14  kind: ClusterRole
    15  apiVersion: rbac.authorization.k8s.io/v1
    16  metadata:
    17    name: heapster-additional
    18  rules:
    19  - apiGroups: [""]
    20    resources: ["nodes/stats"]
    21    verbs: ["create", "get", "watch", "list"]
    22  ---
    23  kind: ClusterRoleBinding
    24  apiVersion: rbac.authorization.k8s.io/v1
    25  metadata:
    26    name: heapster-additional
    27  roleRef:
    28    apiGroup: rbac.authorization.k8s.io
    29    kind: ClusterRole
    30    name: heapster-additional
    31  subjects:
    32  - kind: ServiceAccount
    33    name: heapster
    34    namespace: kube-system