美文网首页
dial tcp: lookup raw.githubuserc

dial tcp: lookup raw.githubuserc

作者: wfaceboss | 来源:发表于2021-06-22 18:40 被阅读0次

    出现错误时的docker desktop版本为2.2.5 ,k8s版本为1.15.5
    ①执行
    kubectl apply -f https://raw.githubusercontent.com/fluxcd/flagger/main/artifacts/flagger/crd.yaml
    出现错误

    image.png

    Windows平台解决为:
    https://www.ipaddress.com
    查一下raw.githubusercontent.com的ipv4地址,比如现在结果如图:

    image.png

    此处选用185.199.110.133

    使用管理员权限打开C:/Windows/System32/hosts文件,添加一行


    image.png

    然后重新运行kubectl apply -f https://raw.githubusercontent.com/fluxcd/flagger/main/artifacts/flagger/crd.yaml指令,出现以下错误:

    unable to recognize "https://raw.githubusercontent.com/fluxcd/flagger/main/artifacts/flagger/crd.yaml": 
    no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1"
    

    问题是版本问题
    https://ask.csdn.net/questions/1319758?answer=3592057&spm=1005.2026.3001.5703

    image.png

    解决:我尝试去使用0.14.1还是出现了许多错误,因为我是选择更新docker desktop 版本信息如下:


    image.png

    结果为:


    image.png

    相关文章

      网友评论

          本文标题:dial tcp: lookup raw.githubuserc

          本文链接:https://www.haomeiwen.com/subject/lfnlyltx.html