Is Multi-architecture kubernetes possible in colima? #1501
Replies: 1 comment
|
Multi-architecture Kubernetes in Colima isn't directly supported in a single instance. Colima starts a single VM with one architecture, and the k8s cluster runs inside that VM. With your command using
So in a sense, you can already run multi-arch images — the scheduler will pull whatever arch the image is available for, and x86 images will run via Rosetta. What you can't do is run actual x86 nodes alongside ARM nodes in the same cluster (like you would in a real multi-arch cluster). For that, you'd need something like running two separate VMs and joining them as nodes, which Colima doesn't support. For local development and testing multi-arch workloads, the single ARM VM with Rosetta approach should work fine for most cases. |
Uh oh!
There was an error while loading. Please reload this page.
I start
colimalike this:colima start --cpu 4 --memory 16 --arch aarch64 --vm-type=vz --vz-rosetta --network-address --kubernetesNow I can run both
linux/arm64andlinux/amd64architecture docker containers:I am trying to achieve the same with the kubernetes cluster provisioned inside colima by using the
--kubernetesswitch.However it seems that the architecture of the k8s cluster is set to be
linux/arm64And now pods that reference images that have `arm64 builds work, but the ones that only have amd64 fail during image pull:
What options do I have to run a mix of
amd64andarm64pods in the cluster provisioned in colima?is there anything like docker's
--platformin k8s to force particular platform for a pod?can the same k8s node handle multiple architectures?
if not is it possible to provision the kubernetes cluster with two nodes each handling different achitecture and then let the control plane to handle scheduling on appropriate node? How would I go about that.
All reactions