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

Exporter does not work on k8 #200

Closed
jjsimps opened this issue May 24, 2023 · 2 comments · Fixed by #246
Closed

Exporter does not work on k8 #200

jjsimps opened this issue May 24, 2023 · 2 comments · Fixed by #246
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@jjsimps
Copy link
Contributor

jjsimps commented May 24, 2023

Describe the bug (required)

The exporter functionality runs, but it is not able to scrape any of the metrics properly.

In the logs, I see:

I0524 19:15:24.091498       1 exporter.go:91] Start collect
E0524 19:15:24.096177       1 exporter.go:223] pods is forbidden: User "system:serviceaccount:core-dev:default" cannot list resource "pods" in API group "" in the namespace "core-dev"
I0524 19:15:24.096203       1 exporter.go:93] Complete collect, time elapse 4.715559ms

It seems like the Roles/ServiceAccount/RolesBinding etc are not generated properly. They do exist in the original nebula-exporter chart.

Your Environments (required)

Running on k8, chart version 1.4.2 (latest)

How To Reproduce(required)

Enabled exporter with default settings, 1 replica.

Expected behavior

No errors in the logs and the exporter to have metric values.

@wey-gu
Copy link
Contributor

wey-gu commented May 25, 2023

Thanks @jjsimps , could you @MegaByte875 please take a look at the Roles/ServiceAccount/RolesBinding generation for monitoring function of the operator?

@wey-gu wey-gu added the type/bug Type: something is unexpected label May 25, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels May 25, 2023
@MegaByte875
Copy link
Contributor

@wey-gu The error is "list pods" role lost. Let me check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants