创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
centos7
Linux k8s01 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 ×86_64 ×86_64 ×86_64 GNU/Linux
Kubernetes版本信息
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-18T16:12:00Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:42:41Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/amd64"}
容器运行时
DEBU[0000] get runtime connection
DEBU[0000] connect using endpoint 'unix:///run/containerd/containerd.sock' with '10s' timeout
DEBU[0000] connected successfully using endpoint: unix:///run/containerd/containerd.sock
DEBU[0000] VersionRequest: &VersionRequest{Version:v1alpha2,}
DEBU[0000] VersionResponse: &VersionResponse{Version:0.1.0,RuntimeName:containerd,RuntimeVersion:1.4.12,RuntimeApiVersion:v1alpha2,}
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: 1.4.12
RuntimeApiVersion: v1alpha2
KubeSphere版本信息
v3.2.1. 在kubernetes v1.22.4上在线安装
问题是什么
其它组件都正常,但当我通过文档:**在安装后启用 DevOps 修改ks-installer配置启用devops的时候,此时openldap开始创建,但它无法创建成功,报如下错误:
—
2022-01-24T17:20:20.448833645+08:00 chown: changing ownership of '/var/lib/ldap': Operation not permitted
2022-01-24T17:20:20.450273999+08:00 *** /container/run/startup/slapd failed with status 1
2022-01-24T17:20:20.450291598+08:00
—
➜ kubectl get pvc -n kubesphere-system | grep openldap
openldap-pvc-openldap-0 Bound pvc-79c06e6a-1c07-4fde-a8da-c2bfe3836331 2Gi RWO nfs-client 65m
➜ kubectl get pv | grep openldap
pvc-79c06e6a-1c07-4fde-a8da-c2bfe3836331 2Gi RWO Delete Bound kubesphere-system/openldap-pvc-openldap-0 nfs-client 65m