Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 support #335

Open
hongbo-miao opened this issue Mar 21, 2023 · 4 comments
Open

arm64 support #335

hongbo-miao opened this issue Mar 21, 2023 · 4 comments
Labels

Comments

@hongbo-miao
Copy link

hongbo-miao commented Mar 21, 2023

Affected version

23.1.0

Current and expected behavior

I am trying to follow this guide to install HDFS.

I succeed installing operators by:

helm repo add stackable-stable https://repo.stackable.tech/repository/helm-stable/
helm install --wait zookeeper-operator stackable-stable/zookeeper-operator --version 23.1.0
helm install --wait hdfs-operator stackable-stable/hdfs-operator --version 23.1.0
helm install --wait commons-operator stackable-stable/commons-operator --version 23.1.0
helm install --wait secret-operator stackable-stable/secret-operator --version 23.1.0

Then when I try to install ZooKeeper cluster by:

kubectl apply -f zk.yaml
---
apiVersion: zookeeper.stackable.tech/v1alpha1
kind: ZookeeperCluster
metadata:
  name: simple-zk
spec:
  image:
    productVersion: 3.8.0
    stackableVersion: 23.1.0
  servers:
    roleGroups:
      default:
        replicas: 1

I got error:

Failed to pull image "docker.stackable.tech/stackable/zookeeper:3.8.0-stackable23.1.0": rpc error: code = NotFound desc = failed to pull and unpack image "docker.stackable.tech/stackable/zookeeper:3.8.0-stackable23.1.0": no match for platform in manifest: not found

Any idea, thanks! 😃

It seems docker.stackable.tech/stackable/zookeeper:3.8.0-stackable23.1.0 does not exist.

Environment

➜ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.25.2
Kustomize Version: v4.5.7
Server Version: v1.26.1+k3s1
@maltesander
Copy link
Member

Hey,

what platform are you running on (try running e.g. "lscpu")?
We currently only support x86_64 images and have experimental support for ARM in some images.

The image docker.stackable.tech/stackable/zookeeper:3.8.0-stackable23.1.0 exists https://repo.stackable.tech/#browse/browse:docker:v2%2Fstackable%2Fzookeeper%2Ftags%2F3.8.0-stackable23.1.0 but i think you "want" to select a platform that is not supported.

@hongbo-miao
Copy link
Author

hongbo-miao commented Mar 22, 2023

Hi @maltesander oh yeah I am running on macOS with M1 CPU.

Luckily, all docket images I have used so far support arm64. Or maybe this is a trend as there are more and more arm64 devices (?)

Is it possible to support arm64? Thanks a lot! 😃

If using GitHub action, simply need https://github.com/docker/setup-qemu-action

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v2
        with:
          platforms: amd64,arm64

@vsupalov
Copy link
Contributor

vsupalov commented Mar 22, 2023

Hey @hongbo-miao! Completely agree with you - ARM is taking off. It would be a great dev experience to have it run on an ARM macOS.

Unfortunately, we are not supporting it right now. Mostly due to other priorities taking up most of our attention.

I wouldn't recommend using the platform or running on your ARM machine directly. It may look like QEMU works, but you will have a bad time with very weird crashes instead.

If you can get access to an AMD machine with enough resources, spinning up a temporary remote k8s cluster is the way to go. You can use something like kind - everything will work as expected, and you'll be able to get a good impression of the demos and how the platform works. Sorry for the inconvenience!

@hongbo-miao hongbo-miao changed the title Not found docker.stackable.tech/stackable/zookeeper:3.8.0-stackable23.1.0 arm64 support Mar 22, 2023
@hongbo-miao
Copy link
Author

hongbo-miao commented Mar 22, 2023

Thanks @vsupalov !

FWIW, regarding ARM machine, so far, I had quite good experience. All Docker images in this chart work well in my MacBook Pro with M1 CPU.
Regarding QEMU, I had quite good experience myself too, all images I published work well on my MacBook Pro with M1 CPU too.

It would be great to support in future so that we can test more easily!
I updated the title to more like a "feature request" title. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants