{"id":11802,"date":"2023-08-13T21:50:21","date_gmt":"2023-08-13T13:50:21","guid":{"rendered":"http:\/\/92it.top\/?p=11802"},"modified":"2023-08-21T21:51:02","modified_gmt":"2023-08-21T13:51:02","slug":"k8s%e6%b7%b1%e5%85%a5%e5%ad%a6%e4%b9%a0-k8s%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86%e4%b8%8e%e9%9b%86%e7%be%a4%e6%90%ad%e5%bb%ba","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=11802","title":{"rendered":"K8S\u6df1\u5165\u5b66\u4e60 K8S\u57fa\u7840\u77e5\u8bc6\u4e0e\u96c6\u7fa4\u642d\u5efa"},"content":{"rendered":"\n<p>\u8f6c\u8f7d\uff1a<a href=\"https:\/\/www.cnblogs.com\/edisonchou\/p\/aspnet_core_on_k8s_deepstudy_part1.html\">https:\/\/www.cnblogs.com\/edisonchou\/p\/aspnet_core_on_k8s_deepstudy_part1.html<\/a><\/p>\n\n\n\n<p>\u672c\u7bc7\u5df2\u52a0\u5165\u300a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.cnblogs.com\/edisonchou\/p\/aspnet_core_k8s_artcles_index.html\" target=\"_blank\">.NET Core on K8S\u5b66\u4e60\u5b9e\u8df5\u7cfb\u5217\u6587\u7ae0\u7d22\u5f15<\/a>\u300b\uff0c\u53ef\u4ee5\u70b9\u51fb\u67e5\u770b\u66f4\u591a\u5bb9\u5668\u5316\u6280\u672f\u76f8\u5173\u7cfb\u5217\u6587\u7ae0\u3002<\/p>\n\n\n\n<p>\u5728\u4e0a\u4e00\u4e2a\u5c0f\u7cfb\u5217\u6587\u7ae0\u300a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.cnblogs.com\/edisonchou\/p\/aspnet_core_on_k8s_firststudy_part1.html\" target=\"_blank\">ASP.NET Core on K8S\u5b66\u4e60\u521d\u63a2<\/a>\u300b\u4e2d\uff0c\u901a\u8fc7\u5728Windows\u4e0a\u901a\u8fc7Docker for Windows\u642d\u5efa\u4e86\u4e00\u4e2a\u5355\u8282\u70b9\u7684K8S\u73af\u5883\uff0c\u5e76\u521d\u6b65\u5c1d\u8bd5\u5c06ASP.NET Core WebAPI\u9879\u76ee\u90e8\u7f72\u5230\u4e86K8S\uff0c\u628a\u73a9\u4e86\u4e00\u4e0b\u5feb\u901f\u90e8\u7f72\u548c\u5b9e\u4f8b\u4f38\u7f29\u3002\u8fd9\u4e2a\u7cfb\u5217\u5f00\u59cb\uff0c\u4f1a\u7ee7\u7eed\u5b66\u4e60K8S\u4ee5\u53ca\u5728Linux\u4e0a\u642d\u5efa\u96c6\u7fa4\u6765\u6df1\u5165\u628a\u73a9\u3002\u672c\u7bc7\u4f1a\u56de\u987e\u4e00\u4e0bK8S\u7684\u57fa\u672c\u6982\u5ff5\u4ee5\u53ca\u67b6\u6784\u7ec4\u6210\uff0c\u7136\u540e\u4f1a\u901a\u8fc7Kubeadm\u5feb\u901f\u5730\u642d\u5efa\u4e00\u4e2aK8S\u96c6\u7fa4\u4f9b\u540e\u7eed\u5b66\u4e60\u628a\u73a9\u4e4b\u7528\u3002<\/p>\n\n\n\n<p><strong>\u4e00\u3001K8S\u57fa\u7840\u6982\u5ff5\u56de\u987e<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-110.png\" alt=\"\" class=\"wp-image-11803\" width=\"398\" height=\"109\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-110.png 644w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-110-300x82.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-110-230x63.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-110-350x96.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-110-480x131.png 480w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/figure><\/div>\n\n\n\n<p><strong>1.Cluster \u96c6\u7fa4<\/strong><\/p>\n\n\n\n<p>\u8ba1\u7b97\u3001\u5b58\u50a8\u548c\u7f51\u7edc\u8d44\u6e90\u7684\u96c6\u5408\uff0cKubernetes\u5229\u7528\u8fd9\u4e9b\u8d44\u6e90\u8fd0\u884c\u5404\u79cd\u57fa\u4e8e\u5bb9\u5668\u7684\u5e94\u7528\u3002<\/p>\n\n\n\n<p><strong>2.Master<\/strong><\/p>\n\n\n\n<p>Master\u662fCluster\u7684\u5927\u8111\uff0c\u8d1f\u8d23\u8c03\u5ea6\uff08\u51b3\u5b9a\u5c06\u5e94\u7528\u653e\u5728\u54ea\u91cc\u8fd0\u884c\uff09\uff0c\u4e00\u822c\u4e3a\u4e86\u5b9e\u73b0\u9ad8\u53ef\u7528\uff0c\u4f1a\u6709\u591a\u4e2aMaster\u3002<\/p>\n\n\n\n<p><strong>3.Node<\/strong><\/p>\n\n\n\n<p>\u8d1f\u8d23\u8fd0\u884c\u5177\u4f53\u7684\u5bb9\u5668\uff0cNode\u7531Master\u7ba1\u7406\uff0c\u5b83\u4f1a\u76d1\u63a7\u5e76\u6c47\u62a5\u5bb9\u5668\u7684\u72b6\u6001\uff0c\u540c\u65f6\u6839\u636eMaster\u7684\u8981\u6c42\u7ba1\u7406\u5bb9\u5668\u7684\u751f\u547d\u5468\u671f\u3002 eg. \u5728\u4ea4\u4e92\u5b9e\u9a8c\u4e2d\uff0c\u8fd9\u4e2aCluster\u4e2d\u53ea\u6709\u4e00\u4e2a\u4e3b\u673a\uff0c\u5b83\u65e2\u662fMaster\u4e5f\u662fNode\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-1024x705.png\" alt=\"\" class=\"wp-image-11805\" width=\"476\" height=\"328\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-1024x705.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-300x207.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-768x529.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-830x572.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-230x158.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-350x241.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112-480x331.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-112.png 1048w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/figure><\/div>\n\n\n\n<p><strong>4.Pod<\/strong><\/p>\n\n\n\n<p>Kubernetes\u7684\u6700\u5c0f\u5de5\u4f5c\u5355\u5143\uff0c\u6bcf\u4e2aPod\u5305\u542b\u4e00\u4e2a\u6216\u591a\u4e2a\u5bb9\u5668\u3002Pod\u4e2d\u7684\u5bb9\u5668\u4f1a\u88ab\u4f5c\u4e3a\u4e00\u4e2a\u6574\u4f53\u88abMaster\u8c03\u5ea6\u5230\u4e00\u4e2aNode\u4e0a\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>\uff081\uff09\u4e3a\u4f55\u5f15\u5165Pod\uff1f<\/p>\n\n\n\n<p>\u4e00\u662f\u65b9\u4fbf\u7ba1\u7406\uff1a<\/p>\n\n\n\n<p>\u6709\u4e9b\u5bb9\u5668\u5929\u751f\u8054\u7cfb\u7d27\u5bc6\uff0c\u9700\u8981\u5728\u4e00\u8d77\u5de5\u4f5c\u3002Pod\u63d0\u4f9b\u4e86\u6bd4\u5bb9\u5668\u66f4\u9ad8\u5c42\u6b21\u7684\u62bd\u8c61\uff0c\u5c06\u5b83\u4eec\u5c01\u88c5\u5230\u4e00\u4e2a\u90e8\u7f72\u5355\u5143\u4e2d\u3002K8S\u4ee5Pod\u4e3a\u6700\u5c0f\u5355\u4f4d\u8fdb\u884c\u8c03\u5ea6\u3001\u6269\u5c55\u3001\u5171\u4eab\u8d44\u6e90\u3001\u7ba1\u7406\u751f\u547d\u5468\u671f\u3002<\/p>\n\n\n\n<p>eg.\u6b63\u4f8b\uff1aFile Puller &amp; Web Server =&gt; \u9700\u8981\u90e8\u7f72\u5728\u4e00\u8d77\u5de5\u4f5c<\/p>\n\n\n\n<p>     \u53cd\u4f8b\uff1aTomecat &amp; MySQL =&gt; \u4e0d\u9700\u8981\u90e8\u7f72\u5728\u4e00\u8d77\u5de5\u4f5c<\/p>\n\n\n\n<p>\u4e8c\u662f\u53ef\u4ee5\u5171\u4eab\u8d44\u6e90\u548c\u901a\u4fe1\uff1a<\/p>\n\n\n\n<p>Pod\u4e2d\u6240\u6709\u5bb9\u5668\u4f7f\u7528\u540c\u4e00\u4e2a\u7f51\u7edcnamespace\uff0c\u5373\u76f8\u540c\u7684IP\u548c\u7aef\u53e3\u7a7a\u95f4\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528localhost\u901a\u4fe1\uff0c\u800c\u4e14\u8fd8\u53ef\u4ee5\u5171\u4eab\u5b58\u50a8\uff08\u672c\u8d28\u662f\u901a\u8fc7\u5c06Volume\u6302\u8f7d\u5230Pod\u4e2d\u7684\u6bcf\u4e2a\u5bb9\u5668\uff09<\/p>\n\n\n\n<p>\uff082\uff09\u5982\u4f55\u4f7f\u7528Pod\uff1f<\/p>\n\n\n\n<p>\u8fd0\u884c\u5355\u4e2a\u5bb9\u5668\uff1aone-container-per-Pod\uff0cK8S\u4e2d\u6700\u5e38\u89c1\u7684\u6a21\u578b\uff0c\u5373\u4f7f\u8fd9\u79cd\u60c5\u5f62\u4e0b\uff0cK8S\u7ba1\u7406\u7684\u4e5f\u662fPod\u800c\u4e0d\u662f\u5355\u4e2a\u5bb9\u5668\u3002\u8fd0\u884c\u591a\u4e2a\u5bb9\u5668\uff1a\u5c06\u8054\u7cfb\u975e\u5e38\u7d27\u5bc6\u7684\u591a\u4e2a\u5bb9\u5668\u90e8\u7f72\u5230\u4e00\u4e2aPod\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u5171\u4eab\u8d44\u6e90\u3002<\/p>\n\n\n\n<p><strong>5.Controller<\/strong><\/p>\n\n\n\n<p>K8S\u4e0d\u4f1a\u76f4\u63a5\u521b\u5efaPod\uff0c\u662f\u901a\u8fc7Controller\u6765\u7ba1\u7406Pod\u7684\u3002\u4e3a\u4e86\u6ee1\u8db3\u4e0d\u540c\u4e1a\u52a1\u573a\u666f\uff0cK8S\u63d0\u4f9b\u4e86\u591a\u79cdController\uff1a \u3000\u3000\uff081\uff09Deployment \u3000\u3000<\/p>\n\n\n\n<p>\u6700\u5e38\u89c1\u7684Controller\uff0c\u53ef\u4ee5\u7ba1\u7406Pod\u7684\u591a\u4e2a\u526f\u672c\uff0c\u5e76\u786e\u4fddPod\u6309\u7167\u671f\u671b\u7684\u72b6\u6001\u8fd0\u884c\u3002 \u3000\u3000<\/p>\n\n\n\n<p>\uff082\uff09ReplicaSet \u3000\u3000<\/p>\n\n\n\n<p>\u5b9e\u73b0\u4e86Pod\u7684\u591a\u526f\u672c\u7ba1\u7406\uff0c\u4f7f\u7528Deployment\u65f6\u4f1a\u81ea\u52a8\u521b\u5efaReplicaSet\u3002\u6362\u53e5\u8bdd\u8bf4\uff0cDeployment\u662f\u901a\u8fc7ReplicaSet\u6765\u7ba1\u7406Pod\u7684\u591a\u4e2a\u526f\u672c\u7684\uff0c\u901a\u5e38\u4e0d\u9700\u8981\u76f4\u63a5\u4f7f\u7528ReplicaSet\u3002 \u3000\u3000\uff08<\/p>\n\n\n\n<p>3\uff09DaemonSet \u3000\u3000<\/p>\n\n\n\n<p>\u7528\u4e8e\u6bcf\u4e2aNode\u6700\u591a\u53ea\u8fd0\u884c\u4e00\u4e2aPod\u526f\u672c\u7684\u573a\u666f\uff0cDaemonSet\u901a\u5e38\u7528\u4e8e\u8fd0\u884cdaemon\uff08\u5b88\u62a4\u8fdb\u7a0b\u3001\u540e\u53f0\u7a0b\u5e8f\uff09\u3002 \u3000\u3000\uff084\uff09StatefuleSet \u3000<\/p>\n\n\n\n<p>\u3000\u7528\u4e8e\u4fdd\u8bc1Pod\u7684\u6bcf\u4e2a\u526f\u672c\u5728\u6574\u4e2a\u751f\u547d\u5468\u671f\u4e2d\u540d\u79f0\u662f\u4e0d\u53d8\u7684\uff0c\u800c\u5176\u4ed6\u7684Controller\u4e0d\u63d0\u4f9b\u8fd9\u4e2a\u529f\u80fd\u3002\uff08\u975eStatefuleSet\u4e0b\uff0c\u5f53\u67d0\u4e2aPod\u53d1\u751f\u6545\u969c\u9700\u8981\u5220\u9664\u5e76\u91cd\u542f\u65f6\uff0cPod\u7684\u540d\u79f0\u662f\u4f1a\u53d8\u5316\u7684\uff09 \u3000\u3000<\/p>\n\n\n\n<p>\uff085\uff09Job \u3000\u3000<\/p>\n\n\n\n<p>\u7528\u4e8e\u8fd0\u884c\u7ed3\u675f\u5c31\u5220\u9664\u7684\u5e94\u7528\uff0c\u5176\u4ed6Controller\u4e0bPod\u901a\u5e38\u662f\u957f\u671f\u6301\u7eed\u8fd0\u884c\u7684\u3002<\/p>\n\n\n\n<p><strong>6.Service<\/strong><\/p>\n\n\n\n<p>K8S\u5b9a\u4e49\u4e86\u5916\u754c\u8bbf\u95ee\u4e00\u4e2a\u6216\u4e00\u7ec4\u7279\u5b9aPod\u7684\u65b9\u5f0f\uff0c\u5c31\u662fService\u3002\u6bcf\u4e2aService\u6709\u81ea\u5df1\u7684IP\u548c\u7aef\u53e3\uff0c\u5e76\u4e14\u4e3aPod\u63d0\u4f9b\u4e86\u8d1f\u8f7d\u5747\u8861\u3002\u5982\u679c\u8bf4K8S\u8fd0\u884cPod\u7684\u4efb\u52a1\u662f\u4ea4\u7ed9\u4e86Controller\u53bb\u505a\uff0c\u90a3\u4e48\u8bbf\u95eePod\u7684\u4efb\u52a1\u5219\u662f\u4ea4\u7ed9\u4e86Service\u53bb\u505a\u3002<\/p>\n\n\n\n<p><strong>7.Namespace<\/strong><\/p>\n\n\n\n<p>Namespace\u5c06\u4e00\u4e2a\u7269\u7406\u7684Cluster\u4ece\u903b\u8f91\u4e0a\u5212\u5206\u4e3a\u591a\u4e2a\u865a\u62dfCluster\uff0c\u6bcf\u4e2a\u865a\u62dfCluster\u5c31\u662f\u4e00\u4e2aNamespace\uff0c\u4e0d\u540cNamespace\u4e2d\u7684\u8d44\u6e90\u662f\u5b8c\u5168\u9694\u79bb\u7684\u3002 <\/p>\n\n\n\n<p>K8S\u4e2d\u4f1a\u81ea\u52a8\u521b\u5efa\u4e24\u4e2aNamespace\uff1a \u3000\u3000<\/p>\n\n\n\n<p>\uff081\uff09default\uff1a\u521b\u5efa\u8d44\u6e90\u65f6\u5982\u679c\u4e0d\u6307\u5b9aNamespace\u5c31\u4f1a\u653e\u5230\u8fd9\u91cc \u3000<\/p>\n\n\n\n<p>\uff082\uff09kube-system: K8S\u81ea\u5df1\u521b\u5efa\u7684\u7cfb\u7edf\u8d44\u6e90\u90fd\u4f1a\u653e\u5230\u8fd9\u4e2aNamespace\u4e2d<\/p>\n\n\n\n<p><strong>\u4e8c\u3001K8S\u96c6\u7fa4\u67b6\u6784\u89e3\u6790<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4e0b\u9762\u5c55\u793a\u4e86\u4e00\u4e2a\u6700\u5c0f\u5316\u7684K8S\u96c6\u7fa4\uff0c\u4e00\u4e2amaster\u8282\u70b9\u548c\u4e24\u4e2anode\u8282\u70b9\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-1024x804.png\" alt=\"\" class=\"wp-image-11810\" width=\"508\" height=\"398\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-1024x804.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-300x236.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-768x603.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-830x652.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-230x181.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-350x275.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113-480x377.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-113.png 1416w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><figcaption><strong>*.<\/strong>master\u4e0a\u4e5f\u6709kubelet\u548ckube-proxy\u662f\u56e0\u4e3amaster\u540c\u65f6\u4e5f\u662f\u4e00\u4e2aNode<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>1.Master\u8282\u70b9<\/strong><\/p>\n\n\n\n<p>K8S\u96c6\u7fa4\u7684\u201c<strong>\u5927\u8111<\/strong>\u201d\uff0c\u8fd0\u884c\u4ee5\u4e0b\u591a\u4e2aDaemon\u670d\u52a1\uff1a<\/p>\n\n\n\n<ul><li>API Server\uff08kube-apiserver\uff09<ul><li>\u63d0\u4f9bRestful API =&gt; Kubernetes API\uff0c\u4f9b\u5176\u4ed6\u7ec4\u4ef6\u8c03\u7528\u4ee5\u7ba1\u7406Cluster\u7684\u5404\u79cd\u8d44\u6e90<\/li><\/ul><\/li><li>Scheduler\uff08kube-scheduler\uff09<ul><li>\u8d1f\u8d23\u51b3\u5b9a\u5c06Pod\u653e\u5728\u54ea\u4e2aNode\u4e0aRun\u8d77\u6765<\/li><li>\u8c03\u5ea6\u65f6\u4f1a\u6839\u636e\u6307\u5b9a\u7b97\u6cd5\u9009\u62e9Pod\uff08eg.\u96c6\u7fa4\u62d3\u6251\u7ed3\u6784\u3001\u5404\u8282\u70b9\u8d1f\u8f7d\u60c5\u51b5\u3001HA\u7b49\u7b49\uff09<\/li><\/ul><\/li><li>Controller Manager\uff08kube-controller-manager\uff09<ul><li>\u8d1f\u8d23\u7ba1\u7406\u96c6\u7fa4\u4e2d\u7684\u5404\u79cd\u8d44\u6e90\uff0c\u4fdd\u8bc1\u8d44\u6e90\u5904\u4e8e\u9884\u671f\u7684\u72b6\u6001<\/li><li>\u7531\u591a\u79cdController\u7ec4\u6210<ul><li>Replication Controller\uff1a\u7ba1\u7406Deployment\u3001StatefuleSet\u3001DaemonSet\u7684\u751f\u547d\u5468\u671f<\/li><li>Endpoints Controller<\/li><li>Namespace Controller\uff1a\u7ba1\u7406Namespace\u8d44\u6e90<\/li><li>Serviceaccounts Controller<\/li><\/ul><\/li><\/ul><\/li><li>Etcd<ul><li>\u8d1f\u8d23\u4fdd\u5b58K8S\u96c6\u7fa4\u4e2d\u7684\u914d\u7f6e\u4fe1\u606f\u548c\u5404\u79cd\u8d44\u6e90\u7684\u72b6\u6001\u4fe1\u606f<\/li><li>\u5f53\u6570\u636e\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u4f1a\u53ca\u65f6\u901a\u77e5K8S\u76f8\u5173\u7ec4\u4ef6<\/li><\/ul><\/li><li>Pod\u7f51\u7edc<ul><li>\u4fdd\u8bc1Pod\u80fd\u591f\u76f8\u4e92\u901a\u4fe1\uff0cFlannel\u662f\u4e00\u4e2a\u53ef\u9009\u65b9\u6848<\/li><\/ul><\/li><\/ul>\n\n\n\n<p><strong>2.Node\u8282\u70b9<\/strong><\/p>\n\n\n\n<p>\u8fd0\u884cPod\u7684\u4e3b\u6218\u573a\uff0c\u4e3b\u8981\u8fd0\u884c\u4ee5\u4e0bK8S\u7ec4\u4ef6\uff1a<\/p>\n\n\n\n<ul><li>kubelet<ul><li>Node\u7684Agent\uff0c\u8d1f\u8d23\u521b\u5efa\u8fd0\u884c\u5bb9\u5668\u4e0e\u5411Master\u62a5\u544a\u8fd0\u884c\u72b6\u6001<\/li><\/ul><\/li><li>kube-proxy<ul><li>\u6bcf\u4e2aNode\u90fd\u4f1a\u8fd0\u884cproxy\uff0c\u5b83\u8d1f\u8d23\u8bf7\u6c42\u8f6c\u53d1\u5230\u540e\u7aef\u7684\u5bb9\u5668<\/li><\/ul><\/li><li>Pod\u7f51\u7edc<ul><li>\u4fdd\u8bc1Pod\u80fd\u591f\u76f8\u4e92\u901a\u4fe1\uff0cFlannel\u662f\u4e00\u4e2a\u53ef\u9009\u65b9\u6848<\/li><\/ul><\/li><\/ul>\n\n\n\n<p><strong>\u4e09\u3001K8S\u96c6\u7fa4\u73af\u5883\u642d\u5efa<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>3.1 K8S\u73af\u5883\u642d\u5efa\u7684\u51e0\u79cd\u65b9\u5f0f<\/strong><\/p>\n\n\n\n<p>\u642d\u5efaK8S\u73af\u5883\u6709\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\uff081\uff09Minikube<\/p>\n\n\n\n<p>Minikube\u662f\u4e00\u4e2a\u5de5\u5177\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u5feb\u901f\u8fd0\u884c\u4e00\u4e2a\u5355\u70b9\u7684K8S\uff0c\u4f9b\u521d\u6b65\u5c1d\u8bd5K8S\u6216\u65e5\u5e38\u5f00\u53d1\u7684\u7528\u6237\u4f7f\u7528\uff0c\u4e0d\u80fd\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u3002<\/p>\n\n\n\n<p>\uff082\uff09Kubeadm<\/p>\n\n\n\n<p>Kubeadm\u662fK8S\u5b98\u65b9\u793e\u533a\u63a8\u51fa\u7684\u4e00\u5957\u7528\u4e8e\u7b80\u5316\u5feb\u901f\u90e8\u7f72K8S\u96c6\u7fa4\u7684\u5de5\u5177\uff0cKubeadm\u7684\u8bbe\u8ba1\u76ee\u7684\u662f\u4e3a\u65b0\u7528\u6237\u5f00\u59cb\u5c1d\u8bd5K8S\u63d0\u4f9b\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>\uff083\uff09\u4e8c\u8fdb\u5236\u5305<\/p>\n\n\n\n<p>\u9664\u4e86\u4ee5\u4e0a\u4e24\u79cd\u65b9\u5f0f\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u4ece\u5b98\u65b9\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u5305\uff0c\u624b\u52a8\u90e8\u7f72\u6bcf\u4e2a\u7ec4\u4ef6\u7ec4\u6210K8S\u96c6\u7fa4\uff0c\u8fd9\u4e5f\u662f\u76ee\u524d\u4f01\u4e1a\u751f\u4ea7\u73af\u5883\u4e2d\u5e7f\u4e3a\u4f7f\u7528\u7684\u65b9\u5f0f\uff0c\u4f46\u5bf9K8S\u7ba1\u7406\u4eba\u5458\u7684\u8981\u6c42\u8f83\u9ad8\u3002<\/p>\n\n\n\n<p>\u672c\u6b21\u5b66\u4e60\u5b9e\u8df5\u6211\u4eec\u4e3b\u8981\u501f\u52a9<strong>Kubeadm<\/strong>\u5de5\u5177\u642d\u5efaK8S\u96c6\u7fa4\uff0c\u4ee5\u4fbf\u540e\u7eed\u5b9e\u8df5\u90e8\u7f72ASP.NET Core\u5e94\u7528\u96c6\u7fa4\u3002<\/p>\n\n\n\n<p><strong>3.2 \u642d\u5efa\u524d\u7684\u51c6\u5907\u5de5\u4f5c<\/strong><\/p>\n\n\n\n<p>\uff081\uff09\u51c6\u5907\u4e09\u53f0Linux\u670d\u52a1\u5668<\/p>\n\n\n\n<p>\u8fd9\u91cc\u6211\u9009\u62e9\u901a\u8fc7VMware Workstaion\u6765\u642d\u5efa3\u4e2a\u865a\u62df\u673a\uff0c\u6bcf\u4e2a\u914d\u7f6e2CPU\u548c2G\u5185\u5b58\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-114.png\" alt=\"\" class=\"wp-image-11811\" width=\"331\" height=\"196\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-114.png 578w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-114-300x178.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-114-230x136.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-114-350x207.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-114-480x284.png 480w\" sizes=\"(max-width: 331px) 100vw, 331px\" \/><\/figure><\/div>\n\n\n\n<p>\uff082\uff09\u914d\u7f6e\u4e3b\u673a\u540d\u4e0e\u9759\u6001IP\u5730\u5740\u5982\u4e0b\u8868\u6240\u793a\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-115.png\" alt=\"\" class=\"wp-image-11812\" width=\"337\" height=\"192\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-115.png 648w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-115-300x171.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-115-230x131.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-115-350x200.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-115-480x274.png 480w\" sizes=\"(max-width: 337px) 100vw, 337px\" \/><\/figure><\/div>\n\n\n\n<p>\u7136\u540e\uff0c\u66f4\u6539hosts\u6587\u4ef6\u6dfb\u52a0\u4e3b\u673a\u540d\u4e0eIP\u6620\u5c04\u5173\u7cfb<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># vim \/etc\/hosts\n192.168.2.100 k8s-master\n192.168.2.101 k8s-node1\n192.168.2.102 k8s-node2<\/pre>\n\n\n\n<p>\uff083\uff09\u5173\u95ed\u9632\u706b\u5899<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl stop firewalld\nsystemctl disable firewalld<\/pre>\n\n\n\n<p>\uff084\uff09\u5173\u95edselinux<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sed -i 's\/enforcing\/disabled\/' \/etc\/selinux\/config\nsetenforce 0<\/pre>\n\n\n\n<p>\uff085\uff09\u5173\u95edswap =&gt; K8S\u4e2d\u4e0d\u652f\u6301swap\u5206\u533a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># vim \/etc\/fstab\n#\/dev\/mapper\/centos-swap swap                    swap    defaults        0 0<\/pre>\n\n\n\n<p><strong>*.<\/strong>\u7f16\u8f91etc\/fstab\u5c06swap\u90a3\u4e00\u884c\u6ce8\u91ca\u6389\u6216\u8005\u5220\u9664\u6389<\/p>\n\n\n\n<p>\uff086\uff09\u5c06\u6865\u63a5\u7684IPv4\u6d41\u91cf\u4f20\u9012\u5230iptables\u7684\u94fe<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># cat > \/etc\/sysctl.d\/k8s.conf &lt;&lt; EOF\n   net.bridge.bridge-nf-call-ip6tables = 1\n   net.bridge.bridge-nf-call-iptables = 1\n   EOF\n\n# sysctl --system<\/pre>\n\n\n\n<p><strong>3.3 \u5b89\u88c5Docker&amp;Kubeadm&amp;Kubelet<\/strong><\/p>\n\n\n\n<p>\u4ee5\u4e0b\u6b65\u9aa4\u8bf7\u5728\u6240\u6709\u8282\u70b9\u4e2d<strong>\u90fd<\/strong>\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<p>\uff081\uff09\u5b89\u88c5Docker<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># wget https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo -O\n\/etc\/yum.repos.d\/docker-ce.repo\n# yum -y install docker-ce-18.06.1.ce-3.el7\n# systemctl enable docker &amp;&amp; systemctl start docker\n# docker --version\nDocker version 18.06.1-ce, build e68fc7a<\/pre>\n\n\n\n<p><strong>*.<\/strong>\u8fd9\u91cc\u5b89\u88c5\u7684\u662f18.06\u793e\u533a\u7248\uff0c\u5982\u679c\u4f60\u4e4b\u524d\u6709\u5b89\u88c5\u4f4e\u7248\u672c\u7684Docker\uff0c\u4e3a\u4e86\u914d\u5408\u672c\u6b21\u5b9e\u9a8c\u7684K8S\u7248\u672c\uff081.13.x\uff09\uff0c\u5efa\u8bae\u5148\u5378\u8f7d\u6389\uff0c\u5378\u8f7d\u8fc7\u7a0b\u53ef\u4ee5\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0\u300a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.cnblogs.com\/lonelyxmas\/p\/10430207.html\" target=\"_blank\">CentOS7 Docker\u5347\u7ea7<\/a>\u300b\u3002<\/p>\n\n\n\n<p>\uff082\uff09\u6dfb\u52a0\u963f\u91cc\u4e91Yum\u8f6f\u4ef6\u6e90<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># cat > \/etc\/yum.repos.d\/kubernetes.repo &lt;&lt; EOF\n[kubernetes]\nname=Kubernetes\nbaseurl=https:\/\/mirrors.aliyun.com\/kubernetes\/yum\/repos\/kubernetes-el7-x86_64\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https:\/\/mirrors.aliyun.com\/kubernetes\/yum\/doc\/yum-key.gpg\nhttps:\/\/mirrors.aliyun.com\/kubernetes\/yum\/doc\/rpm-package-key.gpg\nEOF<\/pre>\n\n\n\n<p>\uff083\uff09\u5b89\u88c5Kubeadm&amp;Kubelet&amp;Kubectl<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u672c\u6b21\u90e8\u7f72K8S\u7248\u672c\u53f7\u4e3a1.13.3<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># yum install -y kubelet-1.13.3 kubeadm-1.13.3 kubectl-1.13.3\n# systemctl enable kubelet<\/pre>\n\n\n\n<p>\u9047\u5230\u7684\u4e00\u4e9b\u5751\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\u2460 \u78b0\u5230\u9700\u8981kubernetes-cni\u7684\u95ee\u9898\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#####\u9519\u8bef\uff1a\u8f6f\u4ef6\u5305\uff1akubelet-1.13.3-0.x86_64 (kubernetes)\n\u9700\u8981\uff1akubernetes-cni = 0.6.0\n\u53ef\u7528: kubernetes-cni-0.3.0.1-0.07a8a2.x86_64 (kubernetes)\nkubernetes-cni = 0.3.0.1-0.07a8a2\n\u53ef\u7528: kubernetes-cni-0.5.1-0.x86_64 (kubernetes)\nkubernetes-cni = 0.5.1-0\n\u53ef\u7528: kubernetes-cni-0.5.1-1.x86_64 (kubernetes)\nkubernetes-cni = 0.5.1-1\n\u53ef\u7528: kubernetes-cni-0.6.0-0.x86_64 (kubernetes)\nkubernetes-cni = 0.6.0-0\n\u6b63\u5728\u5b89\u88c5: kubernetes-cni-0.7.5-0.x86_64 (kubernetes)\nkubernetes-cni = 0.7.5-0\n\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u6dfb\u52a0 --skip-broken \u9009\u9879\u6765\u89e3\u51b3\u8be5\u95ee\u9898\n\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u6267\u884c\uff1arpm -Va --nofiles --nodigest<\/pre>\n\n\n\n<p><em><strong>\u89e3\u51b3\uff1a<\/strong><\/em>\u624b\u52a8\u5b89\u88c5kubernetes-cni\u5bf9\u5e94\u7684\u7248\u672c<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install -y kubelet-1.13.3 kubeadm-1.13.3 kubectl-1.13.3 kubernetes-cni-0.6.0 <\/pre>\n\n\n\n<p>\u2461 \u4f7f\u7528yum\u5b89\u88c5\u7a0b\u5e8f\u65f6\uff0c\u63d0\u793axxx.rpm\u516c\u94a5\u5c1a\u672a\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\u4ece https:\/\/mirrors.aliyun.com\/kubernetes\/yum\/doc\/yum-key.gpg \u68c0\u7d22\u5bc6\u94a5\n\u5bfc\u5165 GPG key 0xA7317B0F:\n \u7528\u6237ID     : \"Google Cloud Packages Automatic Signing Key &lt;gc-team@google.com>\"\n \u6307\u7eb9       : d0bc 747f d8ca f711 7500 d6fa 3746 c208 a731 7b0f\n \u6765\u81ea       : https:\/\/mirrors.aliyun.com\/kubernetes\/yum\/doc\/yum-key.gpg\n\ne3438a5f740b3a907758799c3be2512a4b5c64dbe30352b2428788775c6b359e-kubectl-1.13.3-0.x86_64.rpm \u7684\u516c\u94a5\u5c1a\u672a\u5b89\u88c5\n\n \u5931\u8d25\u7684\u8f6f\u4ef6\u5305\u662f\uff1akubectl-1.13.3-0.x86_64\n GPG  \u5bc6\u94a5\u914d\u7f6e\u4e3a\uff1ahttps:\/\/mirrors.aliyun.com\/kubernetes\/yum\/doc\/yum-key.gpg<\/pre>\n\n\n\n<p><em><strong>\u89e3\u51b3\uff1a<\/strong><\/em>\u4f7f\u7528 yum install xxx.rpm &#8211;nogpgcheck&nbsp;\u547d\u4ee4\u683c\u5f0f\u8df3\u8fc7\u516c\u94a5\u68c0\u67e5\uff0c\u6bd4\u5982\u8df3\u8fc7kubectl\u548ckubeadm\u7684\u516c\u94a5\u68c0\u67e5\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install kubectl-1.13.3-0.x86_64 --nogpgcheck\nyum install kubeadm-1.13.3-0.x86_64 --nogpgcheck<\/pre>\n\n\n\n<p><strong>3.4 \u90e8\u7f72Kubernetes Master<\/strong><\/p>\n\n\n\n<p>\u4ee5\u4e0b\u6b65\u9aa4\u8bf7\u5728k8s-master\u8282\u70b9\u4e0a\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kubeadm init \\\n--apiserver-advertise-address=192.168.2.100 \\\n--image-repository registry.aliyuncs.com\/google_containers \\\n--kubernetes-version v1.13.3 \\\n--service-cidr=10.1.0.0\/16 \\\n--pod-network-cidr=10.244.0.0\/16<\/pre>\n\n\n\n<p><em><strong>PS\uff1a<\/strong><\/em>\u7531\u4e8e\u9ed8\u8ba4\u62c9\u53d6\u955c\u50cf\u5730\u5740k8s.gcr.io\u56fd\u5185\u65e0\u6cd5\u8bbf\u95ee\uff0c\u8fd9\u91cc\u6307\u5b9a\u963f\u91cc\u4e91\u955c\u50cf\u4ed3\u5e93\u5730\u5740\uff08registry.aliyuncs.com\/google_containers\uff09\u3002\u5b98\u65b9\u5efa\u8bae\u670d\u52a1\u5668\u81f3\u5c112CPU+2G\u5185\u5b58\uff0c\u5f53\u7136\u5185\u5b581G\u4e5f\u662f\u53ef\u4ee5\u7684\uff0c\u4f46\u662f\u4f1a\u51faWarning\uff0c\u5efa\u8bae\u8fd8\u662f\u8001\u8001\u5b9e\u5b9e\u53472G\u5185\u5b58\u628a\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-1024x330.png\" alt=\"\" class=\"wp-image-11813\" width=\"520\" height=\"167\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-1024x330.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-300x97.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-768x247.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-830x267.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-230x74.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-350x113.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116-480x155.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-116.png 1384w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><\/figure><\/div>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u4e3a\u4e86\u987a\u5229\u4f7f\u7528kubectl\u547d\u4ee4\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir -p $HOME\/.kube\nsudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\nsudo chown $(id -u):$(id -g) $HOME\/.kube\/config\n# kubectl get nodes\n<\/pre>\n\n\n\n<p>\u8fd9\u65f6\u4f60\u53ef\u4ee5\u4f7f\u7528kubectl\u4e86\uff0c\u5f53\u4f60\u6267\u884c\u5b8ckubectl get nodes\u4e4b\u540e\uff0c\u4f60\u4f1a\u770b\u5230\u5982\u4e0b\u72b6\u6001\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-1024x163.png\" alt=\"\" class=\"wp-image-11814\" width=\"582\" height=\"92\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-1024x163.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-300x48.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-768x122.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-830x132.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-230x37.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-350x56.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117-480x76.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-117.png 1046w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/figure><\/div>\n\n\n\n<p><strong>3.5 \u90e8\u7f72Pod\u7f51\u7edc\u63d2\u4ef6\uff08CNI\uff09<\/strong><\/p>\n\n\n\n<p>\u540c\u6837\uff0c\u7ee7\u7eed\u5728k8s-master\u4e0a\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kubectl apply -f \\\nhttps:\/\/raw.githubusercontent.com\/coreos\/flannel\/a70459be0084506e4ec919aa1c114638878db11b\/Documentation\/kube-flanne<\/pre>\n\n\n\n<p>\u7136\u540e\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\uff1a\u5168\u90e8\u4e3aRunning\u5219OK\uff0c\u5176\u4e2d\u4e00\u4e2a\u4e0d\u4e3aRunning\uff0c\u6bd4\u5982\uff1aPending\u3001ImagePullBackOff\u90fd\u8868\u660ePod\u6ca1\u6709\u5c31\u7eea<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-1024x321.png\" alt=\"\" class=\"wp-image-11815\" width=\"499\" height=\"156\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-1024x321.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-300x94.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-768x241.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-830x261.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-230x72.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-350x110.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118-480x151.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-118.png 1064w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/figure><\/div>\n\n\n\n<p>\u5982\u679c\u5176\u4e2d\u6709\u7684Pod\u6ca1\u6709Running\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u5177\u4f53\u9519\u8bef\u539f\u56e0\uff0c\u6bd4\u5982\u8fd9\u91cc\u6211\u60f3\u67e5\u770bkube-flannel-ds-amd64-8bmbm\u8fd9\u4e2apod\u7684\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kubectl describe pod kube-flannel-ds-amd64-8bmbm -n kube-system<\/pre>\n\n\n\n<p>\u5728\u6b64\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u65e0\u6cd5\u4ecequry.io\u62c9\u53d6flannel\u955c\u50cf\u4ece\u800c\u5bfc\u81f4\u65e0\u6cd5\u6b63\u5e38Running\uff0c\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\u4f7f\u7528\u56fd\u5185\u4e91\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u955c\u50cf\u6e90\u7136\u540e\u901a\u8fc7\u4fee\u6539tag\u7684\u65b9\u5f0f\u66f2\u7ebf\u6551\u56fd<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker pull quay-mirror.qiniu.com\/coreos\/flannel:v0.11.0-amd64\ndocker tag quay-mirror.qiniu.com\/coreos\/flannel:v0.11.0-amd64 quay.io\/coreos\/flannel:v0.10.0-amd64\ndocker rmi quay-mirror.qiniu.com\/coreos\/flannell:v0.11.0-amd64<\/pre>\n\n\n\n<p>\u8fd9\u65f6\uff0c\u6211\u4eec\u518d\u770b\u770bmaster\u8282\u70b9\u7684\u72b6\u6001\u5c31\u4f1a\u4eceNotReady\u53d8\u4e3aReady\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-1024x182.png\" alt=\"\" class=\"wp-image-11816\" width=\"495\" height=\"88\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-1024x182.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-300x53.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-768x136.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-830x147.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-230x41.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-350x62.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119-480x85.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-119.png 1038w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/><\/figure><\/div>\n\n\n\n<p>\u90a3\u4e48\uff0c\u606d\u559c\u4f60\uff0cMaster\u8282\u70b9\u90e8\u7f72\u7ed3\u675f\u4e86\u3002\u5982\u679c\u4f60\u53ea\u60f3\u8981\u4e00\u4e2a\u5355\u8282\u70b9\u7684K8S\uff0c\u90a3\u4e48\u8fd9\u91cc\u5c31\u5b8c\u6210\u4e86\u90e8\u7f72\u4e86\u3002<\/p>\n\n\n\n<p><strong>3.6 \u52a0\u5165Kubernetes Node<\/strong><\/p>\n\n\n\n<p>\u5728\u4e24\u53f0Node\u8282\u70b9\u4e0a\u6267\u884cjoin\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kubeadm join 192.168.2.100:6443 --token ekqxk2.iiu5wx5bbnbdtxsw --discovery-token-ca-cert-hash \\\nsha256:c50bb83d04f64f4a714b745f04682b27768c1298f331e697419451f3550f2d05<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u7684\u5c31\u662f\uff0c\u5e26\u4e0a\u5728Master\u8282\u70b9Init\u6210\u529f\u540e\u8f93\u51fa\u7684Token\u3002\u5982\u679c\u627e\u4e0d\u5230\u4e86\uff0c\u6ca1\u5173\u7cfb\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kubeadm token list<\/pre>\n\n\n\n<p>Node\u8282\u70b9\u4e0a\u6210\u529fjoin\u4e4b\u540e\u4f1a\u5f97\u5230\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120-1024x195.png\" alt=\"\" class=\"wp-image-11818\" width=\"600\" height=\"113\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120-1024x195.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120-300x57.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120-768x146.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120-830x158.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120-230x44.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120-350x67.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-120.png 1080w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u65f6\uff0c\u6211\u4eec\u5728master\u8282\u70b9\u4e0a\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u96c6\u7fa4\u5404\u4e2a\u8282\u70b9\u7684\u72b6\u6001\u4e86\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121.png\" alt=\"\" class=\"wp-image-11819\" width=\"592\" height=\"135\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121.png 872w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121-300x69.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121-768x176.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121-830x190.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121-230x53.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121-350x80.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-121-480x110.png 480w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/figure><\/div>\n\n\n\n<p>\u5982\u679c\u770b\u5230\u4e24\u4e2aNode\u72b6\u6001\u4e0d\u662fReady\uff0c\u90a3\u4e48\u53ef\u80fd\u9700\u8981\u68c0\u67e5\u54ea\u4e9bPod\u6ca1\u6709\u6b63\u5e38\u8fd0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kubectl get pod --all-namespaces<\/pre>\n\n\n\n<p>\u7136\u540e\u6309\u71673.5\u4e2d\u7684\u68c0\u67e5\u65b9\u5f0f\u8fdb\u884c\u68c0\u67e5\u5e76\u4fee\u590d\uff0c\u6700\u7ec8kubectl get nodes\u6548\u679c\u5e94\u8be5\u72b6\u6001\u90fd\u662fRunning\u3002\u6ce8\u610f\u7684\u662f\u5728\u68c0\u67e5\u65f6\u9700\u8981\u6ce8\u610f\u662f\u54ea\u4e2aNode\u4e0a\u7684\u9519\u8bef\uff0c\u7136\u540e\u5728\u5bf9\u5e94\u7684Node\u8fdb\u884c\u4fee\u590d\uff0c\u6bd4\u5982\u62c9\u53d6flannel\u955c\u50cf\u3002<\/p>\n\n\n\n<p>\u81f3\u6b64\uff0c\u4e00\u4e2a\u6700\u5c0f\u5316\u7684K8S\u96c6\u7fa4\u5df2\u7ecf\u642d\u5efa\u5b8c\u6bd5\u3002<\/p>\n\n\n\n<p><strong>3.7 \u6d4b\u8bd5Kubernetes\u96c6\u7fa4<\/strong><\/p>\n\n\n\n<p>\u8fd9\u91cc\u4e3a\u4e86\u5feb\u901f\u5730\u9a8c\u8bc1\u4e00\u4e0b\u6211\u4eec\u7684K8S\u96c6\u7fa4\u662f\u5426\u53ef\u7528\uff0c\u521b\u5efa\u4e00\u4e2a\u793a\u4f8bPod\uff08\u8fd9\u91cc\u9ed8\u8ba4\u662f\u4e00\u4e2a\u526f\u672c\uff09\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kubectl create deployment nginx --image=nginx\nkubectl expose deployment nginx --port=80 --type=NodePort\nkubectl get pod,svc<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-1024x211.png\" alt=\"\" class=\"wp-image-11820\" width=\"548\" height=\"113\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-1024x211.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-300x62.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-768x158.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-830x171.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-230x47.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-350x72.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122-480x99.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-122.png 1212w\" sizes=\"(max-width: 548px) 100vw, 548px\" \/><\/figure><\/div>\n\n\n\n<p>\u5982\u679c\u60f3\u8981\u770b\u5230\u66f4\u591a\u7684\u4fe1\u606f\uff0c\u6bd4\u5982pod\u88ab\u90e8\u7f72\u5728\u4e86\u54ea\u4e2aNode\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7 kubectl get pods,svc -o wide\u6765\u67e5\u770b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-1024x171.png\" alt=\"\" class=\"wp-image-11821\" width=\"549\" height=\"92\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-1024x171.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-300x50.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-768x128.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-830x138.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-230x38.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-350x58.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123-480x80.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-123.png 1380w\" sizes=\"(max-width: 549px) 100vw, 549px\" \/><\/figure><\/div>\n\n\n\n<p>\u56e0\u4e3a\u662fNodePort\u65b9\u5f0f\uff0c\u56e0\u6b64\u5176\u6620\u5c04\u7684\u7aef\u53e3\u53f7\u4f1a\u572830000-32767\u8303\u56f4\u5185\u968f\u673a\u53d6\u4e00\u4e2a\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u6d4f\u89c8\u5668\u8f93\u5165IP\u5730\u5740\u8bbf\u95ee\uff0c\u6bd4\u5982\u8fd9\u65f6\u6211\u4eec\u901a\u8fc7\u6d4f\u89c8\u5668\u6765\u8bbf\u95ee\u4e00\u4e0b\u4efb\u4e00Node\u7684IP\u5730\u5740\u52a0\u7aef\u53e3\u53f7\uff0c\u4f8b\u5982192.168.2.101:31174\u6216192.168.2.102:31174<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-1024x601.png\" alt=\"\" class=\"wp-image-11822\" width=\"537\" height=\"316\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-1024x601.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-300x176.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-768x451.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-1536x902.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-830x487.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-230x135.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-350x206.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124-480x282.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-124.png 1546w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/figure><\/div>\n\n\n\n<p>\u5982\u679c\u80fd\u591f\u6210\u529f\u770b\u5230\uff0c\u90a3\u4e48\u606d\u559c\u4f60\uff0c\u4f60\u7684K8S\u96c6\u7fa4\u80fd\u591f\u6210\u529f\u8fd0\u884c\u4e86\uff0c\u4e07\u91cc\u957f\u5f81\u8d70\u5b8c\u4e86\u7b2c\u4e00\u6b65\uff01<\/p>\n\n\n\n<p><strong>\u56db\u3001\u5c0f\u7ed3<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u672c\u6587\u5feb\u901f\u5730\u4ecb\u7ecd\u4e86\u4e00\u4e0bKubernetes\u7684\u6838\u5fc3\u6784\u6210\u7ec4\u4ef6\u53ca\u5176\u4f5c\u7528\uff0c\u7136\u540e\u901a\u8fc7\u5728\u4e09\u53f0Linux\u4e3b\u673a\u4e0a\u901a\u8fc7Kubeadm\u642d\u5efa\u4e86\u4e00\u4e2aMaster\u8282\u70b9\u4e24\u4e2aNode\u8282\u70b9\u7684\u96c6\u7fa4\uff0c\u6700\u540e\u901a\u8fc7\u90e8\u7f72\u4e00\u4e2aDeployment\u6765\u5feb\u901f\u5730\u9a8c\u8bc1\u4e86\u4e00\u4e0b\u96c6\u7fa4\u662f\u5426\u53ef\u7528\u3002\u4e0b\u4e00\u7bc7\u4f1a\u901a\u8fc7\u4e00\u4e2aASP.NET Core\u7684\u90e8\u7f72\u4f8b\u5b50\u6765\u6f14\u793a\u548c\u4ecb\u7ecd\u4e00\u4e0b\u5404\u4e2a\u7ec4\u4ef6\u4e4b\u95f4\u662f\u5982\u4f55\u534f\u4f5c\u7684\uff0c\u4ee5\u53ca\u90e8\u7f72Dashboard\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\uff1ahttps:\/\/www.cnblogs.com\/edisonchou\/p\/aspnet_core_on_ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/11802"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11802"}],"version-history":[{"count":8,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/11802\/revisions"}],"predecessor-version":[{"id":12036,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/11802\/revisions\/12036"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}