Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec failed after 1 retries: unable to sign certificate: must specify a CommonName #3052

Open
safeAndSound3 opened this issue Jan 9, 2024 · 2 comments

Comments

@safeAndSound3
Copy link

safeAndSound3 commented Jan 9, 2024

使用kk离线部署kubespher和kubernetes
参考文档地址:https://www.kubesphere.io/zh/docs/v3.4/installing-on-linux/introduction/air-gapped-installation/
执行:./kk init registry -f config-sample.yaml -a kubesphere.tar.gz 命令时报错:
error: Pipeline[InitRegistryPipeline] execute failed: Module[InitRegistryModule] exec failed:
failed: [LocalHost] [GenerateRegistryCerts] exec failed after 1 retries: unable to sign certificate: must specify a CommonName
相关配置如图,没有找到关于离线的该项文档

image

image

@supermandada
Copy link

我也遇到这个问题。你解决了么?

@safeAndSound3
Copy link
Author

@supermandada 已经解决了 可以参考下 需要配置文件新增密钥路径
#配置文件校对:
registry:
type: harbor
auths:
"dockerhub.kubekey.local":
username: admin
password: Harbor12345
certsPath: "/etc/docker/certs.d/dockerhub.kubekey.local" #不然推送报错
privateRegistry: "dockerhub.kubekey.local"
namespaceOverride: "kubesphereio"
registryMirrors: []
insecureRegistries: []
addons: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants