cozystack/packages/apps
mattia-eleuteri 026b1c7811
[virtual-machine] Exclude external VM services from Cilium BPF LB
Add service.kubernetes.io/service-proxy-name label to LoadBalancer
services when external: true. This prevents Cilium from adding the
service to its BPF service map, fixing two issues:

1. Inter-tenant connectivity via public LB IPs: Cilium's kube-proxy
   replacement DNATs traffic to LB IPs before policy evaluation,
   causing the CiliumClusterwideNetworkPolicy to block legitimate
   cross-tenant traffic through public IPs.

2. WholeIP broken on Cilium 1.19+ (#2327): wildcard service drop
   entries block all ports not declared in the Service spec before
   traffic reaches cozy-proxy's nftables rules.

With this label, Cilium completely ignores the Service. Routing is
handled by kube-ovn (via the wholeIP annotation) and MetalLB
continues to advertise the IP via L2 unaffected.

Tested on Cilium 1.18.6 and 1.19.1: inter-tenant via LB IP works,
pod IP isolation preserved, external access unaffected.

Signed-off-by: mattia-eleuteri <mattia@hidora.io>
2026-04-08 15:20:58 +02:00
..
bucket [docs] Updated app go types 2026-03-25 15:57:25 +05:00
clickhouse [docs] Updated app go types 2026-03-25 15:57:25 +05:00
foundationdb [docs] Updated app go types 2026-03-25 15:57:25 +05:00
harbor [docs] Updated app go types 2026-03-25 15:57:25 +05:00
http-cache Prepare release v1.2.0 2026-03-27 14:00:46 +00:00
kafka [docs] Updated app go types 2026-03-25 15:57:25 +05:00
kubernetes fix(kubernetes): set explicit ephemeral-storage on virt-launcher pods 2026-03-31 12:48:07 +02:00
mariadb fix(mariadb): use primary service for backups with single replica 2026-03-27 11:47:32 +05:00
mongodb [docs] Updated app go types 2026-03-25 15:57:25 +05:00
nats [docs] Updated app go types 2026-03-25 15:57:25 +05:00
openbao [docs] Updated app go types 2026-03-25 15:57:25 +05:00
opensearch [docs] Fixed controller-gen markers 2026-03-25 15:57:25 +05:00
postgres [postgres] Fix database deletion lifecycle management (#2247) 2026-03-27 17:49:15 +05:00
qdrant [docs] Updated app go types 2026-03-25 15:57:25 +05:00
rabbitmq [docs] Updated app go types 2026-03-25 15:57:25 +05:00
redis [docs] Updated app go types 2026-03-25 15:57:25 +05:00
tcp-balancer [docs] Updated app go types 2026-03-25 15:57:25 +05:00
tenant [docs] Updated app go types 2026-03-25 15:57:25 +05:00
vm-disk [docs] Updated app go types 2026-03-25 15:57:25 +05:00
vm-instance [virtual-machine] Exclude external VM services from Cilium BPF LB 2026-04-08 15:20:58 +02:00
vpc [docs] Update cozyvalues-gen 2026-03-25 15:59:22 +05:00
vpn [docs] Updated app go types 2026-03-25 15:57:25 +05:00
Makefile refactor: move scripts to hack directory 2026-01-15 16:06:56 +01:00
README.md [clickhouse] add clickhouse keeper 2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd