magitekbay ok,多谢啦,那我再研究一下,我是基于3.0自己改的kk的源码,手动部署还好,都是官方的配置就行
K3S 离线安装及containerd配置
magitekbay 破案了,刚看了2.0kk的源码,这个config写在了源码里,每次都会更新,我去更新一下源码就行
Alice : 嗯,不客气,kk部署比较省事,3.0的时候用过,但是不怎么符合我的场景,我就自己手动部署了,就是每次升级都得自己改镜像,签证书的是一个二级ca,ks-installer不支持就很头疼
改了v2.2.1的版本仍然不行
Warning FailedCreatePodSandBox 0s (x5 over 49s) kubelet, node1 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "192.168.5.61:1080/kubesphere/pause:3.2": failed to pull image "192.168.5.61:1080/kubesphere/pause:3.2": failed to pull and unpack image "192.168.5.61:1080/kubesphere/pause:3.2": failed to resolve reference "192.168.5.61:1080/kubesphere/pause:3.2": failed to do request: Head https://192.168.5.61:1080/v2/kubesphere/pause/manifests/3.2: http: server gave HTTP response to HTTPS client
config.yaml
registry:
privateRegistry: "192.168.5.61:1080"
namespaceOverride: ""
registryMirrors: []
insecureRegistries: [192.168.5.61:1080]
auths: # if docker add by \`docker login\`, if containerd append to \`/etc/containerd/config.toml\`
"192.168.5.61:1080":
username: "admin"
password: "Harbor12345"
skipTLSVerify: false # Allow contacting registries over HTTPS with failed TLS verification.
plainHTTP: true # Allow contacting registries over HTTP.
addons: []
Alice
你的情况应该是需要配置k3s安装的containerd,因为安装k3s的话kk不会去装containerd。所以得参考rancher的文档来配置:https://docs.rancher.cn/docs/k3s/advanced/_index/#%E9%85%8D%E7%BD%AE-containerd
24sama
[plugins.opt]
path = "/var/lib/rancher/k3s/agent/containerd"
[plugins.cri]
stream_server_address = "127.0.0.1"
stream_server_port = "10010"
enable_selinux = false
sandbox_image = "192.168.5.61:1080/kubesphere/pause:3.2"
[plugins.cri.containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins.cri.registry.mirrors]
[plugins.cri.registry.mirrors."192.168.5.61:1080"]
endpoint = ["http://192.168.5.61:1080"]
[plugins.cri.registry.configs."192.168.5.61:1080".auth]
username = "admin"
password = "Harbor12345"
Alice 这个好像是version 1的配置方式,试试version 2呢
magitekbay 昨天试了上边的方法,crictl成功http了,ctr还是不行