根据官方文档卸载了日志系统后,在想安装无法成功。
TASK [common : KubeSphere | Getting PersistentVolume Name] *********************
skipping: [localhost]
TASK [common : KubeSphere | Patching PersistentVolume (persistentVolumeReclaimPolicy)] ***
skipping: [localhost]
TASK [common : KubeSphere | Deleting elasticsearch] ****************************
skipping: [localhost]
TASK [common : KubeSphere | Waiting for seconds] *******************************
skipping: [localhost]
TASK [common : KubeSphere | Deploying elasticsearch-logging] *******************
skipping: [localhost]
TASK [common : KubeSphere | Importing es status] *******************************
skipping: [localhost]
TASK [common : KubeSphere | Deploying elasticsearch-logging-curator] ***********
skipping: [localhost]
TASK [common : KubeSphere | Getting fluentbit installation files] **************
ok: [localhost]
TASK [common : KubeSphere | Creating custom manifests] *************************
ok: [localhost] => (item={‘path’: ‘fluentbit’, ‘file’: ‘custom-fluentbit-fluentBit.yaml’})
ok: [localhost] => (item={‘path’: ‘init’, ‘file’: ‘custom-fluentbit-operator-deployment.yaml’})
TASK [common : KubeSphere | Preparing fluentbit operator setup] ****************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/fluentbit-operator/init\n”, “delta”: “0:00:04.965592”, “end”: “2022-08-31 14:56:51.738657”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-08-31 14:56:46.773065”, “stderr”: “Error from server (Forbidden): error when creating \”/kubesphere/kubesphere/fluentbit-operator/init/custom-fluentbit-operator-deployment.yaml\": deployments.apps \“fluentbit-operator\” is forbidden: unable to create new content in namespace kubesphere-logging-system because it is being terminated\nError from server (Forbidden): error when creating \“/kubesphere/kubesphere/fluentbit-operator/init/fluentbit-operator-configmap.yaml\”: configmaps \“fluent-bit-lua\” is forbidden: unable to create new content in namespace kubesphere-logging-system because it is being terminated\nError from server (Forbidden): error when creating \“/kubesphere/kubesphere/fluentbit-operator/init/fluentbit-operator-serviceAccount.yaml\”: serviceaccounts \“fluentbit-operator\” is forbidden: unable to create new content in namespace kubesphere-logging-system because it is being terminated", “stderr_lines”: [“Error from server (Forbidden): error when creating \”/kubesphere/kubesphere/fluentbit-operator/init/custom-fluentbit-operator-deployment.yaml\": deployments.apps \“fluentbit-operator\” is forbidden: unable to create new content in namespace kubesphere-logging-system because it is being terminated", “Error from server (Forbidden): error when creating \”/kubesphere/kubesphere/fluentbit-operator/init/fluentbit-operator-configmap.yaml\": configmaps \“fluent-bit-lua\” is forbidden: unable to create new content in namespace kubesphere-logging-system because it is being terminated", “Error from server (Forbidden): error when creating \”/kubesphere/kubesphere/fluentbit-operator/init/fluentbit-operator-serviceAccount.yaml\": serviceaccounts \“fluentbit-operator\” is forbidden: unable to create new content in namespace kubesphere-logging-system because it is being terminated"], “stdout”: “clusterrole.rbac.authorization.k8s.io/kubesphere:operator:fluentbit-operator unchanged\nclusterrolebinding.rbac.authorization.k8s.io/kubesphere:operator:fluentbit-operator unchanged\ncustomresourcedefinition.apiextensions.k8s.io/filters.logging.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/fluentbits.logging.kubesphere.io created\ncustomresourcedefinition.apiextensions.k8s.io/fluentbitconfigs.logging.kubesphere.io created\ncustomresourcedefinition.apiextensions.k8s.io/inputs.logging.kubesphere.io created\ncustomresourcedefinition.apiextensions.k8s.io/outputs.logging.kubesphere.io created\ncustomresourcedefinition.apiextensions.k8s.io/parsers.logging.kubesphere.io created”, “stdout_lines”: [“clusterrole.rbac.authorization.k8s.io/kubesphere:operator:fluentbit-operator unchanged”, “clusterrolebinding.rbac.authorization.k8s.io/kubesphere:operator:fluentbit-operator unchanged”, “customresourcedefinition.apiextensions.k8s.io/filters.logging.kubesphere.io configured”, “customresourcedefinition.apiextensions.k8s.io/fluentbits.logging.kubesphere.io created”, “customresourcedefinition.apiextensions.k8s.io/fluentbitconfigs.logging.kubesphere.io created”, “customresourcedefinition.apiextensions.k8s.io/inputs.logging.kubesphere.io created”, “customresourcedefinition.apiextensions.k8s.io/outputs.logging.kubesphere.io created”, “customresourcedefinition.apiextensions.k8s.io/parsers.logging.kubesphere.io created”]}
PLAY RECAP *********************************************************************
localhost : ok=31 changed=17 unreachable=0 failed=1 skipped=97 rescued=0 ignored=0