replicatedhq / kots

KOTS provides the framework, tools and integrations that enable the delivery and management of 3rd-party Kubernetes applications, a.k.a. Kubernetes Off-The-Shelf (KOTS) Software.
https://kots.io
Apache License 2.0
898 stars 88 forks source link

Add support for kots on arm64 #3360

Open camilamacedo86 opened 1 year ago

camilamacedo86 commented 1 year ago

Description

Currently, we are unable to use kots install and schedule the console on arch arm64. The kotsadm pod will not be scheduled:

https://github.com/replicatedhq/kots/blob/c597a4aebbf5caead94419b860c3d2311146d702/pkg/kotsadm/objects/affinity_objects.go#L10-L35

More info: https://github.com/replicatedhq/kots/issues/896

Motivation

cbodonnell commented 1 year ago

Thank you for opening this issue, @camilamacedo86. This is something that we hope to support in the future, and SC34569 is our internal tracker for this.

CharlesB2 commented 1 year ago

👍 on this one, currently I can't test KOTS locally on minikube, I'm forced to use a remote cluster

adejanovski commented 1 year ago

Hi folks, just got a macbook with an M2 chip and removing the arm64 affinity rule in the kots deployment allows it to be scheduled and as far as I can tell, it works without a problem after that.

Was the kots binary made arm64 compatible and it's now just a matter of removing that restriction in the deployment? Here are the changes I made to get it to work.

roderik commented 1 year ago

I request at least an option --ignore-arch or something so we can do it. It works and might not be compiled right, but with rosetta installed it works without an issue