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

Microk8s on armhf architecture #719

Closed
CalvinHartwell opened this issue Oct 13, 2019 · 15 comments
Closed

Microk8s on armhf architecture #719

CalvinHartwell opened this issue Oct 13, 2019 · 15 comments
Labels

Comments

@CalvinHartwell
Copy link

CalvinHartwell commented Oct 13, 2019

Hi all,

The armhf binary is missing and not available right now, which means that some users cannot install microk8s on Ubuntu. For example, if you use the armhf image for Raspberry Pi, you cannot install microk8s:

ubuntu@battlecruiser:~$ sudo snap install microk8s --classic
error: snap "microk8s" is not available on stable for this architecture (armhf)
but exists on other architectures (amd64, arm64, ppc64el).

It would be really good if we could also get the build compiled for this architecture and make officially available.

Cheers,

  • Calvin
@recklessop
Copy link

this is a duplicate issue of #228

@CalvinHartwell
Copy link
Author

@recklessop you're correct yes, my apologies. I have hardware available we could use to address the problem.

@iam-TJ
Copy link

iam-TJ commented Nov 26, 2019

Does the detail at:

https://microk8s.io/docs/install-alternatives#arm

"... This can be remedied on the Rasberry Pi by editing the boot parameters: ..."

imply that this is now solved?

@ktsakalozos
Copy link
Member

imply that this is now solved?

No the issue is not resolved. The instructions are for arm64 not for armhf. We currently do not build for this architecture. You can try to create a build yourself by git cloneing the repo and running snapcraft possibly in a remote build as described here https://forum.snapcraft.io/t/preview-snapcraft-remote-build/11541 Note that we have not tested this so any patches you can provide are welcomed.

@bragdonjm
Copy link

Running into this now myself.

@stevieray8450
Copy link

running into this is as well.

I've tried using snapcraft remote-build as well. I get this error:

Remote-build does not support the use of version-script.
Please use snapcraftctl set-version part scriptlet with adopt-info, or set version statically.

@erasmus74
Copy link

Also running into this, dietpi on RPI4 all recent builds as of this date

@ktsakalozos
Copy link
Member

@erasmus74 I am fairly certain RPi4 is on ARM64. Could you double check the OS you have installed?

@erasmus74
Copy link

You're correct, I was on armhf/32-bit, switching to 64bit worked like a charm

@forzagreen
Copy link

Same issue on Raspberry PI 3 B.
I ended up using k3s.

@angelnu
Copy link
Contributor

angelnu commented Dec 28, 2020

I also run in the same issue with some Odroids XU4 where I had previously used upstream k8s. I just did a PoC build directly in the device and it did work after I commented out the etcd snap part ot built. The issue with etcd is that they do not build for arm so it would need to be built from sources - doable but since etcd is not really needed not key for a PoC.

Now trying to run I see two issues:

  • scripts/wrappers/common/utils.py is missing a mapping for the armv7l arch so kubectl status fails. I will add and rebuild
  • the k8s api service is not running - missing libuv1 -> /snap/microk8s/x1/kube-apiserver: error while loading shared libraries: libuv.so.1: cannot open shared object file: No such file

Output from microk8s inspect:

root@n5:~/microk8s# microk8s inspect
Inspecting Certificates
Inspecting services
  Service snap.microk8s.daemon-cluster-agent is running
  Service snap.microk8s.daemon-containerd is running
 FAIL:  Service snap.microk8s.daemon-apiserver is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-apiserver
  Service snap.microk8s.daemon-apiserver-kicker is running
  Service snap.microk8s.daemon-control-plane-kicker is running
  Service snap.microk8s.daemon-proxy is running
  Service snap.microk8s.daemon-kubelet is running
  Service snap.microk8s.daemon-scheduler is running
  Service snap.microk8s.daemon-controller-manager is running
  Copy service arguments to the final report tarball
Inspecting AppArmor configuration

Will continue tomorrow.

@ktsakalozos - in case it makes sense to add to your pipeline and submit a PR - do you build on remote or do you have native arm HW?

angelnu pushed a commit to angelnu/microk8s that referenced this issue Jan 1, 2021
@angelnu
Copy link
Contributor

angelnu commented Jan 1, 2021

Added support for remote build and tested the build local and remote with v1.20.0 (btw: latest is currently broken -> patch does not apply).

Calico (needed for HA) is not available on armhf yet:

angelnu pushed a commit to angelnu/microk8s that referenced this issue Jan 25, 2021
angelnu pushed a commit to angelnu/microk8s that referenced this issue Feb 16, 2021
@ntindle
Copy link

ntindle commented Oct 30, 2021

Added support for remote build and tested the build local and remote with v1.20.0 (btw: latest is currently broken -> patch does not apply).

Calico (needed for HA) is not available on armhf yet:

I belive the two of these are now supported

@davidmco65
Copy link

Please help me out here... I see this issue has fixes committed but the issue is still open, so have they not been merged yet? The fixes were applied in February 2021 and it's now December, am I missing something? I'm getting this error on both RPi 3B+ and 4. Thanks!

@stale
Copy link

stale bot commented Nov 25, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Nov 25, 2022
@stale stale bot closed this as completed Dec 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests