Q : 部署应用出现类似database not found问题
A : openpitrix的Job执行失败,可以通过kubectl get job -n openpitrix-system查看Jobs的状态,其中openpitrix-db-init这个Job是用来初始化数据库,如果openpitrix-db-init这个Job失败其他Job都会失败.

如果COMPLETIONS这一列0/1表示该Job执行失败,可以通过如下命令重新执行Job或者按照你熟悉的方式执行.
kubectl -n openpitrix-system get job openpitrix-db-init-job -o json | jq 'del(.spec.selector)' | jq 'del(.spec.template.metadata.labels)' | kubectl replace --force -f -
Q:部署应用出现类似table not found问题
A:openpitrix的Job执行失败,可以通过kubectl get job -n openpitrix-syustem查看Jobs的状态,其中*-db-ctl-job创建表,对于执行有问题的Job(eg.app-db-ctrl-job)
如果COMPLETIONS列出现0/1表示该Job执行失败,可以通过如下命令重新执行Job或者按照你熟悉的方式执行.
kubectl -n openpitrix-system get job openpitrix-app-db-ctrl-job -o json | jq 'del(.spec.selector)' | jq 'del(.spec.template.metadata.labels)' | kubectl replace --force -f -
Q:openpitrix安装完成之后应用商店里边没看到应用
A:openpitrix安装完成之后应用商店里边会显示出我们内置的应用,如果没有显示,通过kubectl get job -n openpitrix-system查看hyperpitrix-release-app-job
如果COMPLETIONS列出现0/1表示该Job执行失败,通过下面命令重新执行.
kubectl -n openpitrix-system get job hyperpitrix-release-app-job -o json | jq 'del(.spec.selector)' | jq 'del(.spec.template.metadata.labels)' | kubectl replace --force -f -
补充,还可以参考这个 issue 解决应用商店里边没看到应用的问题。
Q:部署应用到project的时候会遇到PermissionDenied desc = Runtime [runtime-***] not found
A:重复安装造成的脏数据问题,导致runtime-id成为野指针,可以通过下面命令删掉。
for ns in `kubectl get ns -o jsonpath="{range .items[*]}{.metadata.name}{'\n'}{end}"`; do kubectl annotate ns $ns openpitrix_runtime-; done
Q:vmbased应用的部分有问题怎么办
A:kubesphere专注于做云原生应用,如果有Vmbased应用的部署相关问题可以去github openpitrix项目下面提issue,会有人给您解决相关问题