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

monitoring: mount service account token for grafana dashboard sidecar #66

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

bfritz
Copy link
Owner

@bfritz bfritz commented Feb 7, 2022

After the kube-prometheus upgrade in #65, Grafana broke because the k8s-sidecar container that loads custom dashboards needs access to the service account token. That access was removed in prometheus-operator/kube-prometheus#1591 .

A quick search did not turn up a simple way to only mount the token in one of the pod's containers (k8s-sidecar, not grafana), so we're mounting it for all containers in the pod instead. Might be possible to tighten this up further.

After the kube-prometheus upgrade in #65, Grafana broke because the
k8s-sidecar container that loads custom dashboards needs access to
the service account token.  That access was removed in
prometheus-operator/kube-prometheus#1591 .

A quick search did not turn up a simple way to only mount the token in
one of the pod's containers (`k8s-sidecar`, not `grafana`), so we're
mounting it for all containers in the pod instead.  Might be possible to
tighten this up further.
@bfritz
Copy link
Owner Author

bfritz commented Feb 7, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 7, 2022

Build succeeded:

@bors bors bot merged commit 3d13286 into main Feb 7, 2022
@bors bors bot deleted the kube-prometheus_version_bumps branch February 7, 2022 03:18
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