Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jobs.batch is forbidden: User #10

Open
vivekhimalayas opened this issue Jan 13, 2021 · 2 comments
Open

jobs.batch is forbidden: User #10

vivekhimalayas opened this issue Jan 13, 2021 · 2 comments

Comments

@vivekhimalayas
Copy link

Getting the below error while applying the given yaml file.

2021/01/13 15:24:14 failed to list all jobs in the namespace {error 25 0 jobs.batch is forbidden: User "system:serviceaccount:xxxxx:default" cannot list resource "jobs" in API group "batch" in the namespace "xxxx"}

@vivekhimalayas
Copy link
Author

2021/01/13 15:24:14 using inClusterConfig
2021/01/13 15:24:14 fetching jobs from xxxxx namespace
2021/01/13 15:24:14 failed to list all jobs in the namespace {error 25 0 jobs.batch is forbidden: User "system:serviceaccount:xxxx:default" cannot list resource "jobs" in API group "batch" in the namespace "xxxxx"}

@sukeesh
Copy link
Owner

sukeesh commented Jan 14, 2021

@vivekhimalayas Please check the Readme.

By default, this uses default Service account to list all jobs. If default SA has no permission, then instructions are provided for that as well in this section of Readme. https://github.com/sukeesh/k8s-job-notify#to-start-using-this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants