GoogleCloudPlatform / anthos-service-mesh-packages

Packaged configuration for setting up a Kubernetes cluster with Anthos Service Mesh features enabled
https://cloud.google.com/anthos/service-mesh
Apache License 2.0
134 stars 171 forks source link

not able to install asm for arm64 #881

Open RohitAudit opened 3 years ago

RohitAudit commented 3 years ago

I was trying to install anthos service mess but am unable to run the script install_asm. It gives following error:

install_asm: [ERROR]: Installation is only supported on x86_64

Is there a different installation script for Apple with M1 silicon chip??

zerobfd commented 3 years ago

Thanks for reporting!

A note up front: install_asm isn't officially supported with macOS because we lack a way to automatically test all of the combinations of shell/arch/coreutils that OSX has supported over time. That being said, we do try to maintain compatibility and add fixes when there are customer reports.

I'm looking internally into our build processes to see if there has been support added yet for osx-arm64, and I'll update when I find out.

ay-b commented 2 years ago

@zerobfd Hey, did you get any success with that? I just hit the same problem.

zerobfd commented 2 years ago

Not yet :( There's an internal task that's open to start supporting this, I just checked it and it either hasn't been prioritized yet or somehow fell into some unreachable state. I re-raised it with the team to make sure it was still visible.

ay-b commented 2 years ago

Kinda awkward that no one in the maintenance/development teams hit that problem yet. M1 chips are quite widespread already.

Anyway, thanks for the heads up.

suvl commented 2 years ago

One year later, how is this still a thing?

For anyone in this situation, let me give you the Dockerfile I use just to be able to have a functioning asmcli binary. I build this with podman using a vm emulating x64 via qemu.

FROM ubuntu

RUN apt-get update && \
    apt-get full-upgrade --auto-remove --purge -y && \
    apt-get install -y curl jq apt-transport-https ca-certificates gnupg git netcat && \
    echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
    curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \
    apt-get update && \
    apt-get install google-cloud-cli kubectl && \
    curl https://storage.googleapis.com/csm-artifacts/asm/asmcli_1.12 > /code/asmcli && chmod a+x /code/asmcli

WORKDIR /code

Adapt the asmcli version as you need.

pre2500 commented 2 years ago

Trying to check if there is an update on this.

ghunkins commented 2 years ago

Does not appear to be fixed. For GKE, the only workaround that I've found is to use Cloud Shell.