Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

How to add securityContext to telegraf sidecar container #148

@Vineet2530

Description

@Vineet2530

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions