| Giorgi Lekveishvili | 285ab62 | 2023-11-22 13:50:45 +0400 | [diff] [blame] | 1 | --- |
| 2 | apiVersion: v1 |
| 3 | kind: ServiceAccount |
| 4 | metadata: |
| 5 | name: gerrit |
| 6 | namespace: gerrit #CHANGE: Change it to the namespace running Gerrit |
| 7 | |
| 8 | --- |
| 9 | kind: ClusterRole |
| 10 | apiVersion: rbac.authorization.k8s.io/v1 |
| 11 | metadata: |
| 12 | name: gerrit |
| 13 | rules: |
| 14 | - apiGroups: [""] |
| 15 | resources: ["pods"] |
| 16 | verbs: ["get", "list"] |
| 17 | |
| 18 | --- |
| 19 | apiVersion: rbac.authorization.k8s.io/v1 |
| 20 | kind: ClusterRoleBinding |
| 21 | metadata: |
| 22 | name: gerrit |
| 23 | roleRef: |
| 24 | apiGroup: rbac.authorization.k8s.io |
| 25 | kind: ClusterRole |
| 26 | name: gerrit |
| 27 | subjects: |
| 28 | - kind: ServiceAccount |
| 29 | name: gerrit |
| 30 | namespace: gerrit #CHANGE: Change it to the namespace running Gerrit |