结果还是一样
./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 |
+———-+——+——+———+———-+——-+——-+———–+——–+————+————-+——————+————–+
| shiku183 | y | y | y | y | y | y | y | y | | | | CST 17:40:35 |
+———-+——+——+———+———-+——-+——-+———–+——–+————+————-+——————+————–+
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[17:40:46 CST] Downloading Installation Files
INFO[17:40:46 CST] Downloading kubeadm …
INFO[17:41:23 CST] Downloading kubelet …
INFO[17:43:14 CST] Downloading kubectl …
INFO[17:43:53 CST] Downloading kubecni …
INFO[17:44:27 CST] Downloading helm …
INFO[17:45:20 CST] Configurating operating system …
[shiku183 192.168.0.120] MSG:
net.ipv4.tcp_retries1 = 0
net.ipv4.tcp_retries2 = 0
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_timestamps = 0
fs.file-max = 360000
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_keepalive_time = 60
net.ipv4.tcp_keepalive_probes = 2
net.ipv4.tcp_keepalive_intvl = 3
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
vm.max_map_count = 655360
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
vm.swappiness = 0
INFO[17:45:46 CST] Installing docker …
INFO[17:45:47 CST] Start to download images on all nodes
[shiku183] Downloading image: kubesphere/etcd:v3.3.12
[shiku183] Downloading image: kubesphere/pause:3.1
[shiku183] Downloading image: kubesphere/kube-apiserver:v1.17.9
[shiku183] Downloading image: kubesphere/kube-controller-manager:v1.17.9
[shiku183] Downloading image: kubesphere/kube-scheduler:v1.17.9
[shiku183] Downloading image: kubesphere/kube-proxy:v1.17.9
[shiku183] Downloading image: coredns/coredns:1.6.9
[shiku183] Downloading image: kubesphere/k8s-dns-node-cache:1.15.12
[shiku183] Downloading image: calico/kube-controllers:v3.15.1
[shiku183] Downloading image: calico/cni:v3.15.1
[shiku183] Downloading image: calico/node:v3.15.1
[shiku183] Downloading image: calico/pod2daemon-flexvol:v3.15.1
INFO[17:48:44 CST] Generating etcd certs
INFO[17:48:50 CST] Synchronizing etcd certs
INFO[17:48:50 CST] Creating etcd service
INFO[17:48:55 CST] Starting etcd cluster
[shiku183 192.168.0.120] MSG:
Configuration file will be created
INFO[17:48:56 CST] Refreshing etcd configuration
INFO[17:49:01 CST] Get cluster status
[shiku183 192.168.0.120] MSG:
Cluster will be created.
INFO[17:49:02 CST] Installing kube binaries
Push /opt/kubekey/v1.17.9/amd64/kubeadm to 192.168.0.120:/tmp/kubekey/kubeadm Done
Push /opt/kubekey/v1.17.9/amd64/kubelet to 192.168.0.120:/tmp/kubekey/kubelet Done
Push /opt/kubekey/v1.17.9/amd64/kubectl to 192.168.0.120:/tmp/kubekey/kubectl Done
Push /opt/kubekey/v1.17.9/amd64/helm to 192.168.0.120:/tmp/kubekey/helm Done
Push /opt/kubekey/v1.17.9/amd64/cni-plugins-linux-amd64-v0.8.6.tgz to 192.168.0.120:/tmp/kubekey/cni-plugins-linux-amd64-v0.8.6.tgz Done
ERRO[17:49:42 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.120
WARN[17:49:42 CST] Task failed …
WARN[17:49:42 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