Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Hangs With metallb Enabled and No Args #35

Open
jamey opened this issue Oct 17, 2022 · 2 comments
Open

Install Hangs With metallb Enabled and No Args #35

jamey opened this issue Oct 17, 2022 · 2 comments

Comments

@jamey
Copy link

jamey commented Oct 17, 2022

If installing the metallb plugin by setting it to "true", the install process hangs there and there is no diagnostic output.

The only way I found the issue is by changing tasks/addons.yml

cmd: microk8s.enable {{ item.name }}{% if microk8s_plugins[item.name] != True %}:{{ microk8s_plugins[item.name] }}{% endif %}

To...

cmd: microk8s.enable {{ item.name }} && exit{% if microk8s_plugins[item.name] != True %}:{{ microk8s_plugins[item.name] }}{% endif %}

The main issue is in defaults/main.yml, the metallb line looks like...

metallb: false

So I just set to to "true". It probably should look something like the dns addon line to make plain that arguments are required.

@fabricesemti80
Copy link

I have encountered with this one too. I suspect it is waiting for the IP ranges.

image

Can the option to define these be added to the defaults...?

@buti1021
Copy link

buti1021 commented May 8, 2024

Metallb can be used by providing an ip range as string instead of true

e.g.:

    - role: 'istvano.microk8s'
      vars:
        microk8s_plugins:
           metallb: "xxx.xxx.x.x-xxx.xxx.x.x"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants