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

Deploying new version results in the errors due to improper clusterrole #153

Closed
mandoddi opened this issue Jun 21, 2019 · 3 comments
Closed

Comments

@mandoddi
Copy link

so i deployed a new version, 0.2 of polaris and it resulted in the below error.. i was able to solve by changing the clusterrole permissions for polaris-dashboard. below is the error for the reference.

time="2019-06-21T21:12:50Z" level=info msg="Starting Polaris dashboard server on port 8080" time="2019-06-21T21:13:19Z" level=error msg="Error fetching Nodes nodes is forbidden: User \"system:serviceaccount:polaris:polaris-dashboard\" cannot list resource \"nodes\" in API group \"\" at the cluster scope" time="2019-06-21T21:13:19Z" level=error msg="Error fetching Kubernetes resources nodes is forbidden: User \"system:serviceaccount:polaris:polaris-dashboard\" cannot list resource \"nodes\" in API group \"\" at the cluster scope"

@rbren
Copy link
Contributor

rbren commented Jun 22, 2019

Thanks for the report! I was able to reproduce an issue with the config in our release config by running:

kubectl apply -f https://github.com/reactiveops/polaris/releases/latest/download/dashboard.yaml

That file has been fixed manually for now (as well as webhook.yaml). However, I was seeing an issue related to statefulsets rather than nodes as you show above. Are you still seeing the issue?

This exposes an issue with our release process. The Polaris chart was fixed on master at github.com/reactiveops/charts, but CI/CD uses the polaris-latest branch, which didn't get the fix. I've opened #154 to track.

@mandoddi
Copy link
Author

mandoddi commented Jun 23, 2019

Thats correct.. i was actually seeing the issue with statefulsets only ... the nodes in the log might have come while i was trying few options with the roles.. you may ignore that..

thank you for a quick reply.

@rbren
Copy link
Contributor

rbren commented Jun 24, 2019

Great, thanks for the confirmation!

Closing this in favor of #154

@rbren rbren closed this as completed Jun 24, 2019
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