Is it possible to activate AMD emulation on an M1 Mac when deploying to Kubernetes, as is for Docker?

212 Views Asked by At

As a Docker and Kubernetes newbie, and I'm trying to deploy a Deployment .yaml file to local Kubernetes (Docker Desktop) using kubectl apply

This .yaml file works well on any x86_64 computer (tested both on Linux and Intel chip Macs), but fails to work on my M1 Mac, so I tried troubleshooting the image by creating a container first, which works fine (but I noticed the AMD64 Emulation tag in the container name).

The image basically set up a Node server for some api calls. The pod fails at the point of starting the server, the AMD64 emulated container does not, which leads me to think that either there is no AMD64 emulation for Kubernetes yet or it's not activated or properly set.

I'm using Docker Desktop 4.22.0, with 'Use Virtualization framework' and 'Use Rosetta for x86/amd64 emulation on Apple Silicon' options on.

0

There are 0 best solutions below