question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot create resource "inferenceservices" in API group "serving.kubeflow.org" in the namespace "..."

See original GitHub issue

/kind bug

I don’t seem to be able to create inference services from within Jupyter. Doing so results in the following error:

inferenceservices.serving.kubeflow.org is forbidden: User "system:serviceaccount:karl-schriek:default-editor" cannot create resource "inferenceservices" in API group "serving.kubeflow.org" in the namespace "karl-schriek": RBAC: clusterrole.rbac.authorization.k8s.io

Authorisation does not appear to be present in the kubeflow-edit ClusterRole. As a workaround I currently have to create the following RoleBinding:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: inferenceservice-edit
  selfLink: /apis/rbac.authorization.k8s.io/v1/clusterroles/inference-service
rules:
- apiGroups:
  - "*"
  resources:
  - inferenceservice
  verbs:
  - "*"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: inferenceservice-edit
  namespace: karl-schriek
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: inferenceservice-edit
subjects:
- kind: ServiceAccount
  name: default-editor
  namespace: karl-schriek

Environment:

  • Istio Version: 1.16
  • Knative Version: 0.11.1
  • KFServing Version: 0.3.0
  • Kubeflow version: 1.0.0
  • Kubernetes version: (use kubectl version): 1.14 (EKS)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Mar 18, 2020

Issue-Label Bot is automatically applying the labels:

Label Probability
bug 0.95

Please mark this comment with 👍 or 👎 to give our bot feedback! Links: app homepage, dashboard and code for this bot.

0reactions
k8s-ci-robotcommented, May 2, 2020

@yuzisun: Closing this issue.

In response to this:

KFServing is added in aws kfdef /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot create resource "inferenceservices" in API group ...
kind bug I don't seem to be able to create inference services from within ... in API group "serving.kubeflow.org" in the namespace "....
Read more >
User system:serviceaccount:kubeflow-user-example-com ...
Kubeflow forbidden: User system:serviceaccount:kubeflow-user-example-com:default-editor cannot create resource inferenceservices in API group.
Read more >
Models UI - Kubeflow
The Models web app is responsible for allowing the user to manipulate the Model Servers in their Kubeflow cluster.
Read more >
https://raw.githubusercontent.com/kubeflow/kfservi...
creationTimestamp name: Age type: date group: serving.kubeflow.org names: kind: ... ://git.k8s.io/community/contributors/devel/api-conventions.md#resources' ...
Read more >
Getting the error cannot create resource "tokenreviews" in API ...
cannot create resource \"tokenreviews\" in API group ... The service account is configured in kubernetes initial namespaces such as ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found