k8s版本(Docker Desktop):
PS C:\Users\tengyanbo\Downloads> kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version –short. Use –output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“25”, GitVersion:“v1.25.9”, GitCommit:“a1a87a0a2bcd605820920c6b0e618a8ab7d117d4”, GitTreeState:“clean”, BuildDate:“2023-04-12T12:16:51Z”, GoVersion:“go1.19.8”, Compiler:“gc”, Platform:“windows/amd64”}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“25”, GitVersion:“v1.25.9”, GitCommit:“a1a87a0a2bcd605820920c6b0e618a8ab7d117d4”, GitTreeState:“clean”, BuildDate:“2023-04-12T12:08:36Z”, GoVersion:“go1.19.8”, Compiler:“gc”, Platform:“linux/amd64”}
kubesphere 版本3.2.1
由于忘记登录界面http://127.0.0.1:30880/login中的admin密码,使用如下的命令修改密码
$ kubectl patch users admin -p ‘{“spec”:{“password”:“Abcd123456?!”}}’ –type=‘merge’ && kubectl annotate users admin iam.kubesphere.io/password-encrypted-
出现如下的错误:
Error from server (InternalError): 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”: tls: server chose an unconfigured cipher suite