yaml文件配置如下
apiVersion: kubeadm.k8s.io/v1beta1
kind: ClusterConfiguration
kubernetesVersion: v1.15.1
controlPlaneEndpoint: "39.100.81.208:6443"
networking:
# This CIDR is a Calico default. Substitute or remove for your CNI provider.
podSubnet: "172.22.0.0/16"
imageRepository: k8s.gcr.io
日志如下
8月 04 13:12:13 master kubelet[7346]: E0804 13:12:13.099687 7346 kubelet_node_status.go:94] Unable to register node “master” with API server: Post https
8月 04 13:12:13 master kubelet[7346]: E0804 13:12:13.170312 7346 kubelet.go:2248] node “master” not found
8月 04 13:12:13 master kubelet[7346]: E0804 13:12:13.270412 7346 kubelet.go:2248] node “master” not found