codihuston / kind-with-registry

A set of scripts for deploying a KinD with an image registry (Kubernetes-in-Docker)
0 stars 0 forks source link

Support M2 (arm64) #1

Open codihuston opened 1 year ago

codihuston commented 1 year ago

Currently, all scripts are pointing to a hard-coded digest for the amd64 image. With the advent of MacOS M1 and M2, we can likely fall back to just specifying the tagged images which now include both archs, see: https://hub.docker.com/r/kindest/node/tags

Though, it does seem like we cannot run KinD with amd64 natively on the arm64 architecture...

https://github.com/kubernetes-sigs/kind/issues/2972 https://github.com/kubernetes-sigs/kind/issues/2718

BenTheElder commented 4 months ago

You can use a digest for the multi-arch manifest and support both architectures while maintaining the security / reproducibility of pinning.

The digests in the kind release notes are multi-arch.

BenTheElder commented 4 months ago

Though, it does seem like we cannot run KinD with amd64 natively on the arm64 architecture...

Correct, at least not without a VM, the way docker does cross-architecture containers is only suitable for simple applications, it cannot really do anything complex interacting with the kernel because it doesn't emulate syscalls, only userspace.

codihuston commented 4 months ago

You can use a digest for the multi-arch manifest and support both architectures while maintaining the security / reproducibility of pinning.

The digests in the kind release notes are multi-arch.

Very cool, thank you =)