--- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: "restart-deployment" roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: "restart-deployment" subjects: - kind: "ServiceAccount" name: "restart-deployment"