-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Loki and promtail unable to start when using Istio and PodSecurityPolicies #2355
Comments
Maybe adding a variable for extra allowed volumes to PSP would be a solution here? |
That's also a possibility, although I don't immediately see any security implications for adding the |
Thanks for the detailed writeup. Two things:
|
Good to hear! I'll send a PR later today. |
StevenReitsma
added a commit
to StevenReitsma/loki
that referenced
this issue
Jul 16, 2020
Merged
2 tasks
cyriltovena
pushed a commit
that referenced
this issue
Jul 17, 2020
2 tasks
mraboosk
pushed a commit
to mraboosk/loki
that referenced
this issue
Oct 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
We have a cluster where we use PodSecurityPolicies and Istio. The Loki and promtail helm charts (and maybe fluentbit as well, but we don't use it) support the creation of a PodSecurityPolicy. This PodSecurityPolicy does not include volume mounting of the
projected
anddownwardAPI
type, which are necessary for the Istio sidecar to function.To Reproduce
Steps to reproduce the behavior:
downwardAPI
andprojected
volume permissions for the Istio sidecarSame goes for promtail.
Note that this is AFTER I added NET_BIND_SERVICE capability to the PSP which is necessary to make it work according to #2115. I think this should already be fixed in a new release right?
Expected behavior
Loki and promtail can start.
Environment:
How to fix:
Add
downwardAPI
andprojected
to the list of volumes in the PSPs for Loki, promtail and maybe fluentbit.I can make a PR if the maintainers agree that this change should be made.
The text was updated successfully, but these errors were encountered: