canonical / microk8s-community-addons

The add-ons shipped with MicroK8s
Apache License 2.0
65 stars 69 forks source link

portainer + kube-ovn result in portainer not being able to connect to the local cluster #229

Open killua-eu opened 4 months ago

killua-eu commented 4 months ago

Latest microk8s installed on 3 physical nodes on ubuntu 24.04 as follows:

On all nodes:

sudo snap install microk8s --classic --channel=1.30
sudo usermod -a -G microk8s $USER
mkdir -p ~/.kube
chmod 0700 ~/.kube
su - $USER
alias kubectl='microk8s kubectl'
sudo snap alias microk8s.kubectl kubectl

#sudo microk8s enable kube-ovn                   # uncomment this to make portainer unusable
#microk8s enable kube-ovn --force                # uncomment this to make portainer unusable

sudo microk8s enable dns
sudo microk8s enable ingress
sudo microk8s enable hostpath-storage
sudo microk8s enable rbac
sudo microk8s enable community
sudo microk8s enable nfs

On main:

microk8s add-node
sudo microk8s enable portainer

Using calico, portainer will connect to this env

image

with ovn, I wasn't able to get portainer to work. The problem should be replicable, tried to completely uninstall and reinstall microk8s on all nodes.