eip-work / kuboard-spray

使用图形化的界面离线安装、维护、升级高可用的 K8S 集群
https://kuboard-spray.cn
Apache License 2.0
1.64k stars 163 forks source link

添加master节点报错 #49

Open waising opened 2 years ago

waising commented 2 years ago

version spray :1.2.0 资源包: spray-v2.19.0a_k8s-v1.24.2_v2.1-amd64

添加master节点一直报错 kubectl 启动不起来

fatal: [master01]: FAILED! => {
    "attempts": 3,
    "changed": true,
    "cmd": [
        "/usr/local/bin/kubeadm",
        "join",
        "--config",
        "/etc/kubernetes/kubeadm-controlplane.yaml",
        "--ignore-preflight-errors=all",
        "--skip-phases="
    ],
    "delta": "0:00:00.893703",
    "end": "2022-08-03 09:30:21.895913",
    "msg": "non-zero return code",
    "rc": 1,
    "start": "2022-08-03 09:30:21.002210",
    "stderr": "error execution phase preflight: unable to fetch the kubeadm-config ConfigMap: failed to get config map: Get \"https://10.10.108.113:6443/api/v1/namespaces/kube-system/configmaps/kubeadm-config?timeout=10s\": dial tcp 10.10.108.113:6443: connect: connection refused\nTo see the stack trace of this error execute with --v=5 or higher",
    "stderr_lines": [
        "error execution phase preflight: unable to fetch the kubeadm-config ConfigMap: failed to get config map: Get \"https://10.10.108.113:6443/api/v1/namespaces/kube-system/configmaps/kubeadm-config?timeout=10s\": dial tcp 10.10.108.113:6443: connect: connection refused",
        "To see the stack trace of this error execute with --v=5 or higher"
    ],
    "stdout": "[preflight] Running pre-flight checks\n[preflight] Reading configuration from the cluster...\n[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'",
    "stdout_lines": [
        "[preflight] Running pre-flight checks",
        "[preflight] Reading configuration from the cluster...",
        "[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'"
    ]
}