Open smartheye opened 3 years ago
你好,这个问题最后怎么解决的呢?
找到对应的replication controller
kubectl get rc -n kube-system 编辑rc配置 kubectl edit rc -n kube-system registry 修改其中的image地址,将其改为registry:2.7.1 删除pod,等待自动重新创建
以上操作需要集群可以科学上网
TL;DR using the command line below:
kubectl patch -n kube-system rc registry -p '{"spec":{"template":{"spec":{"containers":[{"name":"registry","image": "registry.cn-hangzhou.aliyuncs.com/google_containers/registry:2.7.1"}]}}}}'
kubectl delete pod -n kube-system -l actual-registry=true
FYI, just a temporary fix, you can just edit the deploy and remove the digest after @sha256=
, i.e. using registry.cn-hangzhou.aliyuncs.com/google_containers/registry:2.7.1
directly.
Not sure why the mirrored image on AliCloud is mismatched with the official one
重现问题所需的命令: minikube addons enable registry
失败的命令的完整输出:
minikube logs
命令的输出:使用的操作系统版本: MacOS 11.6