原版 https://www.kubernetes.org.cn/5551.html

   2019/7/7 操作到了“在开始初始化集群之前可以使用kubeadm config images pull预先在各个节点上拉取所k8s需要的docker镜像”

1、k8s 配置修改及生效..创建 kubeadm.yaml   然后执行kubeadm init --config kubeadm.yaml ,让其生效 。配置文件如下
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
localAPIEndpoint:
  advertiseAddress: 192.168.137.99
  bindPort: 6443
nodeRegistration:
  taints:
  - effect: PreferNoSchedule
    key: node-role.kubernetes.io/master
---
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: v1.15.0
networking:
  podSubnet: 10.244.0.0/16
imageRepository: "registry.cn-hangzhou.aliyuncs.com/google_containers"

 

Logo

开源、云原生的融合云平台

更多推荐