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

k8s-monitoring fails to launch pod logs and node exporter due to missing pod-security label #895

Open
aretecarpe opened this issue Nov 12, 2024 · 3 comments

Comments

@aretecarpe
Copy link

grafana k8s-monitoring chart fails due to it not containing the pod-security.kubernetes.io/enforce=privileged. Is there a way to add a label via a values.yaml?

@petewall
Copy link
Collaborator

petewall commented Nov 12, 2024

in v1:

prometheus-node-exporter:
  podLabels:
    pod-security.kubernetes.io/enforce: privileged
alloy-logs:
  controller:
    podLabels:
      pod-security.kubernetes.io/enforce: privileged

@aretecarpe
Copy link
Author

Is this possible in v2?

@petewall
Copy link
Collaborator

Yep, in v2, it should be this:

clusterMetrics:
  node-exporter:
    podLabels:
      pod-security.kubernetes.io/enforce: privileged
alloy-logs:
  controller:
    podLabels:
      pod-security.kubernetes.io/enforce: privileged

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

2 participants