我正在使用 Apple M1,编写 Kubernetes YAML 文件来拉取和部署映像,confluentinc/cp-zookeeper:6.2.4问题是,由于 CPU 架构的差异,我无法拉取映像
Failed to pull image "confluentinc/cp-zookeeper:6.2.4": rpc error: code = Unknown desc = no matching manifest for linux/arm64/v8 in the manifest list entries
Run Code Online (Sandbox Code Playgroud)
使用 docker-compose 时,我只需指定标签即可platform: linux/x86_64,一切正常,但我不确定如何为 K8S 执行此操作,我也尝试设置环境变量,DOCKER_DEFAULT_PLATFORM但它也不起作用。
我正在使用 Kubernetes 内置的 Docker-Desktop