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

[tempo-distributed] MinIO not affected by tempo.podSecurityContext or tempo.securityContext #3526

Open
sejbot opened this issue Jan 16, 2025 · 0 comments

Comments

@sejbot
Copy link

sejbot commented Jan 16, 2025

I am deploying the tempo-distributed helm chart in my kubernets cluster version 1.27.6. I have configured tempo podSecurityPolicy like so:

tempo:
  podSecurityContext:
    fsGroup: 1000
    seccompProfile:
      type: RuntimeDefault

When deployed, MinIO pods won't start with error message: pods "grafana-tempo-minio-668b669f7-6xhdc" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "minio" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "minio" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "minio" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "minio" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

Inspecting the generated MinIO deployment manifest I can indeed see that spec.securityContext does not match my configuration in tempo.podSecurityContext. However, the other components like compactor, distributor, ingester etc. have the correct spec.securityContext

Also, the MinIO manifest misses the spec.containers[].securityContext section. The other component have the default values from the helm chart but MinIO completely misses it.

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

1 participant