{"id":578,"date":"2025-08-30T11:51:31","date_gmt":"2025-08-30T03:51:31","guid":{"rendered":"https:\/\/cococat.top\/?p=578"},"modified":"2025-08-30T11:51:31","modified_gmt":"2025-08-30T03:51:31","slug":"%e5%ae%b9%e5%99%a8%e7%bd%91%e7%bb%9c%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/cococat.top\/index.php\/2025\/08\/30\/%e5%ae%b9%e5%99%a8%e7%bd%91%e7%bb%9c%e7%ac%94%e8%ae%b0\/","title":{"rendered":"\u5bb9\u5668\u7f51\u7edc\u7b14\u8bb0"},"content":{"rendered":"<h1>1. \u6d89\u53ca\u5230\u7684\u865a\u62df\u7f51\u7edc\u8bbe\u5907<\/h1>\n<ul>\n<li>bridge\uff1a\u7f51\u6865\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u4ea4\u6362\u673a\u3002\u4e0d\u540c\u4e8e\u4f20\u7edf\u7684\u4e8c\u5c42\u786c\u4ef6\u4ea4\u6362\u673a\uff0cbridge \u53ef\u4ee5\u914d\u7f6e IP\u3001\u5177\u6709\u4e09\u5c42\u80fd\u529b\uff0c\u53ef\u4f5c\u4e3a\u7aef\u70b9 \u3001\u7f51\u5173\u3002<\/li>\n<li>veth\uff1a\u865a\u62df\u4ee5\u592a\u7f51\u8bbe\u5907\uff0c\u603b\u662f\u6210\u5bf9\u521b\u5efa\uff08\u6545\u4e5f\u79f0\u4e3a veth pair\uff09\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u865a\u62df\u7684\u7f51\u7ebf\u3002\u662f\u4ee5\u592a\u7f51\u8bbe\u5907\u5f62\u5f0f\u7684\u6570\u636e\u7ba1\u9053\uff0c\u4ece\u4e00\u7aef\u53d1\u9001\u7684\u6570\u636e\u4f1a\u7acb\u523b\u51fa\u73b0\u5728\u53e6\u4e00\u7aef\uff0c\u652f\u6301\u8de8 namespace \u3002\u4f5c\u4e3a\u8868\u9762\u4e0a\u7684\u865a\u62df\u7f51\u5361\uff0c\u81ea\u7136\u53ef\u4ee5\u914d\u7f6e IP\uff0c\u4e0d\u8fc7\u672c\u8d28\u4e0a\u8fd8\u662f\u7f51\u7ebf\u7684\u89d2\u8272\uff0c\u4e0d\u5177\u5907\u4e09\u5c42\u80fd\u529b\u3002<\/li>\n<\/ul>\n<p>\u5728\u5bb9\u5668\u7f51\u7edc\u573a\u666f\u4e0b\uff0c\u4e8c\u8005\u662f\u5b8c\u7f8e\u7684\u642d\u6863\uff0c\u901a\u5e38\u7ed3\u5408\u8d77\u6765\u4f7f\u7528\uff1a<\/p>\n<ul>\n<li>\u5bbf\u4e3b\u673a namespace \u521b\u5efa\u7f51\u6865\uff0c\u5206\u914d\u79c1\u7f51 IP \u5730\u5740\u4f5c\u4e3a\u7f51\u5173\uff0c\u652f\u6491\u6240\u6709\u5bb9\u5668\u7684\u5bf9\u5916\u7f51\u7edc\u8bbf\u95ee\uff1b<\/li>\n<li>\u6bcf\u4e2a\u5bb9\u5668\u90fd\u5206\u522b\u521b\u5efa\u4e00\u5bf9 veth pair\uff0c\u4e00\u7aef\u8fde\u63a5\u5728\u5bbf\u4e3b\u7f51\u6865\uff0c\u53e6\u4e00\u7aef\u4f5c\u4e3a\u5bb9\u5668 namespace \u5185\u7684\u9ed8\u8ba4\u4ee5\u592a\u7f51\u8bbe\u5907\u3002<\/li>\n<\/ul>\n<h1>2. K8s CNI \u7f51\u7edc\u6807\u51c6\uff1a<\/h1>\n<p>\u5b9e\u73b0\u6574\u4e2a K8s \u96c6\u7fa4\u4e2d\u6240\u6709 Pod \u7684\u901a\u4fe1\u3002\u5206\u4e24\u4e2a\u5c42\u7ea7\uff1a<\/p>\n<ul>\n<li>\u540c\u4e00 Node \u7684\u591a\u4e2a Pod \u4e4b\u95f4\u7684\u901a\u4fe1\uff1a\u4f9d\u9760\u5bbf\u4e3b\u673a\u7684 bridge &amp; veth pair \u5b9e\u73b0\u4e8c\u5c42\u8f6c\u53d1<\/li>\n<li>\u4e0d\u540c Node \u95f4\u7684 Pod \u901a\u4fe1\uff1a\u4f7f\u7528\u5bbf\u4e3b\u673a\u7684\u4e09\u5c42\u80fd\u529b\u8fdb\u884c\u4e3b\u673a\u95f4\u901a\u4fe1<\/li>\n<\/ul>\n<p>CNI \u63d2\u4ef6\uff1a\u5b9e\u73b0 CNI \u6807\u51c6\u7684\u8f6f\u4ef6\uff0c\u4e3b\u8981\u7684\u4efb\u52a1\u5c31\u662f\u521b\u5efa\u5404\u79cd\u865a\u62df\u7f51\u7edc\u8bbe\u5907\u5e76\u914d\u7f6e\u8def\u7531\u3002\u63a5\u5165 CRI runtime \u5e76\u88ab\u5176\u8c03\u7528\uff0c\u6240\u4ee5\u662f\u201c\u63d2\u4ef6\u201d\u3002<\/p>\n<h1>3. Flannel<\/h1>\n<p>\u6700\u77e5\u540d\u7684 CNI \u63d2\u4ef6\u4e4b\u4e00\uff0c\u8bbe\u8ba1\u601d\u60f3\u7b80\u660e\u76f4\u63a5\u3002\u5176\u7f51\u7edc\u6a21\u578b\u4e3a\u6240\u6709\u5bb9\u5668\u4f7f\u7528\u540c\u4e00\u4e2a network\uff0c\u6bcf\u4e2a node \u5206\u914d\u4e00\u4e2a\u5b50\u7f51\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u6d89\u53ca\u5230\u7684\u865a\u62df\u7f51\u7edc\u8bbe\u5907 bridge\uff1a\u7f51\u6865\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u4ea4\u6362\u673a\u3002\u4e0d\u540c\u4e8e\u4f20\u7edf\u7684\u4e8c\u5c42\u786c\u4ef6\u4ea4\u6362\u673a\uff0cbridge \u53ef [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,5,11],"tags":[39,18,20,31],"class_list":["post-578","post","type-post","status-publish","format-standard","hentry","category-cloud-native","category-linux","category-11","tag-cloud-native","tag-k8s","tag-linux","tag-31"],"_links":{"self":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":2,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":580,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts\/578\/revisions\/580"}],"wp:attachment":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}