Open dommgifer opened 3 years ago
Hi @dommgifer,
The steps need permissions to get
their workflow. Try updating the permissions of the service account default-editor
(that's the one your pods use) accordingly.
Hi @dommgifer,
The steps need permissions to
get
their workflow. Try updating the permissions of the service accountdefault-editor
(that's the one your pods use) accordingly.
@elikatsis Hi, I'm not familiar with K8s. Could you kindly specify how to update default-editor
's permissions?
@dommgifer @elikatsis @fengredrum I'm having the same issue using KFP 1.7: https://github.com/kubeflow-kale/kale/issues/367
This can be solved by first creating a Role that allows access to the apigroup and then assigning the role to the default-editor serviceaccount:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: workflow-role-kale-ns
rules:
- apiGroups: ["argoproj.io"]
resources: ["pods", "workflows"]
verbs: ["get", "watch", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
# This role binding allows "jane" to read pods in the "default" namespace.
# You need to already have a Role named "pod-reader" in that namespace.
kind: RoleBinding
metadata:
name: kale-ns
namespace: YOUR-NS-HERE
subjects:
- kind: ServiceAccount
name: default-editor
roleRef:
# "roleRef" specifies the binding to a Role / ClusterRole
kind: Role #this must be Role or ClusterRole
name: workflow-role-kale-ns # this must match the name of the Role or ClusterRole you wish to bind to
apiGroup: rbac.authorization.k8s.io
---
I faced the same problem. Have you fix this yet? @dommgifer
kale: v0.7.0 kubeflow: v1.3
Run pipeline example from candies_sharing.ipynb
But got error:
Looks like permission is forbidden of Custom Resource workflows and API group argoproj.io .
Does anyone have any idea ?