--- apiVersion: v1 kind: ServiceAccount metadata: name: stalwart-apply namespace: mail --- # Lets the stalwart-apply Job roll the Stalwart pods after applying the plan. apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: stalwart-apply namespace: mail rules: - apiGroups: - apps resources: - statefulsets resourceNames: - stalwart verbs: - get - patch --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: stalwart-apply namespace: mail roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: stalwart-apply subjects: - kind: ServiceAccount name: stalwart-apply namespace: mail