calico - support ebpf in AKS

Calico support ebpf in AKS. Tried that with version kubernetes 1.30. The default installation uses iptables dataplane but you can easily convert that into ebpf using the followings command:- 


kubectl patch installation.operator.tigera.io default --type merge -p '{"spec":{"calicoNetwork":{"linuxDataplane":"BPF"}}}'

Then watch for the calico operator by running 

watch kubectl get pods -n calico-system

It is important to look for restarts. 


Having kube-proxy at this stage can waste resources, therefor it can be removed

kubectl patch ds -n kube-system kube-proxy -p '{"spec":{"template":{"spec":{"nodeSelector":{"non-calico": "true"}}}}}' 

To revert back to IpTable please run the following command:-

kubectl patch installation.operator.tigera.io default --type merge -p '{"spec":{"calicoNetwork":{"linuxDataplane":"Iptables"}}}'

To revert kube-proxy change, you can edit the daemonset and remove the selector defined above.







Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm