Skip to content

NetworkPolicy template in helm chart #8060

@GabboPenna

Description

@GabboPenna

Is your feature request related to a problem? Please describe.
Helm chart doesn’t include a built‑in NetworkPolicy template. Without it, teams have to write and maintain custom policies by hand, which can lead to misconfigurations and inconsistent security posture across environments.

Describe the solution you'd like
Add an optional NetworkPolicy template under charts/nginx-ingress/templates/ that can be enabled via values (e.g. networkPolicy.enabled: true). The template should allow users to configure:

  • policyTypes (Ingress, Egress)
  • podSelector to target only controller pods
  • Customizable ingress and egress rules (ports, CIDR blocks, namespaceSelectors, etc.)

Describe alternatives you've considered

  • Maintaining a separate, custom NetworkPolicy manifest outside of the Helm chart
  • Patching the chart post‑install via helm post‑render
  • Using an external policy generator tool (e.g. Kyverno policies), but those still require manual setup and add operational complexity

Additional context
This request is tracked in PR #8052 (“feat: add NetworkPolicy template”)

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalAn issue that proposes a feature requestready for refinementAn issue that was triaged and it is ready to be refined

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions