Skip to content

feat: Add DaemonSet deployment mode support #21

@lexfrei

Description

@lexfrei

Description

Add optional DaemonSet deployment mode as an alternative to Deployment.

Why is this needed?

Running cloudflared as a DaemonSet (one pod per node) can help:

  • Avoid ephemeral port exhaustion when multiple pods run on the same node
  • Ensure consistent tunnel presence across all nodes
  • Follow Cloudflare's recommendation of limiting instances per node

Implementation details

  • Add daemonset.enabled flag in values.yaml (default: false)
  • Create conditional logic to deploy either Deployment or DaemonSet
  • Ensure all relevant settings work with both modes
  • Add corresponding tests

Reference

Acceptance Criteria

  • DaemonSet template created (or conditional deployment)
  • Values.yaml updated with daemonset options
  • Tests added for both modes
  • Documentation updated with use cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions