Any idea ?
# rke2
a
Any idea ?
n
just ip pool is not enough for metallb. you need to configure bgp or arp mode to announce the ip.
a
hooo ok thanks I will check now how to do it
BGP doesn't accept range like 192.168.1.140-192.168.1.150 only 192.168.1.0/24 or /32 ?
I cannot use arp because service kube-proxy doesn't exist
So i cannot change mode to "ipvs"
n
bgp accepts only cidrs. and you need to configure properly also the bgp peers
on both sides
a
it's seem very complicated for a neewbies like me 😅
n
I suppose you want 'float' ip for a loadbalancer. if you are in cloud, you may deploy cloud driver, that will provide required loadbalancer setup (for openstack, there is a driver). if you are not, you can use only arp without network admins help.
at least I believe so
a
Im on my lab behind worksation pro - vcenter- exsi
So seems not possible with rke2 to have arp mode because kube-proxy doesnt exist ?
n
why don't you have kube-proxy? in default setup, there should be
a
kubectl get svc -n kube-system
NAME                                      TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)         AGE
rke2-coredns-rke2-coredns                 ClusterIP   10.43.0.10     <none>        53/UDP,53/TCP   2d12h
rke2-ingress-nginx-controller-admission   ClusterIP   10.43.150.87   <none>        443/TCP         2d12h
rke2-metrics-server                       ClusterIP   10.43.50.232   <none>        443/TCP         2d12h
I used Rancher to provisionning my cluster
kubectl get nodes
NAME                             STATUS   ROLES                       AGE     VERSION
controlplane-pool1-dljcv-2g5kg   Ready    control-plane,etcd,master   2d12h   v1.32.7+rke2r1
controlplane-pool1-dljcv-4lwqn   Ready    control-plane,etcd,master   2d12h   v1.32.7+rke2r1
controlplane-pool1-dljcv-p5bgl   Ready    control-plane,etcd,master   2d12h   v1.32.7+rke2r1
controlplane-pool2-pcjms-f7xth   Ready    worker                      2d12h   v1.32.7+rke2r1
controlplane-pool2-pcjms-l55w6   Ready    worker                      2d12h   v1.32.7+rke2r1
I find solution following this tuto. I just copied and past my ip and it's work