- 已编辑
创建部署问题时,请参考下面模板:
操作系统信息,虚拟机,Centos7,
4C/15G
4C/8G
4C/8G
Kubernetes版本信息,例如:1.22.1。单节点还是多节点。
KubeSphere版本信息,例如:v3.1.1。在线安装。已有K8s安装
问题是什么,报错日志是什么,最好有截图。
安装到这里失败了
TASK [common : KubeSphere | Creating custom manifests] *************************
skipping: [localhost] => (item={'path': 'fluentbit', 'file': 'custom-fluentbit-fluentBit.yaml'})
skipping: [localhost] => (item={'path': 'init', 'file': 'custom-fluentbit-operator-deployment.yaml'})
skipping: [localhost] => (item={'path': 'migrator', 'file': 'custom-migrator-job.yaml'})
TASK [common : KubeSphere | Checking fluentbit-version] ************************
skipping: [localhost]
TASK [common : KubeSphere | Backuping old fluentbit crd] ***********************
skipping: [localhost]
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 | Preparing fluentbit operator setup] ****************
skipping: [localhost]
TASK [common : KubeSphere | Migrating fluentbit operator old config] ***********
skipping: [localhost]
TASK [common : KubeSphere | Deploying new fluentbit operator] ******************
skipping: [localhost]
TASK [common : KubeSphere | Importing fluentbit status] ************************
skipping: [localhost]
TASK [common : Setting persistentVolumeReclaimPolicy (mysql)] ******************
skipping: [localhost]
TASK [common : Setting persistentVolumeReclaimPolicy (etcd)] *******************
skipping: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=29 changed=24 unreachable=0 failed=0 skipped=120 rescued=0 ignored=0
[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 : Downloading items] ********************************************
skipping: [localhost]
TASK [download : Synchronizing container] **************************************
skipping: [localhost]
TASK [kubesphere-defaults : KubeSphere | Setting images' namespace override] ***
skipping: [localhost]
TASK [kubesphere-defaults : KubeSphere | Configuring defaults] *****************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [ks-core/prepare : KubeSphere | Checking core components (1)] *************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Checking core components (2)] *************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Checking core components (3)] *************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Checking core components (4)] *************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Updating ks-core status] ******************
skipping: [localhost]
TASK [ks-core/prepare : set_fact] **********************************************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Creating KubeSphere directory] ************
ok: [localhost]
TASK [ks-core/prepare : KubeSphere | Getting installation init files] **********
changed: [localhost] => (item=ks-init)
TASK [ks-core/prepare : KubeSphere | Checking account init] ********************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Initing account] **************************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Initing KubeSphere] ***********************
changed: [localhost] => (item=role-templates.yaml)
changed: [localhost] => (item=webhook-secret.yaml)
changed: [localhost] => (item=network.kubesphere.io.yaml)
failed: [localhost] (item=iam.kubesphere.io.yaml) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-init/iam.kubesphere.io.yaml", "delta": "0:00:00.421491", "end": "2021-09-15 19:41:54.853003", "failed_when_result": true, "item": "iam.kubesphere.io.yaml", "msg": "non-zero return code", "rc": 1, "start": "2021-09-15 19:41:54.431512", "stderr": "error: unable to recognize \"/kubesphere/kubesphere/ks-init/iam.kubesphere.io.yaml\": no matches for kind \"ValidatingWebhookConfiguration\" in version \"admissionregistration.k8s.io/v1beta1\"", "stderr_lines": ["error: unable to recognize \"/kubesphere/kubesphere/ks-init/iam.kubesphere.io.yaml\": no matches for kind \"ValidatingWebhookConfiguration\" in version \"admissionregistration.k8s.io/v1beta1\""], "stdout": "", "stdout_lines": []}
changed: [localhost] => (item=quota.kubesphere.io.yaml)
PLAY RECAP *********************************************************************
localhost : ok=6 changed=4 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0