kubectl delete pvc -n kubesphere-system minio
kubectl delete pvc -n kubesphere-system openldap-pvc-openldap-0
kubectl delete pvc -n kubesphere-system redis-pvc
手动删除pvc的原因是因为安装一直卡在pvc 的状态是 pending
Warning ProvisioningFailed 59m persistentvolume-controller Failed to provision volume with StorageClass "rbd": failed to create rbd image: exit status 22, command output: 2020-04-05 10:35:46.438666 7f75311f1100 -1 did not load config file, using default settings.
rbd: image format 1 is deprecated
现在的情况是下面这样,重启ks-installer 没有作用
[root@master scripts]# kubectl get pvc -n kubesphere-system
No resources found in kubesphere-system namespace.
[root@master scripts]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath={.items[0].metadata.name}) -f
2020-04-05T14:15:48Z INFO : shell-operator v1.0.0-beta.5
2020-04-05T14:15:48Z INFO : HTTP SERVER Listening on 0.0.0.0:9115
2020-04-05T14:15:48Z INFO : Use temporary dir: /tmp/shell-operator
2020-04-05T14:15:48Z INFO : Initialize hooks manager ...
2020-04-05T14:15:48Z INFO : Search and load hooks ...
2020-04-05T14:15:48Z INFO : Load hook config from '/hooks/kubesphere/installRunner.py'
2020-04-05T14:15:48Z INFO : Initializing schedule manager ...
2020-04-05T14:15:48Z INFO : KUBE Init Kubernetes client
2020-04-05T14:15:48Z INFO : KUBE-INIT Kubernetes client is configured successfully
2020-04-05T14:15:48Z INFO : MAIN: run main loop
2020-04-05T14:15:48Z INFO : MAIN: add onStartup tasks
2020-04-05T14:15:48Z INFO : QUEUE add all HookRun@OnStartup
2020-04-05T14:15:48Z INFO : MSTOR Create new metric shell_operator_live_ticks
2020-04-05T14:15:48Z INFO : Running schedule manager ...
2020-04-05T14:15:48Z INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2020-04-05T14:15:48Z ERROR : error getting GVR for kind 'ConfigMap': Unauthorized
2020-04-05T14:15:48Z ERROR : Enable kube events for hooks error: Unauthorized
2020-04-05T14:15:51Z INFO : TASK_RUN Exit: program halts.