- 已编辑
新装的CentOS7.7系统
./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 | y | y | y | y | y | y | y | y | | | | CST 14:47:29 |
+-----------------------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+
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[14:47:55 CST] Downloading Installation Files
INFO[14:47:55 CST] Downloading kubeadm ...
INFO[14:48:32 CST] Downloading kubelet ...
INFO[14:50:17 CST] Downloading kubectl ...
INFO[14:50:57 CST] Downloading helm ...
INFO[14:51:35 CST] Downloading kubecni ...
INFO[14:52:08 CST] Configurating operating system ...
[localhost.localdomain 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
no crontab for root
INFO[14:52:09 CST] Installing docker ...
INFO[14:52:09 CST] Start to download images on all nodes
[localhost.localdomain] Downloading image: kubesphere/etcd:v3.3.12
[localhost.localdomain] Downloading image: kubesphere/pause:3.1
[localhost.localdomain] Downloading image: kubesphere/kube-apiserver:v1.17.9
[localhost.localdomain] Downloading image: kubesphere/kube-controller-manager:v1.17.9
[localhost.localdomain] Downloading image: kubesphere/kube-scheduler:v1.17.9
[localhost.localdomain] Downloading image: kubesphere/kube-proxy:v1.17.9
[localhost.localdomain] Downloading image: coredns/coredns:1.6.9
[localhost.localdomain] Downloading image: kubesphere/k8s-dns-node-cache:1.15.12
[localhost.localdomain] Downloading image: calico/kube-controllers:v3.15.1
[localhost.localdomain] Downloading image: calico/cni:v3.15.1
[localhost.localdomain] Downloading image: calico/node:v3.15.1
[localhost.localdomain] Downloading image: calico/pod2daemon-flexvol:v3.15.1
INFO[14:57:09 CST] Generating etcd certs
INFO[14:57:09 CST] Synchronizing etcd certs
INFO[14:57:09 CST] Creating etcd service
[localhost.localdomain 192.168.0.231] MSG:
Created symlink from /etc/systemd/system/multi-user.target.wants/etcd.service to /etc/systemd/system/etcd.service.
INFO[14:57:11 CST] Starting etcd cluster
[localhost.localdomain 192.168.0.231] MSG:
Configuration file will be created
INFO[14:57:11 CST] Refreshing etcd configuration
Waiting for etcd to start
INFO[14:57:16 CST] Backup etcd data regularly
INFO[14:57:16 CST] Get cluster status
[localhost.localdomain 192.168.0.231] MSG:
Cluster will be created.
INFO[14:57:16 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[14:57:49 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[14:57:49 CST] Task failed ...
WARN[14:57:49 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
请问怎样解决?