canonical / charm-microk8s

Charm that deploys MicroK8s
Apache License 2.0
10 stars 16 forks source link

microk8s charm doesn't seem to support cross model relations #133

Open aym-frikha opened 8 months ago

aym-frikha commented 8 months ago

Summary

I want to deploy microk8s in different juju model where in the first model I deployed the microk8s with role "control-plane" and the other model with the role "worker". When I did it manually I was able to create the microk8s cluster. But through the charm, it didn't work I have the charm with worker role in waiting state.

What Should Happen Instead?

The microk8s charm with worker role should be active idle and the microk8s cluster created.

Reproduction Steps

  1. create a model for the microk8s control plane machine
  2. create a model for microk8s worker machine
  3. expose control plane interface from the first model (juju offer)
  4. consume the control-plane interface from the worker model

Environment

deployed the environment in two different openstack projects

MicroK8s charm track: 1.28/stable Juju version: 3.3.1 Cloud: OpenStack

Additional info, logs

I needed to add a security group rule in the control plane model tenant for port 25000 for the manual steps to work correctly. But the charm is still in waiting state.

Can you suggest a fix?

no

Are you interested in contributing with a fix?

no

neoaggelos commented 8 months ago

Hi @aym-frikha

You need at least the following ports to be open between the two networks:

aym-frikha commented 8 months ago

Thank you very much @neoaggelos , I will test that.