{"id":93565,"date":"2020-04-09T06:11:45","date_gmt":"2020-04-08T22:11:45","guid":{"rendered":"http:\/\/4563.org\/?p=93565"},"modified":"2020-04-09T06:11:45","modified_gmt":"2020-04-08T22:11:45","slug":"%e9%83%a8%e7%bd%b2-k8s-%e6%9c%8d%e5%8a%a1%ef%bc%8c-flannel-pod-%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=93565","title":{"rendered":"\u90e8\u7f72 k8s \u670d\u52a1\uff0c flannel pod \u62a5\u9519"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u90e8\u7f72 k8s \u670d\u52a1\uff0c flannel pod \u62a5\u9519               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yang2x <\/span>  <span><i><\/i> 26<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5404\u4f4d\u4ed9\u53cb\uff0c\u81ea\u5df1\u5165\u624b\u4e09\u53f0\u963f\u91cc\u4e91\u7684\u670d\u52a1\u5668\uff0c\u90e8\u7f72 k8s \u96c6\u7fa4\uff0c\u4e3b\u8282\u70b9\u90fd ok\uff0c\u5728 work \u8282\u70b9 join \u540e\uff0c flannel \u4e00\u76f4\u4f1a\u88ab\u91cd\u542f\uff0c\u540e\u9762\u62a5\u9519\uff0c\u540e\u53f0\u65e5\u5fd7\u5982\u4e0b\uff1a<\/p>\n<p>Failed to create SubnetManager: error retrieving pod spec for &#8216;kube-system\/kube-flannel-ds-amd64-mkpfc&#8217;: Get https:\/\/10.96.0.1:443\/api\/v1\/namespaces\/kube-system\/pods\/kube-flannel-ds-amd64-mkpfc: dial tcp 10.96.0.1:443: i\/o timeout<\/p>\n<p>\u521d\u59cb\u5316\u547d\u4ee4\uff1a kubeadm init &#8211;pod-network-cidr=10.244.0.0\/16 &#8211;apiserver-advertise-address=172.17.xx.xx &#8211;kubernetes-version=v1.17.3 &#8211;ignore-preflight-errors=swap<\/p>\n<p>flannel \u6587\u4ef6\uff1a https:\/\/raw.githubusercontent.com\/coreos\/flannel\/master\/Documentation\/kube-flannel.yml<\/p>\n<p>\u7f51\u4e0a\u65b9\u6cd5\u90fd\u6709\u5c1d\u8bd5\uff0c\u6709\u8c01\u9047\u5230\u8fc7\uff0c\u5e2e\u5fd9\u770b\u4e0b\uff1b \u9632\u706b\u5899 \/swap \u5206\u533a \u90fd\u5df2\u786e\u8ba4\u5173\u95ed<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1152103\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rexyan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker images \u67e5\u770b\u4e0b\u6240\u9700\u5f97\u955c\u50cf\u90fd\u6709\u4e86\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1152104\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yang2x <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @rexyan <br \/>\u955c\u50cf\u90fd ok \u770b\u8d77\u6765\u62a5\u9519\u662f\u7f51\u7edc\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u90e8\u7f72 k8s \u670d\u52a1\uff0c flanne&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93565"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93565"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93565\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93565"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}