blob: a31f4a7cd2775e47ef4be9b925cb9f4a2472129d [file] [log] [blame]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: gerrit
namespace: gerrit #CHANGE: Change it to the namespace running Gerrit
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: gerrit
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gerrit
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: gerrit
subjects:
- kind: ServiceAccount
name: gerrit
namespace: gerrit #CHANGE: Change it to the namespace running Gerrit