创建部署问题时,请参考下面模板:
虚拟机Ubuntu 20.4,2C/4G
Kubernetes v18.6 多节点
KubeSphere v3.0.0。离线安装
我尝试在线安装,网络问题确实没法搞,所以就尝试离线安装。
离线安装image list 145个镜像,我下载了半天,在虚拟机上传了半天。然后换个电脑还是没法用。
已经下载好的包有8个G,也不好来回发。
所以干脆,"半离线"安装:利用.sh脚本下载好kubeadm\ctl\helm等,然后机器上用到的镜像都在"有网"的电脑上pull
pull下来,然后在节点上docker load进去。
但是问题,还是发生了,最后一个镜像Downloading时,还是卡住了。
我在每个节点单独docker pull 都没问题,但是就是卡住了:
root@master:~# ./kk create cluster -f config-sample.yaml
+--------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+
| name | sudo | curl | openssl | ebtables | socat | ipset | conntrack | docker | nfs client | ceph client | glusterfs client | time |
+--------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+
| node2 | y | y | y | y | y | y | y | y | | | | UTC 15:43:58 |
| node1 | y | y | y | y | y | y | y | y | | | | UTC 15:43:58 |
| master | y | y | y | y | y | y | y | y | | | | UTC 15:43:58 |
+--------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+
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[15:44:01 UTC] Downloading Installation Files
INFO[15:44:01 UTC] Downloading kubeadm ...
INFO[15:44:02 UTC] Downloading kubelet ...
INFO[15:44:03 UTC] Downloading kubectl ...
INFO[15:44:03 UTC] Downloading helm ...
INFO[15:44:04 UTC] Downloading kubecni ...
INFO[15:44:04 UTC] Configurating operating system ...
[node1 192.168.199.102] 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
[master 192.168.199.101] 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
[node2 192.168.199.103] 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[15:44:19 UTC] Installing docker ...
INFO[15:44:35 UTC] Start to download images on all nodes
[node2] Downloading image: kubesphere/pause:3.2
[master] Downloading image: kubesphere/etcd:v3.3.12
[node1] Downloading image: kubesphere/pause:3.2
[node1] Downloading image: kubesphere/kube-proxy:v1.18.6
[master] Downloading image: kubesphere/pause:3.2
[node1] Downloading image: coredns/coredns:1.6.9
[node2] Downloading image: kubesphere/kube-proxy:v1.18.6
[master] Downloading image: kubesphere/kube-apiserver:v1.18.6
[node1] Downloading image: kubesphere/k8s-dns-node-cache:1.15.12
[node2] Downloading image: coredns/coredns:1.6.9
[master] Downloading image: kubesphere/kube-controller-manager:v1.18.6
[node1] Downloading image: calico/kube-controllers:v3.15.1
[node1] Downloading image: calico/cni:v3.15.1
[node1] Downloading image: calico/node:v3.15.1
[node1] Downloading image: calico/pod2daemon-flexvol:v3.15.1
[node2] Downloading image: kubesphere/k8s-dns-node-cache:1.15.12
[node2] Downloading image: calico/kube-controllers:v3.15.1
[node2] Downloading image: calico/cni:v3.15.1
[node2] Downloading image: calico/node:v3.15.1
[node2] Downloading image: calico/pod2daemon-flexvol:v3.15.1
root@node1:/home/rs# docker pull calico/pod2daemon-flexvol:v3.15.1
v3.15.1: Pulling from calico/pod2daemon-flexvol
Digest: sha256:c2c6bbe3e10d24a01d6f3fd5b446cce6cf3e37f943960263bf6e5c458ecdeb52
Status: Image is up to date for calico/pod2daemon-flexvol:v3.15.1
docker.io/calico/pod2daemon-flexvol:v3.15.1
root@node2:/home/rs# docker pull calico/pod2daemon-flexvol:v3.15.1
v3.15.1: Pulling from calico/pod2daemon-flexvol
Digest: sha256:c2c6bbe3e10d24a01d6f3fd5b446cce6cf3e37f943960263bf6e5c458ecdeb52
Status: Image is up to date for calico/pod2daemon-flexvol:v3.15.1
docker.io/calico/pod2daemon-flexvol:v3.15.1
之前用一个日本的服务器,一次成功,啥问题没有。。。。。但是没法访问阿里云的镜像服务,所以打算先虚拟机搞一波。结果发现这么难。。。。