Skip to content

Conversation

@solsson
Copy link
Contributor

@solsson solsson commented Oct 31, 2017

In #4 I didn't nail RBAC for GKE. This PR solves some scraping already, but there's still som warnings in prometheus-k8s's log.

though I first interpreted the error as the SA not being found

level=error ts=2017-11-06T09:37:54.446320099Z caller=main.go:211 component=k8s_client_runtime err="github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:245:
Failed to list *v1beta1.Ingress: ingresses.extensions is forbidden: User \"system:serviceaccount:monitoring:prometheus-custom\"
cannot list ingresses.extensions at the cluster scope: Unknown user \"system:serviceaccount:monitoring:prometheus-custom\""
sufficient RBAC already, and each additional instance can add
something like custom's rbac.yaml if needed.

No warnings remain in logs.
@solsson
Copy link
Contributor Author

solsson commented Nov 7, 2017

It's a lot easier to keep related RBAC resouces in the same file. Typically manifests don't have these kind of 1:1 (roughly) dependencies, but here they clearly do.

@solsson solsson merged commit 4cb110d into master Nov 7, 2017
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

Successfully merging this pull request may close these issues.

1 participant