Open JokerTlin opened 10 months ago
参考这个说明: https://github.com/kubesphere/kubekey/blob/master/docs/config-example.md
里面有: plainHTTP: false # Allow contacting registries over HTTP.
registry:
registryMirrors: []
insecureRegistries: []
privateRegistry: ""
namespaceOverride: ""
auths: # if docker add by docker login
, if containerd append to /etc/containerd/config.toml
"dockerhub.kubekey.local":
username: "xxx"
password: "**"
skipTLSVerify: false # Allow contacting registries over HTTPS with failed TLS verification.
plainHTTP: false # Allow contacting registries over HTTP.
certsPath: "/etc/docker/certs.d/dockerhub.kubekey.local" # Use certificates at path (.crt, .cert, .key) to connect to the registry.
另外,docker的/etc/docker/daemon.json文件中要配置http的,例如: "insecure-registries":["http://10.122.249.151","http://10.122.249.152"],
如果是containerd也要在配置文件/etc/containerd/config.toml中增加如下内容: [plugins."io.containerd.grpc.v1.cri".registry.mirrors."10.122.249.151"] endpoint = ["http://10.122.249.151"]
而且要重启一下docker和containerd的服务进程。
What is version of KubeKey has the issue?
3.0.7
What is your os environment?
cenots7
KubeKey config file
No response
A clear and concise description of what happend.
离线部署k8s,自建了非https的registry,创建集群失败。有没有什么配置项可以绕过https
Relevant log output
Additional information
No response