具体报错如下:
TASK [kubernetes/preinstall : Check that kube_service_addresses is a network range] ******************************************************************************************************************************
Wednesday 05 August 2020 17:38:32 +0800 (0:00:00.317) 0:01:00.119 ******
fatal: [node1]: FAILED! => {}

MSG:

The conditional check ’kube_service_addresses | ipaddr(‘net’)' failed. The error was: The ipaddr filter requires python’s netaddr be installed on the ansible controller


自己尝试解决一下
首先安装pip
yum install python-pip
然后升级pip版本
pip install –upgrade pip
安装netaddr
pip install netaddr

用的系统是centos7.8 安装遇到的问题比较多。后来看了一下,支持的系统在7.7…..
改了一下script/os/centos.sh脚本的系统获取变量。写死7.7这样挂在镜像等问题都解决了。

原来是系统更新的问题,现在yum update 直接就更新成7.8了…..桑心啊

目前centos 7 的镜像最高是7.8,如果安装系统时安装的是7.7的,但是安装完成后经过update,那么系统的版本就升级到7.8了。
这样kubesphere的安装包安装过程中会出现各种各样的问题。
找不到yum源,源站挂在目录失败等等问题
如果不想重新安装系统,那么在安装目录的里创建一个新的链接就可以解决这个问题

[root@master3 ~]# cd /data/kubesphere-all-offline-v2.1.1/Repos/
[root@master3 Repos]# ll
total 2669156
lrwxrwxrwx 1 root root         20 Feb 27 10:06 centos-7.4-amd64.iso -> centos-7.7-amd64.iso
lrwxrwxrwx 1 root root         20 Feb 27 10:06 centos-7.5-amd64.iso -> centos-7.7-amd64.iso
lrwxrwxrwx 1 root root         20 Feb 27 10:06 centos-7.6-amd64.iso -> centos-7.7-amd64.iso
-rw-r--r-- 1 root root  415242240 Feb 26 20:37 centos-7.7-amd64.iso
drwxr-xr-x 2 root root        289 Feb 27 13:52 images-v2.1.1
-rw-r--r-- 1 root root 1012940800 Feb 26 21:43 k8s.iso
-rw-r--r-- 1 root root   22272000 Feb 26 20:37 pip27.iso
-rw------- 1 root root   26369024 Feb 26 20:37 registry-images.tar
-rw-r--r-- 1 root root  360296448 Feb 26 20:37 ubuntu-16.04.5-server-amd64.iso
-rw-r--r-- 1 root root  340987904 Feb 26 20:37 ubuntu-16.04.6-server-amd64.iso
-rw-r--r-- 1 root root  200867840 Feb 26 20:37 ubuntu-18.04.1-server-amd64.iso
-rw-r--r-- 1 root root  354234368 Feb 26 20:37 ubuntu-18.04.2-server-amd64.iso
lrwxrwxrwx 1 root root         31 Feb 27 10:08 ubuntu-18.04.3-server-amd64.iso -> ubuntu-18.04.1-server-amd64.iso

在这个目录下,创建一个软连接