Feynman johdan 参考这个试试,如果 Harbor 用 https ,则需要正式 CA 签发的证书,或者用 http: https://kubesphere.io/docs/installation/integrate-harbor/
johdan Feynman 我直接用docker都没问题,我也考虑直接用ip来配置密钥,但是不能搜索镜像文件,貌似harbor搜索镜像文件必须要用https的才可以。但我不知道要怎么做ip地址的https证书
qinweiwei Feynman 不是,我是在docker里配置了"insecure-registries": [“core.harbor.domain:31445″] ,然后使用docker login可以登陆,直接使用kubectl 配置秘钥可以,但是在页面上配置就不行
qinweiwei Feynman 已经配置了CA签发的证书了,使用docker login可以成功了,而且使用 kubectl -n cloud create secret docker-registry myregistrykey 也成功了,但是在kubesphere上创建镜像仓库的秘钥仍然会报错Get https://core.harbor.domain:31445/v2/: dial tcp: lookup core.harbor.domain on 169.254.25.10:53: no such host,貌似是dns的问题。
qinweiwei soulseen configmap nodelocaldns如何配置,也要配置hosts { 100.66.23.45 centos7-8c16g1 100.66.23.45 centos7-8c16g1.local fallthrough }这样的?
qinweiwei johdan 在coredns这个configmap中这样添加就可以了 hosts { 10.20.82.4 core.harbor.domain.cluster.local 10.20.82.4 harbor.cloud.cluster.local fallthrough } 注意在域名后边要添加.cluster.local