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

helm not support arm64? #2786

Closed
noahge opened this issue Sep 17, 2022 · 12 comments
Closed

helm not support arm64? #2786

noahge opened this issue Sep 17, 2022 · 12 comments

Comments

@noahge
Copy link

noahge commented Sep 17, 2022

No description provided.

@cindymullins-dw
Copy link
Collaborator

HI @noahge, client-side binaries for the arm64 architecture are now available for linux (https://www.getambassador.io/docs/telepresence/2.7/install/?os=macos). The Telepresence Helm chart is only for the Traffic Manager and the chart does not include ARM at this time. Would you like us to leave this open as a Feature Request?

@noahge
Copy link
Author

noahge commented Oct 3, 2022

Hi @cindymullins-dw,my laptop CPU is m1 max, I want build a development environment on my laptop, But my kubernetes cluster only support arm64 images,So i need Traffic Manager Arm64 Version.

@maslow
Copy link

maslow commented Feb 15, 2023

Anything new about this?
Or provide a way to build an ARM64 version image of Traffic Manager?

@Pentusha
Copy link

I build image for myself. I'm using it that way:

telepresence helm install --set image.name=telepresence-ubuntu-multiarch --set image.registry=docker.io/pentusha --image.tag=v2.10.4

You may build similar or make PR in this repo.

Dockerfile

# syntax = docker/dockerfile:1.3

# Copyright 2020-2022 Datawire. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.18 as tel2-build

RUN apt-get update && apt-get install -y \
    gcc \
    libcap-dev \
    libfuse-dev \
    libcap2-bin

WORKDIR telepresence
COPY go.mod go.sum .
COPY cmd/ cmd/
COPY pkg/ pkg/
COPY rpc/ rpc/
COPY charts/ charts/
COPY build-output/version.txt .

RUN \
    --mount=type=cache,target=/root/.cache/go-build \
    --mount=type=cache,target=/go/pkg/mod \
    go build -o /usr/local/bin/ -trimpath -ldflags=-X=$(go list ./pkg/version).Version=$(cat version.txt) ./cmd/traffic/...

# setcap is necessary because the process will listen to privileged ports
RUN setcap 'cap_net_bind_service+ep' /usr/local/bin/traffic

# The tel2 target is the one that gets published. It aims to be a small as possible.
FROM ubuntu:22.04 as tel2

RUN apt-get update && apt-get install -y \
    ca-certificates \
    iptables

# the traffic binary
COPY --from=tel2-build /usr/local/bin/traffic /usr/local/bin

RUN \
  mkdir /tel_app_mounts && \
  chgrp -R 0 /tel_app_mounts && \
  chmod -R g=u /tel_app_mounts && \
  mkdir -p /home/telepresence && \
  chgrp -R 0 /home/telepresence && \
  chmod -R g=u /home/telepresence && \
  chmod 0777 /home/telepresence

ENTRYPOINT ["traffic"]
CMD []

Makefile:

.PHONY: image
image: build-deps
	mkdir -p $(BUILDDIR)
	printf $(TELEPRESENCE_VERSION) > $(BUILDDIR)/version.txt ## Pass version in a file instead of a --build-arg to maximize cache usage
	docker buildx create --use \
	    && docker buildx build \
	        --target tel2 \
	        --tag $(TELEPRESENCE_REGISTRY)/telepresence-ubuntu-multiarch:$(patsubst v%,%,$(TELEPRESENCE_VERSION)) \
	        --platform linux/amd64,linux/arm64 \
	        --file base-image/Dockerfile \
	        --push \
	        .

@maslow
Copy link

maslow commented Feb 15, 2023

I build image for myself. I'm using it that way:

telepresence helm install --set image.name=telepresence-ubuntu-multiarch --set image.registry=docker.io/pentusha --image.tag=v2.10.4

Respect!

@maslow
Copy link

maslow commented Feb 15, 2023

Make a correction:

telepresence helm install --set image.name=pentusha/telepresence-ubuntu-multiarch --set image.registry=docker.io --set image.tag=2.10.4

@maslow
Copy link

maslow commented Feb 16, 2023

@Pentusha Hi, do you have the docker.io/datawire/ambassador-telepresence-agent:1.13.8 arm64 version image.
telepresence intercept can not work without this agent arm64 image.

@thallgren
Copy link
Member

We're including arm64 support in our next minor release of Telepresence. It should arrive sometime next week if things go according to plan.

@maslow
Copy link

maslow commented Feb 16, 2023

Looking forward to it!

@maslow
Copy link

maslow commented Feb 24, 2023

Hi @thallgren,
I've seen traffic-manager arm version image already available.
But datawire/ambassador-telepresence-agent still amd64 only.
Any plans about the this?

@thallgren
Copy link
Member

Oh. It has been fixed too but I think we just forgot to push it. I'll take care of that. Thanks for reporting it.

@thallgren
Copy link
Member

The new 1.13.9 version that I just pushed has support for arm64, which means that all cluster components now have that.

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

No branches or pull requests

5 participants