Skip to content

Netbird operator does not work when cilium+kubeproxy replacement is active #215

Description

@bornav

When installing netbird operator on a cluster that does not have default kube scheduler, netbird operator deploys routers and resources to the netbird-api plane successfuly, assigns network and matches the resource to the domain, but after manually adding the policy when trying to access the resource it fails with error ERR_CONNECTION_TIMED_OUT

for testing i tried it on a selhosted instance and the publicly available one, both result in same behavior

i can easily reproduce this by deploying it in a kind cluster, i provided 3 scripts for deploying it normally with default cni, with cilium without kube proxy replacement, and cilium with kube proxy replacement

in this repo https://github.com/bornav/cluster-playground/tree/main/netbird-operator you can find 3 deploy scripts

deploy.sh (cilium cni, with kube proxy replaced) # broken
deploy-normal.sh (normal cni) # working
deploy-cilium-w-proxy.sh (cilium cni, with default kube proxy) # working

just running the script locally should give a reproduced example, assuming netbird/secret.yaml is populated

cleanup would be just a matter of running cleanup.sh

i dont see any errors on operator/networkrouters that would be related to this

policy that is manually created

Image

resource assigned but not actually accessible

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions