环境
centos 8.2
k8s 1.19.2 (基于VM,一共6台,2C 4G/台) 使用kubeadm 创建
安装方式
kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/v3.0.0/deploy/kubesphere-installer.yaml
kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/v3.0.0/deploy/cluster-configuration.yaml
错误日志
`
TASK [common : Kubesphere | Deleting old fluentbit operator] *******************
skipping: [localhost] => (item={‘type’: ‘deploy’, ‘name’: ‘logging-fluentbit-operator’})
skipping: [localhost] => (item={‘type’: ‘fluentbits.logging.kubesphere.io’, ‘name’: ‘fluent-bit’})
skipping: [localhost] => (item={‘type’: ‘ds’, ‘name’: ‘fluent-bit’})
skipping: [localhost] => (item={‘type’: ‘crd’, ‘name’: ‘fluentbits.logging.kubesphere.io’})
TASK [common : Kubesphere | Prepare fluentbit operator setup] ******************
skipping: [localhost]
TASK [common : Kubesphere | Migrate fluentbit operator old config] *************
skipping: [localhost]
TASK [common : Kubesphere | Deploy new fluentbit operator] *********************
skipping: [localhost]
TASK [common : Kubesphere | import fluentbit status] ***************************
skipping: [localhost]
TASK [common : Setting persistentVolumeReclaimPolicy (mysql)] ******************
skipping: [localhost]
TASK [common : Setting persistentVolumeReclaimPolicy (etcd)] *******************
skipping: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=39 changed=34 unreachable=0 failed=0 skipped=118 rescued=0 ignored=10
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
“msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
}
TASK [ks-core/prepare : KubeSphere | Check core components (1)] ****************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Check core components (2)] ****************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Check core components (3)] ****************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Check core components (4)] ****************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Update ks-core status] ********************
skipping: [localhost]
TASK [ks-core/prepare : set_fact] **********************************************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Create KubeSphere dir] ********************
ok: [localhost]
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.080969”, “end”: “2020-10-14 17:25:57.353281”, “failed_when_result”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-10-14 17:25:57.272312”, “stderr”: "Error from server (Forbidden): users.jenkins.io \“admin\” is forbidden: User \“system:serviceaccount:kubesphere-system:ks-installer\” cannot get resource \“users\” in API group \“jenkins.io\” in the namespace \“kubesphere-system\”", “stderr_lines”: ["Error from server (Forbidden): users.jenkins.io \“admin\” is forbidden: User \“system:serviceaccount:kubesphere-system:ks-installer\” cannot get resource \“users\” in API group \“jenkins.io\” in the namespace \“kubesphere-system\”"], “stdout”: "", “stdout_lines”: []}
PLAY RECAP *********************************************************************
localhost : ok=5 changed=3 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0
`