Skip to content

[K8s] Auto-detect cluster architecture for runtime build (closes #1462)#1465

Merged
JosepSampe merged 1 commit intolithops-cloud:masterfrom
mskuratowski:feat/k8s-runtime-arch-detection
May 6, 2026
Merged

[K8s] Auto-detect cluster architecture for runtime build (closes #1462)#1465
JosepSampe merged 1 commit intolithops-cloud:masterfrom
mskuratowski:feat/k8s-runtime-arch-detection

Conversation

@mskuratowski
Copy link
Copy Markdown
Contributor

Closes #1462.

KubernetesBackend.build_runtime no longer hardcodes --platform=linux/amd64. The arch is resolved per build:

  1. runtime_arch from k8s config wins (allowed: amd64, arm64).
  2. Otherwise, query nodes via the kube API; if all share an arch, use it.
  3. Fall back to amd64 if the cluster is mixed-arch or the API query fails (logged as a warning).

I tested the solution on kind and rancher-desktop.

Developer's Certificate of Origin 1.1

   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

@JosepSampe
Copy link
Copy Markdown
Member

Great, thanks @mskuratowski !

@JosepSampe JosepSampe merged commit 8fcad99 into lithops-cloud:master May 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[K8s] Hardcoded --platform=linux/amd64 breaks arm64 clusters (Apple Silicon, Graviton)

2 participants