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

fluentbit hostPath #1945

Closed
KrawczowaKris opened this issue Feb 10, 2025 · 1 comment
Closed

fluentbit hostPath #1945

KrawczowaKris opened this issue Feb 10, 2025 · 1 comment
Labels
question Further information is requested

Comments

@KrawczowaKris
Copy link

KrawczowaKris commented Feb 10, 2025

Hi team,

we are using pod-security.kubernetes.io/enforce=baseline PSA for a namespace that contains logging resources. So we encounter the following error when deploying the fluentbit daemonset:

Events:
  Type     Reason        Age                   From                  Message
  ----     ------        ----                  ----                  -------
  Warning  FailedCreate  46m                   daemonset-controller  Error creating: pods "tekton-logs-fluentbit-d5b98" is forbidden: violates PodSecurity "baseline:v1.27": hostPath volumes (volumes "varlibcontainers", "varlogs")

Is there an alternative way to configure FluentBit without using hostPath volumes?

@sebastiangaiser
Copy link
Contributor

Hey, I'm not a maintainer but the short answer is no.
baseline pod security is preventing to use hostPath volumes: https://kubernetes.io/docs/concepts/security/pod-security-standards/
You need to either set it to privileged or disable the pod-security.

This might be related to: #1908

@csatib02 csatib02 added the question Further information is requested label Mar 6, 2025
@csatib02 csatib02 closed this as completed Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants