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'"
]
}
version spray :1.2.0 资源包: spray-v2.19.0a_k8s-v1.24.2_v2.1-amd64
添加master节点一直报错 kubectl 启动不起来