运行以下命令后,在Kubernetes master上创建令牌。
kubeadm token generate
kubeadm token create <generated-token> --print-join-command --ttl=0
我想加入节点,但是当我运行命令加入它时,我收到一个错误。
ConfigMap:缺少ClusterConfiguration键值对。
群集已安装kubeadm。
kubeadm join 10.109.x.xx:6443 --token 3j9fzw.h7jxrseyrvm04s7v --discovery-token-ca-cert-hash sha256:5b20e87a257ea5551d8f5b3e1d502de099b4811d6b0e6062ad571fa97f5acb
[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 18.09.1. Latest validated version: 18.06
[discovery] Trying to connect to API Server "10.109.x.xx:6443"
[discovery] Created cluster-info discovery client, requesting info from "https://10.109.x.xx:6443"
[discovery] Requesting info from "https://10.109.x.xx:6443" again to validate TLS against the pinned public key
[discovery] Cluster info signature and contents are valid and TLS certificate validates against pinned roots, will use API Server "10.109.0.80:6443"
[discovery] Successfully established connection with API Server "10.109.0.80:6443"
[join] Reading configuration from the cluster...
[join] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
unable to fetch the kubeadm-config ConfigMap: unexpected error when reading kubeadm-config ConfigMap: ClusterConfiguration key value pair missing