问题:

 

 

解决:

 

  1. 开放端口

     
  2. 安装 kubeadmin

     
  3. 手工拉取 docker image , (国内访问不了所以需要手工拉去,否则第四步会报错)

     
  4. kubeadm init

     
  5. config kubectl

     
  6. 允许 master 节点执行 pod (单节点必备)

     
  7. 配置网络

     
  8. add node

 

 

参考:

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/

http://www.linuxe.cn/post-580.html

One comment on “centos7 kubeadmin 方式安装 k8s

  • 也可使用 aliyun 镜像

    docker pull registry.aliyuncs.com/google_containers/kube-apiserver:v1.20.0
    docker pull registry.aliyuncs.com/google_containers/kube-controller-manager:v1.20.0
    docker pull registry.aliyuncs.com/google_containers/kube-scheduler:v1.20.0
    docker pull registry.aliyuncs.com/google_containers/kube-proxy:v1.20.0
    docker pull registry.aliyuncs.com/google_containers/pause:3.2
    docker pull registry.aliyuncs.com/google_containers/etcd:3.4.13-0
    docker pull registry.aliyuncs.com/google_containers/coredns:1.7.0

    拿下来后统一改名(master节点需要以下所有镜像)

    docker tag registry.aliyuncs.com/google_containers/kube-apiserver:v1.20.0 k8s.gcr.io/kube-apiserver:v1.20.0
    docker tag registry.aliyuncs.com/google_containers/kube-controller-manager:v1.20.0 k8s.gcr.io/kube-controller-manager:v1.20.0
    docker tag registry.aliyuncs.com/google_containers/kube-scheduler:v1.20.0 k8s.gcr.io/kube-scheduler:v1.20.0
    docker tag registry.aliyuncs.com/google_containers/kube-proxy:v1.20.0 k8s.gcr.io/kube-proxy:v1.20.0
    docker tag registry.aliyuncs.com/google_containers/pause:3.2 k8s.gcr.io/pause:3.2
    docker tag registry.aliyuncs.com/google_containers/etcd:3.4.13-0 k8s.gcr.io/etcd:3.4.13-0
    docker tag registry.aliyuncs.com/google_containers/coredns:1.7.0 k8s.gcr.io/coredns:1.7.0

发表评论

电子邮件地址不会被公开。