camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

kamel install pulls image for incorrect architecture

Open tdiesler opened this issue 6 months ago • 3 comments

On MacOS (M2) ...

> minikube start --addons registry
> kamel install --olm=false
Camel K installed in namespace default 

> CAMEL_K_POD=$(kubectl get pods --selector='name=camel-k-operator' --output=jsonpath='{.items[*].metadata.name}')
> kubectl logs $CAMEL_K_POD
exec /usr/local/bin/kamel: exec format error

This happens with 2.2.0 and the latest 2.3.0-nightly

tdiesler avatar Feb 20 '24 12:02 tdiesler

If this is an arm64 architecture processor you should follow the installation documentation. The Kamel CLI defaults to x86 image so you need to set the arm64 operator image explicitly, and the integration base image as well.

gansheer avatar Feb 20 '24 13:02 gansheer

merci, that worked

tdiesler avatar Feb 20 '24 14:02 tdiesler

Do we already have an issue about improving the getting started experience on ARM64?

Currently I do ...

> minikube start --addons registry

> CAMEL_K_VERSION=2.2.0
> kamel install --olm=false --operator-image apache/camel-k:${CAMEL_K_VERSION}-arm64 --base-image eclipse-temurin:17-jdk@sha256:a90cec83bb9b9ab19a63e377b20c3aa4e076b16c52d36e83c62c451b6d034e22

> kubectl logs -l camel.apache.org/component=operator --tail=400 -f

> kamel run helloworld.groovy
> kubectl logs -l camel.apache.org/integration=helloworld --tail=10 -f

tdiesler avatar Feb 20 '24 14:02 tdiesler

PR: https://github.com/apache/camel-k/pull/5200

$ go run ./cmd/kamel install                                                                                                            
OLM is not available in the cluster. Fallback to regular installation.
Using arch specific operator image: docker.io/apache/camel-k:2.3.0-SNAPSHOT-arm64
Using arch specific base image: eclipse-temurin:17@sha256:a90cec83bb9b9ab19a63e377b20c3aa4e076b16c52d36e83c62c451b6d034e22
Camel K installed in namespace default 

tdiesler avatar Feb 28 '24 14:02 tdiesler

As mentioned in the PR, we should publish manifests accordingly to solve this issue: https://github.com/apache/camel-k/pull/5200#pullrequestreview-1906815706

squakez avatar Feb 28 '24 17:02 squakez

Is a dependency of https://github.com/apache/camel-k/issues/5238

tdiesler avatar Mar 13 '24 06:03 tdiesler

Done

tdiesler avatar Mar 18 '24 09:03 tdiesler