Cauchy
[root@localhost ~]# rm -fr /usr/local/bin/kubelet
[root@localhost ~]# which kubelet
/usr/bin/which: no kubelet in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
[root@localhost ~]# ./kk create cluster –with-kubernetes v1.17.9 –with-kubesphere v3.0.0
+————————————-+——+——+———+———-+——-+——-+———–+——–+————+————-+——————+————–+
| name | sudo | curl | openssl | ebtables | socat | ipset | conntrack | docker | nfs client | ceph client | glusterfs client | time |
+————————————-+——+——+———+———-+——-+——-+———–+——–+————+————-+——————+————–+
| localhost.localdomain.cluster.local | y | y | y | y | y | y | y | y | | | | CST 11:09:40 |
+————————————-+——+——+———+———-+——-+——-+———–+——–+————+————-+——————+————–+
This is a simple check of your environment.
Before installation, you should ensure that your machines meet all requirements specified at
https://github.com/kubesphere/kubekey#requirements-and-recommendations
Continue this installation? [yes/no]: yes
INFO[11:09:42 CST] Downloading Installation Files
INFO[11:09:42 CST] Downloading kubeadm …
INFO[11:09:42 CST] Downloading kubelet …
INFO[11:09:43 CST] Downloading kubectl …
INFO[11:09:43 CST] Downloading helm …
INFO[11:09:43 CST] Downloading kubecni …
INFO[11:09:43 CST] Configurating operating system …
[localhost.localdomain.cluster.local 192.168.0.231] MSG:
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
INFO[11:09:44 CST] Installing docker …
INFO[11:09:44 CST] Start to download images on all nodes
[localhost.localdomain.cluster.local] Downloading image: kubesphere/etcd:v3.3.12
[localhost.localdomain.cluster.local] Downloading image: kubesphere/pause:3.1
[localhost.localdomain.cluster.local] Downloading image: kubesphere/kube-apiserver:v1.17.9
[localhost.localdomain.cluster.local] Downloading image: kubesphere/kube-controller-manager:v1.17.9
[localhost.localdomain.cluster.local] Downloading image: kubesphere/kube-scheduler:v1.17.9
[localhost.localdomain.cluster.local] Downloading image: kubesphere/kube-proxy:v1.17.9
[localhost.localdomain.cluster.local] Downloading image: coredns/coredns:1.6.9
[localhost.localdomain.cluster.local] Downloading image: kubesphere/k8s-dns-node-cache:1.15.12
[localhost.localdomain.cluster.local] Downloading image: calico/kube-controllers:v3.15.1
[localhost.localdomain.cluster.local] Downloading image: calico/cni:v3.15.1
[localhost.localdomain.cluster.local] Downloading image: calico/node:v3.15.1
[localhost.localdomain.cluster.local] Downloading image: calico/pod2daemon-flexvol:v3.15.1
INFO[11:13:12 CST] Generating etcd certs
INFO[11:13:12 CST] Synchronizing etcd certs
INFO[11:13:12 CST] Creating etcd service
INFO[11:13:14 CST] Starting etcd cluster
[localhost.localdomain.cluster.local 192.168.0.231] MSG:
Configuration file already exists
Waiting for etcd to start
INFO[11:13:22 CST] Refreshing etcd configuration
INFO[11:13:22 CST] Backup etcd data regularly
INFO[11:13:23 CST] Get cluster status
[localhost.localdomain.cluster.local 192.168.0.231] MSG:
Cluster will be created.
INFO[11:13:23 CST] Installing kube binaries
Push /root/kubekey/v1.17.9/amd64/kubeadm to 192.168.0.231:/tmp/kubekey/kubeadm Done
Push /root/kubekey/v1.17.9/amd64/kubelet to 192.168.0.231:/tmp/kubekey/kubelet Done
Push /root/kubekey/v1.17.9/amd64/kubectl to 192.168.0.231:/tmp/kubekey/kubectl Done
Push /root/kubekey/v1.17.9/amd64/helm to 192.168.0.231:/tmp/kubekey/helm Done
Push /root/kubekey/v1.17.9/amd64/cni-plugins-linux-amd64-v0.8.6.tgz to 192.168.0.231:/tmp/kubekey/cni-plugins-linux-amd64-v0.8.6.tgz Done
ERRO[11:13:54 CST] Failed to enable kubelet service: Failed to exec command: sudo -E /bin/sh -c “systemctl enable kubelet && ln -snf /usr/local/bin/kubelet /usr/bin/kubelet”
Failed to execute operation: File exists: Process exited with status 1 node=192.168.0.231
WARN[11:13:54 CST] Task failed …
WARN[11:13:54 CST] error: interrupted by error
Error: Failed to install kube binaries: interrupted by error
Usage:
kk create cluster [flags]
Flags:
-f, –filename string Path to a configuration file
-h, –help help for cluster
–skip-pull-images Skip pre pull images
–with-kubernetes string Specify a supported version of kubernetes
–with-kubesphere Deploy a specific version of kubesphere (default v3.0.0)
-y, –yes Skip pre-check of the installation
Global Flags:
–debug Print detailed information (default true)
Failed to install kube binaries: interrupted by error
都是一样