Skip to content

Netbird running as a sidecar container #65

@cantorek

Description

@cantorek

Hello,

We try to leverage netbird in our deployments, however we've encountered a number of issues with different workloads types.

While netbird runs fine along regular deployments, it's a different story with jobs and init containers.

Our workloads require VPN on every step, init, job, cleanup, etc, hence we'd like to leverage netbird in cronjobs, initContainers, deployments, etc.

While we can configure cronJobs (or jobs) to run with netbird using netbird operator, jobs will hang, as when main container has finished, netbird container will keep running.

Situation is even more challenging with initContainer, as there is simply no way to provide netbird vpn at this stage.

Perhaps netbird operator should leverage sidecar containers - https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#jobs-with-sidecar-containers - for workloads?

This would unblock the job cleanup and allow for vpn in initContainer phase.

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