apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: custom-workflow namespace: argo rules: - apiGroups: - argoproj.io resources: - workflows verbs: - create - get - list - watch - update - patch - delete - apiGroups: - "" resources: - pods - services verbs: - get - list - watch - create - update - patch - delete - apiGroups: - "" resources: - pods/exec verbs: - create - get - list - watch - update - patch - delete - apiGroups: - "apps" resources: - deployments verbs: - get - list - watch - create - update - patch - delete --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: custom-workflow-default roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: custom-workflow subjects: - kind: ServiceAccount name: default