После запуска команды ниже для создания токена на мастере Kubernetes.
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
Я также присоединяюсь к системе кубов в yaml