Rancher配置deployment时,从私有服务harbor拉取镜像时提示证书问题

从私有仓库拉取镜像时,提示Failed to pull image “10.13.21.18:8443/micia/wujiangbo/wu:latest”: rpc error: code = Unknown desc = failed to pull and unpack image “10.13.21.18:8443/micia/wujiangbo/wu:latest”: failed to resolve reference “10.13.21.18:8443/micia/wujiangbo/wu:latest”: failed to do request: Head “https://10.13.21.18:8443/v2/micia/wujiangbo/wu/manifests/latest”: tls: failed to verify certificate: x509: cannot validate certificate for 10.13.21.18 because it doesn’t contain any IP SANs
各位大神这是什么原因啊

harbor是否开启了SSL,且导入了证书,在拉取镜像的时候需要验证证书合法性。且拉取镜像时使用IP地址, 会出现https双向验证时出现错误,可以在客户端主机做hosts映射尝试。