kiam icon indicating copy to clipboard operation
kiam copied to clipboard

multi-architecture images (ARM64 support)

Open vgunapati opened this issue 4 years ago • 3 comments

Add arch support for arm64 to run on AWS graviton instances

Ref: https://github.com/uswitch/kiam/pull/466

vgunapati avatar Aug 04 '21 19:08 vgunapati

Add arch support for arm64 to run on AWS graviton instances

Interesting... is KIAM dependent on x86 architecture? Have you tried?

I thought the pod shouldn't care about the underlying architecture.

DiegoLelis avatar Aug 27 '21 23:08 DiegoLelis

Hey @DiegoLelis! Since kiam is mostly deployed as a daemonset, the container running on the arm nodes needs to have been built for arm. The multiarch docker build solves this issue since the docker daemon (or containerd etc) will automatically pull the correct image for the architecture

commixon avatar Oct 12 '21 12:10 commixon

Hi @DiegoLelis the container images need to be built specific to architecture. When a pod requests its image, it passes forward the architecture, allowing for seemless use of multi-architecture instances as long as the docker manifest provides a matching architecture specific image.

Otherwise, you'll end up with an error like this, because the image isn't binary compatible.

$ kl kiam-server-6d6659448-2csnd
exec /kiam: exec format error

mattalberts avatar Jan 25 '23 22:01 mattalberts