操作系统信息
例如:虚拟机,Ubuntu22.04,4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:“1”, Minor:“23”, GitVersion:“v1.23.5”, GitCommit:“c285e781331a3785a7f436042c65c5641ce8a9e9”, GitTreeState:“clean”, BuildDate:“2022-03-16T15:51:05Z”, GoVersion:“go1.17.8”, Compiler:“gc”, Platform:“darwin/arm64”}
Server Version: version.Info{Major:“1”, Minor:“30”, GitVersion:“v1.30.1+rke2r1”, GitCommit:“6911225c3f747e1cd9d109c305436d08b668f086”, GitTreeState:“clean”, BuildDate:“2024-05-15T15:44:16Z”, GoVersion:“go1.22.2 X:boringcrypto”, Compiler:“gc”, Platform:“linux/amd64”}
WARNING: version difference between client (1.23) and server (1.30) exceeds the supported minor version skew of +/-1
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
Client:
Version: v1.0.0
OS/Arch: linux/amd64
Git commit: c00780a1f5b905b09812722459c54936c9e070e6
buildctl:
Version: v0.10.5
GitCommit: bc26045116045516ff2427201abd299043eaf8f7
Server:
containerd:
Version: v1.7.11-k3s2
GitCommit: 64c566767b99d0bacf26fb6e2355775c413331c9
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d1
KubeSphere版本信息
例如:v3.4.1。离线安装。在已有K8s上安装。
问题是什么
安装好后,连了ldap之后,偶然发现创建本地用户报错了,截图如下:
Internal error occurred: failed calling webhook “users.iam.kubesphere.io”: failed to call webhook: Post “https://ks-controller-manager.kubesphere-system.svc:443/validate-email-iam-kubesphere-io-v1alpha2?timeout=30s”: no endpoints available for service “ks-controller-manager”
检查1:查看pod状态
kubectl get pods -n kubesphere-system
ks-controller-manager-66999494c6-5nt8h显示状态为CrashLoopBackOff
检查2:查看log日志
kubectl logs -n kubesphere-system $(kubectl get pods -n kubesphere-system -l app=ks-controller-manager -o jsonpath=‘{.items[0].metadata.name}’)
W0924 14:41:43.685155 1 client_config.go:618] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
I0924 14:41:43.689467 1 server.go:197] setting up manager
I0924 14:41:43.754721 1 listener.go:44] “controller-runtime/metrics: Metrics server is starting to listen” addr=“:8080”
I0924 14:41:43.950556 1 reconciler.go:149] “controllers/Helm: Watching resource” group=“gateway.kubesphere.io” version=“v1alpha1” kind=“Nginx”
I0924 14:41:43.950648 1 helm_controller.go:76] configured watch gvk gateway.kubesphere.io/v1alpha1, Kind=Nginx chartPath /var/helm-charts/ingress-nginx maxConcurrentReconciles 16 reconcilePeriod 1m0s
I0924 14:41:43.950798 1 reconciler.go:149] “controllers/Helm: Watching resource” group=“gateway.kubesphere.io” version=“v1alpha1” kind=“Gateway”
I0924 14:41:43.950817 1 helm_controller.go:76] configured watch gvk gateway.kubesphere.io/v1alpha1, Kind=Gateway chartPath /var/helm-charts/gateway maxConcurrentReconciles 16 reconcilePeriod 1m0s
I0924 14:41:43.954091 1 loginrecord_controller.go:94] Setting up event handlers
I0924 14:41:43.954462 1 certificatesigningrequest_controller.go:93] Setting up event handlers
I0924 14:41:43.956299 1 clusterrolebinding_controller.go:98] Setting up event handlers
I0924 14:41:43.956651 1 globalrolebinding_controller.go:107] Setting up event handlers
I0924 14:41:43.957110 1 groupbinding_controller.go:95] Setting up event handlers
I0924 14:41:43.958196 1 group_controller.go:103] Setting up event handlers
W0924 14:41:43.959646 1 client_config.go:618] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
F0924 14:41:43.971963 1 provider.go:668] failed to get calico-node deployment in kube-system, err=daemonsets.apps “calico-node” not found