{"id":723,"date":"2022-06-24T18:28:06","date_gmt":"2022-06-24T10:28:06","guid":{"rendered":"http:\/\/www.rchen.top\/?p=723"},"modified":"2026-07-09T15:36:54","modified_gmt":"2026-07-09T07:36:54","slug":"k8s%e7%bb%84%e4%bb%b6%e5%8a%9f%e8%83%bd%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.rchen.top\/?p=723","title":{"rendered":"k8s\u7ec4\u4ef6\u529f\u80fd\u4ecb\u7ecd"},"content":{"rendered":"<div style=\"direction: ltr;\">\n<table style=\"direction: ltr; border-collapse: collapse; border: 1pt solid #A3A3A3;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u7ba1\u7406\u8282\u70b9<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1006in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u8fd0\u884cansible\/easzctl\u811a\u672c\uff0c\u53ef\u4ee5\u590d\u7528master\uff0c\u5efa\u8bae\u4f7f\u7528\u72ec\u7acb\u8282\u70b9\uff081c1g\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">master\u8282\u70b9<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1006in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">Master \u8282\u70b9\u8d1f\u8d23\u5bf9\u5916\u63d0\u4f9b\u4e00\u7cfb\u5217\u7ba1\u7406\u96c6\u7fa4\u7684 API \u63a5\u53e3\uff0c\u5e76\u4e14\u901a\u8fc7\u548c n<\/span><span lang=\"en-US\">ode<\/span><span lang=\"zh-CN\"> \u8282\u70b9\u4ea4\u4e92\u6765\u5b9e\u73b0\u5bf9\u96c6\u7fa4\u7684\u64cd\u4f5c\u7ba1\u7406<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u9ad8\u53ef\u7528\u96c6\u7fa4\u81f3\u5c112\u4e2amaster\u8282\u70b9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">n<\/span><span lang=\"en-US\">ode<\/span><span lang=\"zh-CN\">\u8282\u70b9<\/span><\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1006in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">n<\/span><span lang=\"en-US\">ode<\/span><span lang=\"zh-CN\"> \u8282\u70b9\u662f\u5b9e\u9645\u8fd0\u884c Docker \u5bb9\u5668\u7684\u8282\u70b9\uff0c\u8d1f\u8d23\u548c\u8282\u70b9\u4e0a\u8fd0\u884c\u7684 Docker \u8fdb\u884c\u4ea4\u4e92\uff0c\u5e76\u4e14\u63d0\u4f9b\u4e86\u4ee3\u7406\u529f\u80fd<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u8fd0\u884c\u5e94\u7528\u8d1f\u8f7d\u7684\u8282\u70b9\uff0c\u53ef\u6839\u636e\u9700\u8981\u63d0\u5347\u673a\u5668\u914d\u7f6e\/\u589e\u52a0\u8282\u70b9\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">etcd\u00a0\u8282\u70b9<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1006in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">key-value\u952e\u503c\u5b58\u50a8\u6570\u636e\u5e93\uff0c\u7528\u6765\u5b58\u50a8kubernetes\u7684\u4fe1\u606f\u7684\u3002<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u6ce8\u610fetcd\u96c6\u7fa4\u9700\u89811,3,5,7&#8230;\u5947\u6570\u4e2a\u8282\u70b9\uff0c\u4e00\u822c\u590d\u7528master\u8282\u70b9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">apiserver\u7ec4\u4ef6<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1006in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u7528\u6237\u548c kubernetes \u96c6\u7fa4\u4ea4\u4e92\u7684\u5165\u53e3\uff0c\u5c01\u88c5\u4e86\u6838\u5fc3\u5bf9\u8c61\u7684\u589e\u5220\u6539\u67e5\u64cd\u4f5c\uff0c\u63d0\u4f9b\u4e86 RESTFul \u98ce\u683c\u7684 API \u63a5\u53e3\uff0c\u901a\u8fc7 etcd \u6765\u5b9e\u73b0\u6301\u4e45\u5316\u5e76\u7ef4\u62a4\u5bf9\u8c61\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">scheduler\u7ec4\u4ef6<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1701in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u8d1f\u8d23\u96c6\u7fa4\u8d44\u6e90\u7684\u8c03\u5ea6\u548c\u7ba1\u7406\uff0c\u4f8b\u5982\u5f53\u6709 pod \u5f02\u5e38\u9000\u51fa\u9700\u8981\u91cd\u65b0\u5206\u914d\u673a\u5668\u65f6\uff0cscheduler \u901a\u8fc7\u4e00\u5b9a\u7684\u8c03\u5ea6\u7b97\u6cd5\u4ece\u800c\u627e\u5230\u6700\u5408\u9002\u7684\u8282\u70b9\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">controller-manager\u7ec4\u4ef6<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1305in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u4e3b\u8981\u662f\u7528\u4e8e\u4fdd\u8bc1 replicationController \u5b9a\u4e49\u7684\u590d\u5236\u6570\u91cf\u548c\u5b9e\u9645\u8fd0\u884c\u7684 pod \u6570\u91cf\u4e00\u81f4\uff0c\u53e6\u5916\u8fd8\u4fdd\u8bc1\u4e86\u4ece service \u5230 pod \u7684\u6620\u5c04\u5173\u7cfb\u603b\u662f\u6700\u65b0\u7684\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">kubelet\u7ec4\u4ef6<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1006in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">\u8fd0\u884c\u5728 n<\/span><span lang=\"en-US\">ode<\/span><span lang=\"zh-CN\"> \u8282\u70b9\uff0c\u8d1f\u8d23\u548c\u8282\u70b9\u4e0a\u7684 Docker \u4ea4\u4e92\uff0c\u4f8b\u5982\u542f\u505c\u5bb9\u5668\uff0c\u76d1\u63a7\u8fd0\u884c\u72b6\u6001\u7b49<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">proxy\u7ec4\u4ef6<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1701in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">\u8fd0\u884c\u5728 n<\/span><span lang=\"en-US\">ode<\/span><span lang=\"zh-CN\"> \u8282\u70b9\uff0c\u8d1f\u8d23\u4e3a pod \u63d0\u4f9b\u4ee3\u7406\u529f\u80fd\uff0c\u4f1a\u5b9a\u671f\u4ece etcd \u83b7\u53d6 service \u4fe1\u606f\uff0c\u5e76\u6839\u636e service \u4fe1\u606f\u901a\u8fc7\u4fee\u6539 iptables \u6765\u5b9e\u73b0\u6d41\u91cf\u8f6c\u53d1\uff08\u6700\u521d\u7684\u7248\u672c\u662f\u76f4\u63a5\u901a\u8fc7\u7a0b\u5e8f\u63d0\u4f9b\u8f6c\u53d1\u529f\u80fd\uff0c\u6548\u7387\u8f83\u4f4e\u3002\uff09\uff0c\u5c06\u6d41\u91cf\u8f6c\u53d1\u5230\u8981\u8bbf\u95ee\u7684 pod \u6240\u5728\u7684\u8282\u70b9\u4e0a\u53bb<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: white; vertical-align: top; width: 2.0854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">flannel\u7ec4\u4ef6<\/p>\n<\/td>\n<td style=\"background-color: white; vertical-align: top; width: 5.1701in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">Flannel \u7684\u76ee\u7684\u5c31\u662f\u4e3a\u96c6\u7fa4\u4e2d\u7684\u6240\u6709\u8282\u70b9\u91cd\u65b0\u89c4\u5212 IP \u5730\u5740\u7684\u4f7f\u7528\u89c4\u5219\uff0c\u4ece\u800c\u4f7f\u5f97\u4e0d\u540c\u8282\u70b9\u4e0a\u7684\u5bb9\u5668\u80fd\u591f\u83b7\u5f97\u540c\u5c5e\u4e00\u4e2a\u5185\u7f51\u4e14\u4e0d\u91cd\u590d\u7684 IP \u5730\u5740\uff0c\u5e76\u8ba9\u5c5e\u4e8e\u4e0d\u540c\u8282\u70b9\u4e0a\u7684\u5bb9\u5668\u80fd\u591f\u76f4\u63a5\u901a\u8fc7\u5185\u7f51 IP \u901a\u4fe1<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7ba1\u7406\u8282\u70b9 \u8fd0\u884cansible\/easzctl\u811a\u672c\uff0c\u53ef\u4ee5\u590d\u7528master\uff0c\u5efa\u8bae\u4f7f\u7528\u72ec\u7acb\u8282\u70b9\uff081c1g\uff09 mast [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1811,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,30],"tags":[138,164],"class_list":["post-723","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-24","category-paas","tag-k8s","tag-164"],"_links":{"self":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=723"}],"version-history":[{"count":1,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":724,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions\/724"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/media\/1811"}],"wp:attachment":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}