· 5 years ago · May 05, 2020, 06:00 PM
1worker-1:~# kubeadm join 192.168.122.139:6443 --token hcexp0.qiaxub64z17up9rn --discovery-token-ca-cert-hash sha256:05653259a076769
2faa952024249faa9c9457b4abf265914ba58f002f08834006 --v=5
3W0505 17:54:46.663024 4742 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.
4I0505 17:54:46.663087 4742 join.go:371] [preflight] found NodeName empty; using OS hostname as NodeName
5I0505 17:54:46.663122 4742 initconfiguration.go:103] detected and using CRI socket: /var/run/dockershim.sock
6[preflight] Running pre-flight checks
7I0505 17:54:46.663202 4742 preflight.go:90] [preflight] Running general checks
8I0505 17:54:46.663258 4742 checks.go:249] validating the existence and emptiness of directory /etc/kubernetes/manifests
9I0505 17:54:46.663278 4742 checks.go:286] validating the existence of file /etc/kubernetes/kubelet.conf
10I0505 17:54:46.663289 4742 checks.go:286] validating the existence of file /etc/kubernetes/bootstrap-kubelet.conf
11I0505 17:54:46.663303 4742 checks.go:102] validating the container runtime
12I0505 17:54:46.720057 4742 checks.go:128] validating if the service is enabled and active
13 [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
14I0505 17:54:46.794583 4742 checks.go:335] validating the contents of file /proc/sys/net/bridge/bridge-nf-call-iptables
15I0505 17:54:46.794966 4742 checks.go:335] validating the contents of file /proc/sys/net/ipv4/ip_forward
16I0505 17:54:46.795119 4742 checks.go:649] validating whether swap is enabled or not
17I0505 17:54:46.795380 4742 checks.go:376] validating the presence of executable ip
18I0505 17:54:46.795605 4742 checks.go:376] validating the presence of executable iptables
19I0505 17:54:46.795797 4742 checks.go:376] validating the presence of executable mount
20I0505 17:54:46.796006 4742 checks.go:376] validating the presence of executable nsenter
21I0505 17:54:46.796224 4742 checks.go:376] validating the presence of executable ebtables
22 [WARNING FileExisting-ebtables]: ebtables not found in system path
23I0505 17:54:46.796618 4742 checks.go:376] validating the presence of executable ethtool
24I0505 17:54:46.796812 4742 checks.go:376] validating the presence of executable socat
25I0505 17:54:46.797028 4742 checks.go:376] validating the presence of executable tc
26I0505 17:54:46.797271 4742 checks.go:376] validating the presence of executable touch
27I0505 17:54:46.797474 4742 checks.go:520] running all checks
28I0505 17:54:46.874285 4742 checks.go:406] checking whether the given node name is reachable using net.LookupHost
29I0505 17:54:46.875735 4742 checks.go:618] validating kubelet version
30I0505 17:54:46.992144 4742 checks.go:128] validating if the service is enabled and active
31I0505 17:54:47.001533 4742 checks.go:201] validating availability of port 10250
32I0505 17:54:47.001738 4742 checks.go:286] validating the existence of file /etc/kubernetes/pki/ca.crt
33I0505 17:54:47.001761 4742 checks.go:432] validating if the connectivity type is via proxy or direct
34I0505 17:54:47.001804 4742 join.go:441] [preflight] Discovering cluster-info
35I0505 17:54:47.001909 4742 token.go:188] [discovery] Trying to connect to API Server "192.168.122.139:6443"
36I0505 17:54:47.002735 4742 token.go:73] [discovery] Created cluster-info discovery client, requesting info from "https://192.168.122.139:6443"
37I0505 17:54:47.014874 4742 token.go:134] [discovery] Requesting info from "https://192.168.122.139:6443" again to validate TLS against the pinned public key
38I0505 17:54:47.027667 4742 token.go:152] [discovery] Cluster info signature and contents are valid and TLS certificate validates against pinned roots, will use API Server "192.168.122.139:6443"
39I0505 17:54:47.027693 4742 token.go:194] [discovery] Successfully established connection with API Server "192.168.122.139:6443"
40I0505 17:54:47.027706 4742 discovery.go:51] [discovery] Using provided TLSBootstrapToken as authentication credentials for the join process
41I0505 17:54:47.027729 4742 join.go:455] [preflight] Fetching init configuration
42I0505 17:54:47.027733 4742 join.go:493] [preflight] Retrieving KubeConfig objects
43[preflight] Reading configuration from the cluster...
44[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
45I0505 17:54:47.040061 4742 interface.go:400] Looking for default routes with IPv4 addresses
46I0505 17:54:47.040089 4742 interface.go:405] Default route transits interface "eth0"
47I0505 17:54:47.040233 4742 interface.go:208] Interface eth0 is up
48I0505 17:54:47.040288 4742 interface.go:256] Interface "eth0" has 2 addresses :[192.168.122.143/24 fe80::5054:ff:fee3:989e/64].
49I0505 17:54:47.040594 4742 interface.go:223] Checking addr 192.168.122.143/24.
50I0505 17:54:47.040605 4742 interface.go:230] IP found 192.168.122.143
51I0505 17:54:47.040616 4742 interface.go:262] Found valid IPv4 address 192.168.122.143 for interface "eth0".
52I0505 17:54:47.040625 4742 interface.go:411] Found active IP 192.168.122.143
53I0505 17:54:47.040683 4742 preflight.go:101] [preflight] Running configuration dependant checks
54I0505 17:54:47.040700 4742 controlplaneprepare.go:211] [download-certs] Skipping certs download
55I0505 17:54:47.040709 4742 kubelet.go:107] [kubelet-start] writing bootstrap kubelet config file at /etc/kubernetes/bootstrap-kubelet.conf
56I0505 17:54:47.042159 4742 kubelet.go:115] [kubelet-start] writing CA certificate at /etc/kubernetes/pki/ca.crt
57I0505 17:54:47.043180 4742 kubelet.go:133] [kubelet-start] Stopping the kubelet
58[kubelet-start] Downloading configuration for the kubelet from the "kubelet-config-1.17" ConfigMap in the kube-system namespace
59[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
60[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
61[kubelet-start] Starting the kubelet
62[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...
63[kubelet-check] Initial timeout of 40s passed.
64[kubelet-check] It seems like the kubelet isn't running or healthy.
65[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp [::1]:10248: connect: connection refused.
66[kubelet-check] It seems like the kubelet isn't running or healthy.
67[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp [::1]:10248: connect: connection refused.