MacOSdockerkubernetes

Mac上用docker desktop启动安装k8s

2022-05-20  本文已影响0人  洪兴掌管一代

参考文章:

https://alphahinex.github.io/2020/11/08/run-k8s-in-mac-docker-desktop/

https://github.com/AliyunContainerService/k8s-for-docker-desktop

It takes more than one day to run k8s in docker desktop. Fortunately, it goes as expected. Now I will note down my experience. It come in handy for you.

I installed k8s in docker desktop of Mac more than one years ago successfully, through manually pulling images from Aliyun.

Recently, I need to use it again, so I upgrade docker desktop into the latest version. Then k8s failed to restart as expected. Because I need to upgrade the version of related images into the corresponding version simultaneously.  My version of k8s is 1.24.0 , so I checkout branch "v1.24.0" from 

https://github.com/AliyunContainerService/k8s-for-docker-desktop

And followed the guideline. But I failed after I restart k8s or even then followed the solution of 

https://alphahinex.github.io/2020/11/08/run-k8s-in-mac-docker-desktop/

There is no doubt that I have already tried update registry-mirrors and clean folder "pki". 

At last, I tried to rollback the version of docker desktop into "v20.10.8" and the corresponding version of k8s is "v1.21.3". Obviously, I also pull the branch "v1.21.3" and restart k8s.

Oh, my god. I succeed. What a precious day. I think there is something wrong with the latest version "1.24.0" currently.

We should not upgrade our application into the latest version easily.

上一篇下一篇

猜你喜欢

热点阅读