all-in-one单机台机器启动
`[centos8] Downloading image: calico/pod2daemon-flexvol:v3.16.3
INFO[15:08:55 HKT] Generating etcd certs
INFO[15:08:57 HKT] Synchronizing etcd certs
INFO[15:08:57 HKT] Creating etcd service
[centos8 192.168.31.79] MSG:
etcd already exists
INFO[15:09:19 HKT] Starting etcd cluster
[centos8 192.168.31.79] MSG:
Configuration file already exists
[centos8 192.168.31.79] MSG:
v3.4.13
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
Waiting for etcd to start
WARN[15:10:57 HKT] Task failed …
WARN[15:10:57 HKT] error: Failed to start etcd cluster: Failed to exec command: sudo -E /bin/sh -c “export ETCDCTL_API=2;export ETCDCTL_CERT_FILE=‘/etc/ssl/etcd/ssl/admin-centos8.pem’;export ETCDCTL_KEY_FILE=‘/etc/ssl/etcd/ssl/admin-centos8-key.pem’;export ETCDCTL_CA_FILE=‘/etc/ssl/etcd/ssl/ca.pem’;/usr/local/bin/etcdctl –endpoints=https://192.168.31.79:2379 cluster-health | grep -q ‘cluster is healthy’”
Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 192.168.31.79:2379: connect: connection refused
error #0: dial tcp 192.168.31.79:2379: connect: connection refused: Process exited with status 1
Error: Failed to start etcd cluster: Failed to start etcd cluster: Failed to exec command: sudo -E /bin/sh -c “export ETCDCTL_API=2;export ETCDCTL_CERT_FILE=‘/etc/ssl/etcd/ssl/admin-centos8.pem’;export ETCDCTL_KEY_FILE=‘/etc/ssl/etcd/ssl/admin-centos8-key.pem’;export ETCDCTL_CA_FILE=‘/etc/ssl/etcd/ssl/ca.pem’;/usr/local/bin/etcdctl –endpoints=https://192.168.31.79:2379 cluster-health | grep -q ‘cluster is healthy’”
Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 192.168.31.79:2379: connect: connection refused
error #0: dial tcp 192.168.31.79:2379: connect: connection refused: Process exited with status 1
Usage:
kk create cluster [flags]
Flags:
–download-cmd string The user defined command to download the necessary binary files. The first param ‘%s’ is output path, the second param ‘%s’, is the URL (default “curl -L -o %s %s”)
-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 (default “v1.19.8”)
–with-kubesphere Deploy a specific version of kubesphere (default v3.1.0)
–with-local-storage Deploy a local PV provisioner
-y, –yes Skip pre-check of the installation
Global Flags:
–debug Print detailed information (default true)
–in-cluster Running inside the cluster
Failed to start etcd cluster: Failed to start etcd cluster: Failed to exec command: sudo -E /bin/sh -c “export ETCDCTL_API=2;export ETCDCTL_CERT_FILE=‘/etc/ssl/etcd/ssl/admin-centos8.pem’;export ETCDCTL_KEY_FILE=‘/etc/ssl/etcd/ssl/admin-centos8-key.pem’;export ETCDCTL_CA_FILE=‘/etc/ssl/etcd/ssl/ca.pem’;/usr/local/bin/etcdctl –endpoints=https://192.168.31.79:2379 cluster-health | grep -q ‘cluster is healthy’”
Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 192.168.31.79:2379: connect: connection refused
error #0: dial tcp 192.168.31.79:2379: connect: connection refused: Process exited with status 1`