问题描述
mac docker自带了k8s,启动一直卡在starting, 重启也没用
这里我用的k8s是1.16.5的版本
解决
$ git clone https://github.com/hummerstudio/k8s-docker-desktop-for-mac.git 看下是否符合当前的版本
cat image_list
k8s.gcr.io/kube-proxy:v1.16.5=gotok8s/kube-proxy:v1.16.5
k8s.gcr.io/kube-controller-manager:v1.16.5=gotok8s/kube-controller-manager:v1.16.5
k8s.gcr.io/kube-scheduler:v1.16.5=gotok8s/kube-scheduler:v1.16.5
k8s.gcr.io/kube-apiserver:v1.16.5=gotok8s/kube-apiserver:v1.16.5
k8s.gcr.io/coredns:1.6.2=gotok8s/coredns:1.6.2
k8s.gcr.io/pause:3.1=gotok8s/pause:3.1
k8s.gcr.io/etcd:3.3.15-0=gotok8s/etcd:3.3.15-0
k8s.gcr.io/kubernetes-dashboard-amd64=gotok8s/kubernetes-dashboard-amd64:v1.10.\
2,cd k8s-docker-for-mac/
3, ./load_images.sh (确保你的docker已经运行)
这一步拉取镜像,耗时比较长
4,更换国内镜像源
重启b8s
等个几分钟就可以起来了
验证
$ kubectl cluster-info $ kubectl get nodes $ kubectl describe node