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

[Blocker] Kyverno admission controller blocking the telegraf container restricting the pods to run due to securityContext. #147

Open
Vineet2530 opened this issue Aug 26, 2024 · 1 comment

Comments

@Vineet2530
Copy link

Describe the issue here.

Problem :

I have a telegraf operator running in my kubernetes cluster, deployed via helm method. The operator is injecting the telegraf sidecar successfully with my application.
But, when I am deploying my application the Kyverno admission controller blocking the pods to run. This is happening due to kyverno policies like drop-all-capabilities, require-run-as-nonroot are getting violated.
I tried adding the securityContext via telegraf operator but looks like it is getting applied only to operator and not on the telegraf sidecar container.

Questions:

  1. Is there any way (like annotations or something) to apply securityContext to telegraf sidecar container?
  2. Can we configure the telegraf operator in such a way that it will know what and all securityContext to apply on injected telegraf container?

Please provide solution asap as this seems as blocker.

Relevant URLs
  • Provide relevant URLs
What products and version are you using?

telegraf version: 1.22
chart used for deployment: https://github.com/influxdata/helm-charts/blob/master/charts/telegraf-operator/values.yaml

@Vineet2530 Vineet2530 changed the title [Blocker] Kyverno admission controller blocking telegraf container restricting the application to comeup. [Blocker] Kyverno admission controller blocking telegraf container restricting the podsto run. Aug 26, 2024
@Vineet2530 Vineet2530 changed the title [Blocker] Kyverno admission controller blocking telegraf container restricting the podsto run. [Blocker] Kyverno admission controller blocking telegraf container restricting the pods to run. Aug 26, 2024
@Vineet2530 Vineet2530 changed the title [Blocker] Kyverno admission controller blocking telegraf container restricting the pods to run. [Blocker] Kyverno admission controller blocking the telegraf container restricting the pods to run due to securityContext. Aug 26, 2024
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
@Vineet2530 and others