Giter Club home page Giter Club logo

Comments (4)

ahmetb avatar ahmetb commented on July 19, 2024

This seems to be the issue kubernetes-sigs/kind#2549 but I am not sure what the resolution is.

from admiralty.

adrienjt avatar adrienjt commented on July 19, 2024

Hi @ahmetb, I see that you submitted another issue after this one, #149, where you have gone farther in the quick start guide. Were you able to figure out what the problem is here?

Unfortunately, I don't have an M1 available. We do build multi-arch images that are known to work, though aren't systematically tested... Which version of kind are you running? The latest version seems to address some multi-arch issues (not necessarily related):

NOTE: these node images support amd64 and arm64 now.
[...]
Fix kind load docker-image if all images are already present
https://github.com/kubernetes-sigs/kind/releases/tag/v0.12.0

from admiralty.

hermanbanken avatar hermanbanken commented on July 19, 2024

I'm seeing the same problem.

  • If I just run a regular nginx image from docker hub it works.
  • If I use the local registry route (using --platform=linux/arm64 images), it also works.

But kind load docker-image:

GOOS=linux GOARCH=arm64 go build -o bin/server example/server
docker build --platform=linux/arm64 -t demo-server-arm64 -f Dockerfile
kind --name=demo load docker-image demo-server-arm64
kubectl create deployment demo-server-arm64 --image demo-server-arm64 --replicas=1
# fails with:
# Failed to pull image "demo-server-arm64": rpc error: code = Unknown desc = failed to pull and unpack
# image "docker.io/library/demo-server-arm64:latest": failed to resolve reference 
# "docker.io/library/demo-server-arm64:latest": pull access denied, repository does not exist 
# or may require authorization: server message: insufficient_scope: authorization failed
GOOS=linux GOARCH=amd64 go build -o bin/server example/server
docker build --platform=linux/amd64 -t demo-server-amd64 -f Dockerfile
kind --name=demo load docker-image demo-server-amd64
# fails with:
# ERROR: failed to load image: command "docker exec --privileged -i demo-control-plane ctr --namespace=k8s.io images import --snapshotter overlayfs -" failed with error: exit status 1
# Command Output: ctr: image might be filtered out

(N.B. Dockerfile is just 1 binary COPY based on scratch)

I have the feeling that somewhere down the line, Kubernetes might be trying to load amd64 images... The fact that NGINX works, can this be because it is a multi-architecture image?

from admiralty.

adrienjt avatar adrienjt commented on July 19, 2024

Tested the v0.16 quickstart with an M1. It works. Probably an issue that was fixed with a recent version kind.

from admiralty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.