-
Notifications
You must be signed in to change notification settings - Fork 16
Description
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.