cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

ha_rbac.yaml (498B)


      1 apiVersion: v1
      2 kind: ServiceAccount
      3 metadata:
      4   name: gerrit
      5   namespace: gerrit
      6 ---
      7 kind: ClusterRole
      8 apiVersion: rbac.authorization.k8s.io/v1
      9 metadata:
     10   name: gerrit
     11 rules:
     12   - apiGroups: [""]
     13     resources: ["pods"]
     14     verbs: ["get", "list"]
     15 ---
     16 apiVersion: rbac.authorization.k8s.io/v1
     17 kind: ClusterRoleBinding
     18 metadata:
     19   name: gerrit
     20 roleRef:
     21   apiGroup: rbac.authorization.k8s.io
     22   kind: ClusterRole
     23   name: gerrit
     24 subjects:
     25   - kind: ServiceAccount
     26     name: gerrit
     27     namespace: gerrit