您好,我也是遇到了前面一样的问题,采取去除污点后,根据官网最小化安装进行安装.现在遇到了之前没出现过的异常.
TASK [ks-core/prepare : KubeSphere | Getting installation init files] **********
changed: [localhost] => (item=ks-init)
TASK [ks-core/prepare : Kubesphere | Checking account init] ********************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl get users admin\n", "delta": "0:00:00.079186", "end": "2021-01-15 09:11:44.951388", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2021-01-15 09:11:44.872202", "stderr": "error: the server doesn't have a resource type \"users\"", "stderr_lines": ["error: the server doesn't have a resource type \"users\""], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
localhost : ok=5 changed=3 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0
日志出现此异常后,就没有继续安装了.
我的环境
# kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:14:22Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:07:13Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
#helm version
Client: &version.Version{SemVer:"v2.16.2", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.2", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
#kubectl get node -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
k8s-node1 Ready master 2d22h v1.17.3 10.0.2.15 <none> CentOS Linux 7 (Core) 3.10.0-1127.el7.x86_64 docker://20.10.2
k8s-node2 Ready <none> 2d22h v1.17.3 10.0.2.5 <none> CentOS Linux 7 (Core) 3.10.0-1127.el7.x86_64 docker://20.10.2
k8s-node3 Ready <none> 2d22h v1.17.3 10.0.2.4 <none> CentOS Linux 7 (Core) 3.10.0-1127.el7.x86_64 docker://20.10.2
#kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
openebs-device openebs.io/local Delete WaitForFirstConsumer false 2d21h
openebs-hostpath (default) openebs.io/local Delete WaitForFirstConsumer false 2d21h
openebs-jiva-default openebs.io/provisioner-iscsi Delete Immediate false 2d21h
openebs-snapshot-promoter volumesnapshot.external-storage.k8s.io/snapshot-promoter Delete Immediate false 2d21h
kubectl get pvc -n openebs
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
demo-vol1-claim Bound pvc-84d18996-c94e-43eb-97ae-5b8a8058f00e 5G RWO openebs-hostpath 2d21h
Feynman