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

How to add securityContext to telegraf sidecar container #148

Open
Vineet2530 opened this issue Aug 29, 2024 · 0 comments
Open

How to add securityContext to telegraf sidecar container #148

Vineet2530 opened this issue Aug 29, 2024 · 0 comments

Comments

@Vineet2530
Copy link

Describe the issue here.
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.

Is there any way (like annotations or something) to apply securityContext to telegraf sidecar container?

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

telegraf version: 1.3

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