rancher发布流水线时域名解析错误的解决方法

这篇文章主要介绍了rancher发布流水线时域名解析错误的解决方法,具有一定借鉴价值,需要的朋友可以参考下。如下资料是关于解决报错的详细步骤。

Could not resolve host: jiuxi.gitlab.com

rancher发布流水线时域名解析错误的解决方法


2 问题解决

        定位 coredns configmap 所在 rancher 的项目,一般是 System:rancher发布流水线时域名解析错误的解决方法

        选中 coredns configmap,选择“升级”菜单:

rancher发布流水线时域名解析错误的解决方法

        添加自定义域名解析记录:

hosts {

   10.110.101.100 jiuxi.harbor.org jiuxi.gitlab.com jiuxi.nexus.com

   fallthrough

}

rancher发布流水线时域名解析错误的解决方法

        再选择“工作负载”:rancher发布流水线时域名解析错误的解决方法

        选择“coredns”:

rancher发布流水线时域名解析错误的解决方法        选中 coredns 的 pod,删除即可(coredns 控制器会自动重建):

rancher发布流水线时域名解析错误的解决方法

到此为止,rancher发布流水线时域名解析错误就完美解决了,如果还想学到更多技能或想了解更多相关内容,欢迎关注行业资讯频道。