squat / kilo

Kilo is a multi-cloud network overlay built on WireGuard and designed for Kubernetes (k8s + wg = kg)
https://kilo.squat.ai
Apache License 2.0
2.01k stars 120 forks source link

Cannot use node.spec.podCIDR #382

Open dnugmanov opened 3 months ago

dnugmanov commented 3 months ago

Issue: Kilo currently relies on node.spec.podCIDR for subnet announcement. However, when Cilium is in cluster-mode, it doesn't respect node.spec.podCIDR and doesn't populates subnet from CiliumNode to Node. This behavior leads to inconsistencies in subnet allocation.

Suggestion: I propose introducing the annotation kilo.squat.ai/force-subnet as a means to enforce subnet allocation. This annotation would allow users to specify the desired subnet directly, ensuring consistency between Kilo and your environment.

Expected Benefits:

dnugmanov commented 3 months ago

@squat Hi, please take a look, i am ready to bring small PR with following implementation if you don't mind the idea with new annotation.