blake / external-mdns

A service to advertise records for Kubernetes resources on a LAN over multicast DNS.
Apache License 2.0
65 stars 9 forks source link

[Request] images for --platform linux/arm/v6 #15

Open Stelminator opened 11 months ago

Stelminator commented 11 months ago
  1. This works a treat. Thank you!
  2. I'm running it (primarily) on a Raspberry Pi 2, which is
    $ arch
    armv7l
  3. This required me to compile/upload for something that works on that architecture. docker buildx build --platform [snip],linux/arm/v6 worked. It was slow (I think ~5m for /v6 vs. like 80s for amd64), but it succeeded.
  4. I don't know why linux/arm/v7 takes at least twice as long as /v6. I couldn't even get it to complete. I'm not sure it matters as long as the /v6 option works for my Pi2.
  5. Related to those options, a pi3, which reports aarch64, also manages to pull an image (is there a good way to see which arch it pulled?).

Between external-mdns and metallb, I have quite an effective home-lab k8s local network setup without any special hardware.

LMK if I can help test.

blake commented 7 months ago

@Stelminator I don't mind adding support for linux/arm/v6 as long as you've confirmed it works. The cross-compilation changes you added in #16 make it much easier to build for an additional architecture. I'll build for linux/arm/v6 in the next release.

Stelminator commented 7 months ago

@blake

@Stelminator I don't mind adding support for linux/arm/v6 as long as you've confirmed it works. The cross-compilation changes you added in #16 make it much easier to build for an additional architecture. I'll build for linux/arm/v6 in the next release.

Thanks!

I'm sure that linux/arm/v6 satisfied my needs.

Raspberry Pi 2 and Pi 3 might be able to run linux/arm/v7, but I didn't push that to Docker Hub due to a stalled build. v6 was sufficient to make things work. I'm not set up to test this again right now. I had a test tag on Docker Hub when developing the cross-compilation, but I have since pruned it.

Screenshot 2024-03-09 155030

I'll circle back to give this a more comprehensive and up-to-date test when I have time.