apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: zalando-postgres-operator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: zalando-postgres-operator subjects: - kind: ServiceAccount # note: the cluster role binding needs to be defined # for every namespace the operator service account lives in. name: zalando-postgres-operator namespace: default