Closed LucaFulchir closed 2 years ago
I was running into this same issue a while back and put up a PR for this: https://github.com/NixOS/nixpkgs/pull/116409/files (merged)
Can you try it out and see if it resolves this issue?
I marked this as stale due to inactivity. → More info
@LucaFulchir Can you confirm if issue is solved?
Not anymore, sorry.
I gave up after a bit more tinkering and other problems, plus kubernetes had a bigger overhead than I liked, so I moved to managing rootles podman with a nix config.
Meaning that my raspi4 is in "production" now so I can not test it much.
But jali-clarke is right, that other merge should have fixed this problem, so I'll close this.
Sorry for forgetting about this.
@LucaFulchir I'm using K3s for Kubernetes Cluster in NixOS on a cluster of 8 Raspberry Pi, it is working great. Works on a single node as well.
Describe the bug Trying to run a test cluster on a raspberrypi4
coredns does not start since the nixpkgs hardcodes a amd64 image
To Reproduce Steps to reproduce the behavior:
MemoryMaxSwap=0
? have not tried yet)boot.kernelParams
"cgroup_enable=memory" "swapaccount=1" "hugepagesz=2M" "hugepages=512"
environtment.systemPackages
some additional dependencies for debugging and support kubernetes addons:virtualisation.podman.enable
(docker.enable works), it's not compatible,nixos-rebuild
will fail in linking files foretc/cni/net.d/...
etcd
does not really support ARM, so we need to add:kubectl get nodes -A
, if everything went fine the node should beReady
. If it isn't, reboot. Somehow kubernetes starts properly only on system boot, otherwise the container network is not set up.Ready
, check the coredns container logs:kubectl logs --namespace=kube-system -l k8s-app=kube-dns --timestamps -f
The status should be:
standard_init_linux.go:228: exec user process caused: exec format error
. This usually means "wrong architecture for this container"services.kubernetes.addons.dns.coredns
the image SHA is hardcoded, not dependent on architectureExpected behavior
Kubernetes services start correctly
Fix found
tell nixos to force a different coredns image (note: do not upgrade to 1.8.X, won't work):
...can we integrate some of this (at lest an arch-dependent coredns) in nixpkg? I would keep the manual
ETC_UNSUPPORTED
, but it should be better documented in the wiki, tooNotify maintainers
uhm... I can't find references to any maintainers