{"id":214463,"date":"2021-04-02T10:36:13","date_gmt":"2021-04-02T02:36:13","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=214463"},"modified":"2021-03-23T08:36:42","modified_gmt":"2021-03-23T00:36:42","slug":"kubernetes-devops","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kubernetes-devops.html","title":{"rendered":"\u5fc5\u987b\u5b89\u5229\u7684Kubernetes&DevOps\u5de5\u5177"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nKubernetes \u7684\u51fa\u73b0\u4e0d\u4ec5\u4e3b\u5bb0\u4e86\u5bb9\u5668\u7f16\u6392\u7684\u5e02\u573a\uff0c\u4e5f\u8fdb\u5316\u4e86\u8fc7\u53bb\u7684\u8fd0\u7ef4\u65b9\u5f0f\uff0c\u4e0d\u4ec5\u5c06\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u4e4b\u95f4\u8fb9\u754c\u53d8\u5f97\u66f4\u52a0\u6a21\u7cca\uff0c\u800c\u4e14\u8ba9 DevOps \u8fd9\u4e00\u89d2\u8272\u53d8\u5f97\u66f4\u52a0\u6e05\u6670\u3002\u5b83\u662f\u76ee\u524d\u53ef\u7528\u7684\u5f88\u6d41\u884c\u7684\u5bb9\u5668\u89e3\u51b3\u65b9\u6848\u4e4b\u4e00\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6bcf\u4e2a\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u90fd\u80fd\u901a\u8fc7 Kubernetes \u6765\u5b9a\u4e49\u670d\u52a1\u4e4b\u95f4\u7684\u62d3\u6251\u5173\u7cfb\u3001\u7ebf\u4e0a\u7684\u8282\u70b9\u4e2a\u6570\u3001\u8d44\u6e90\u4f7f\u7528\u91cf\u5e76\u4e14\u80fd\u591f\u5feb\u901f\u5b9e\u73b0\u6c34\u5e73\u6269\u5bb9\u3001\u84dd\u7eff\u90e8\u7f72\u7b49\u5728\u8fc7\u53bb\u590d\u6742\u7684\u8fd0\u7ef4\u64cd\u4f5c\u3002\u4ee5\u4e0b\u7684\u4e00\u7cfb\u5217\u5de5\u5177\uff0c\u53ef\u4ee5\u52a9\u4f60\u5145\u5206\u8fd0\u7528Kubernetes\u3002<\/p>\n

\"\"<\/p>\n

\u96c6\u7fa4\u90e8\u7f72\u5de5\u5177<\/strong><\/div>\n
1\u3001Amazon EKS<\/strong><\/span><\/div>\n

Amazon Elastic Container Service\u662f\u4e00\u4e2aKubernetes DevOps\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u7ba1\u7406\u548c\u6269\u5c55\u4ed6\u4eec\u7684\u5bb9\u5668\u5316\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4f7f\u7528Kubernetes\u7b80\u5316\u90e8\u7f72\u3002\u5f53\u4f60\u9700\u8981\u4e00\u4e2a\u8db3\u591f\u5b89\u5168\u3001\u8db3\u591f\u7a33\u5b9a\u7684 Kubernetes \u670d\u52a1\uff0c \u7528\u5c3d\u53ef\u80fd\u5c11\u7684\u7cbe\u529b\u53bb\u7ef4\u62a4\u57fa\u7840\u8bbe\u65bd\uff0c\u5e0c\u671b\u5c06\u66f4\u591a\u7684\u7cbe\u529b\u6295\u653e\u5728\u4e1a\u52a1\u7684\u7814\u53d1\u4e0a\u65f6\uff0cAmazon EKS \u5c31\u4f1a\u6210\u4e3a\u4e00\u4e2a\u503c\u5f97\u4f60\u9009\u62e9\u7684\u9009\u9879\u3002Amazon EKS\u5177\u6709\u7075\u6d3b\u7684\u5e03\u5c40\u5e76\u51cf\u5c11\u4e86\u7ef4\u62a4\u5f00\u9500\u3002<\/p>\n

2\u3001Kubespray<\/strong><\/span><\/div>\n

KubeSpray\u662f\u4e00\u4e2a\u96c6\u7fa4\u751f\u547d\u5468\u671f\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u5e2e\u52a9\u90e8\u7f72\u53ef\u7528\u4e8e\u751f\u4ea7\u7684Kubernetes\u96c6\u7fa4\u3002\u5b83\u4f7f\u7528ansible-playbook\u6765\u81ea\u52a8\u5316Kubernetes\u96c6\u7fa4\u914d\u7f6e\u3002\u4e3b\u8981\u529f\u80fd\u5305\u62ec\u57fa\u4e8eAnsible\uff0c\u9ad8\u5ea6\u53ef\u7528\uff0c\u8de8\u5e73\u53f0;\u6d41\u884c\u7684\u4e91\u63d0\u4f9b\u5546\u96c6\u6210\u751a\u81f3\u662f\u88f8\u673a\uff0c\u591a\u79cd\u914d\u7f6e\u9009\u9879\uff0c\u591a\u5e73\u53f0CI\/CD\u7b49\u7b49\u3002\u56e0\u4e3aKubespray\u62e5\u6709\u4e00\u4e2a\u5f00\u653e\u7684\u5f00\u53d1\u6a21\u578b\uff0c\u6613\u4e8e\u4f7f\u7528\uff0c\u5927\u5927\u964d\u4f4e\u4e86\u7f16\u6392\u96c6\u7fa4\u7684\u96be\u5ea6\uff0c\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5b66\u4e60\u5982\u4f55\u4f7f\u7528Kubespray\u3002<\/p>\n

3\u3001Conjure-up<\/strong><\/span><\/div>\n

Conjure-up\u6613\u4e8e\u4f7f\u7528\uff0c\u5141\u8bb8\u7528\u6237\u4ee5\u6700\u5c11\u7684\u95ee\u9898\u90e8\u7f72\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u652f\u6301\u672c\u5730\u4e3b\u673a\u90e8\u7f72\u3001AWS\u3001bare metal\u3001Azure\u3001VMware\u3001Joynet\u548cOpenStack\u3002<\/p>\n

\u76d1\u63a7\u5de5\u5177<\/strong><\/div>\n
4\u3001Kubewatch<\/strong><\/span><\/div>\n

Kubewatch\u662f\u4e00\u4e2a\u5f88\u597d\u7528\u7684\u5de5\u5177\uff0ckubewatch\u80fd\u591f\u76d1\u63a7\u90a3\u4e9b\u7279\u5b9a\u7684Kubernetes\u4e8b\u4ef6\uff0c\u5e76\u5c06\u6b64\u7c7b\u4e8b\u4ef6\u4ee5\u901a\u77e5\u7684\u5f62\u5f0f\u63a8\u9001\u5230\u8bf8\u5982Slack\u548cPagerDuty\u7684\u7aef\u70b9\u4e0a\u3002\u53ef\u4ee5\u786e\u4fdd\u4f60\u7684\u5bb9\u5668\u662f\u5b89\u5168\u7684\uff0c\u5e76\u4f7f\u7528\u884c\u4e1a\u6700\u4f73\u5b9e\u8df5\u8fdb\u884c\u6253\u5305\uff0c\u540c\u65f6\u76d1\u89c6\u8f6f\u4ef6\u7684\u6f0f\u6d1e\u548c\u66f4\u65b0\u3002\u4f46\u662f\uff0c\u7528\u6237\u8868\u793a\uff0c\u6dfb\u52a0\u5bf9\u591a\u4e2a\u5b9e\u4f8b\u7684\u652f\u6301\u5c06\u4f1a\u66f4\u6709\u5e2e\u52a9\u3002\u652f\u6301\u591a\u4e2a\u7aef\u70b9\uff0c\u4e14\u6613\u4e8e\u90e8\u7f72\u3002<\/p>\n

5\u3001Weave Scope<\/strong><\/span><\/div>\n

Weave Scope\u7528\u6765\u76d1\u89c6\u548c\u89e3\u51b3Kubernetes\u548cDocker\u96c6\u7fa4\u7684\u6545\u969c\uff0c\u4f60\u5c31\u53ef\u4ee5\u89e3\u653e\u53cc\u624b\u8f7b\u677e\u5730\u8bc6\u522b\u548c\u7ea0\u6b63\u4f60\u7684\u5bb9\u5668\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u95ee\u9898\u3002<\/p>\n

6\u3001Test-infra<\/strong><\/span><\/div>\n

Testinfra \u662f\u4e00\u4e2a\u57fa\u7840\u67b6\u6784\u6d4b\u8bd5\u6846\u67b6\uff0c\u5b83\u53ef\u4ee5\u8f7b\u677e\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u6765\u9a8c\u8bc1\u670d\u52a1\u5668\u7684\u72b6\u6001\u3002\u5b83\u652f\u6301\u7684\u540e\u7aef\u4e4b\u4e00\u662f Ansible\uff0c\u6240\u4ee5\u8fd9\u610f\u5473\u7740 Testinfra \u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 Ansible \u7684\u6e05\u5355\u6587\u4ef6\u548c\u6e05\u5355\u4e2d\u5b9a\u4e49\u7684\u4e00\u7ec4\u673a\u5668\u6765\u5bf9\u5b83\u4eec\u8fdb\u884c\u6d4b\u8bd5\u3002\u5bf9\u4e8e\u5904\u7406\u590d\u6742\u7684\u6a21\u677f\u6765\u6d4b\u8bd5\u548c\u68c0\u6d4b\u9519\u8bef\u975e\u5e38\u6709\u7528\u3002<\/p>\n

7\u3001Trireme<\/strong><\/span><\/div>\n

Trireme\u901a\u8fc7\u63d0\u9ad8Kubernetes\u8fdb\u7a0b\u3001\u5de5\u4f5c\u8d1f\u8f7d\u548c\u5bb9\u5668\u7684\u5b89\u5168\u6027\u548c\u964d\u4f4e\u590d\u6742\u6027\uff0c\u5f15\u5165\u4e86\u4e00\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u6388\u6743\u65b9\u6cd5\u3002\u5efa\u8bae\u7528\u5b83\u6765\u51cf\u8f7bKubernetes\u5de5\u4f5c\u8d1f\u8f7d\u3001\u5bb9\u5668\u548c\u8fdb\u7a0b\u7684\u590d\u6742\u6027\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u5e94\u7528\u7a0b\u5e8f\u5c42\u5f3a\u5236\u5b9e\u65bd\u5b89\u5168\u6027\u3002<\/p>\n

8\u3001Sysdig Falco<\/strong><\/span><\/div>\n

\u8fd9\u662f\u4e00\u4e2a\u53ef\u4ee5\u63d0\u4f9b\u6df1\u5ea6\u5bb9\u5668\u53ef\u89c1\u6027\u7684\u884c\u4e3a\u6d3b\u52a8\u76d1\u89c6\u5de5\u5177\uff0c\u5b83\u7f29\u77ed\u4e86\u68c0\u6d4b\u5b89\u5168\u4e8b\u4ef6\u6240\u9700\u7684\u65f6\u95f4\uff0c\u5e76\u5e94\u7528\u4e86\u5141\u8bb8\u4f60\u6301\u7eed\u76d1\u89c6\u548c\u68c0\u6d4b\u5bb9\u5668\u3001\u5e94\u7528\u7a0b\u5e8f\u3001\u4e3b\u673a\u548c\u7f51\u7edc\u6d3b\u52a8\u7684\u89c4\u5219\u3002\u4f7f\u7528\u5b83\u53ef\u4ee5\u5bf9\u5176\u57fa\u7840\u8bbe\u65bd\u8fdb\u884c\u6301\u7eed\u68c0\u67e5\u3001\u5f02\u5e38\u68c0\u6d4b\uff0c\u5e76\u4e3a\u4efb\u4f55\u7c7b\u578b\u7684 Linux \u7cfb\u7edf\u8c03\u7528\u8bbe\u7f6e\u8b66\u62a5\u901a\u77e5\u3002<\/p>\n

\u8fd8\u53ef\u4ee5\u901a\u8fc7 Falco \u76d1\u89c6 shell \u4f55\u65f6\u5728\u5bb9\u5668\u4e2d\u8fd0\u884c\u3001\u5bb9\u5668\u5728\u54ea\u91cc\u6302\u8f7d\u3001\u5bf9\u654f\u611f\u6587\u4ef6\u7684\u610f\u5916\u8bfb\u53d6\u3001\u51fa\u7ad9\u7f51\u7edc\u5c1d\u8bd5\u4ee5\u53ca\u5176\u4ed6\u53ef\u7591\u8c03\u7528\u3002<\/p>\n

CLI\u5de5\u5177<\/strong><\/div>\n
9\u3001Cabin<\/strong><\/span><\/div>\n

Cabin\u662f\u4e00\u4e2a\u79fb\u52a8\u4eea\u8868\u76d8\uff0c\u901a\u8fc7Android\u6216iOS\u5bf9Kubernetes\u8fdb\u884c\u7ba1\u7406\u3002\u5b83\u540c\u610f\u7528\u6237\u8fdc\u7a0b\u7ba1\u7406\u4ed6\u4eec\u7684\u96c6\u7fa4\uff0c\u662f\u4e2a\u5f88\u8d5e\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5bf9\u6240\u6709\u4e8b\u4ef6\u8fdb\u884c\u5feb\u901f\u8865\u6551\u3002\u5f53Kubernetes\u5e94\u7528\u7a0b\u5e8f\u79bb\u5f00\u4e3b\u8bbe\u5907\u65f6\uff0cCabin\u53ef\u4ee5\u5feb\u901f\u7ba1\u7406\u5b83\u4eec\u3002\u8fd9\u5e76\u4e0d\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d1\u7684\u5de5\u5177\u3002\u5f53\u5de5\u7a0b\u5e08\u7ecf\u5e38\u8fdc\u79bb\u4ed6\u4eec\u7684\u4e3b\u8ba1\u7b97\u673a\uff0c\u9700\u8981\u5feb\u901f\u7ba1\u7406\u4ed6\u4eec\u7684Kubernetes\u96c6\u7fa4\u65f6\uff0cCabin\u5c31\u5f88\u6709\u7528\u3002<\/p>\n

10\u3001Kubectx\/Kubens<\/strong><\/span><\/div>\n

Kubectx\/Kubens\u4f7f\u7528\u81ea\u52a8\u5b8c\u6210\u7279\u6027\uff0c\u901a\u8fc7\u5728\u96c6\u7fa4\u4e4b\u95f4\u6765\u56de\u5207\u6362\uff0c\u5e2e\u52a9\u7528\u6237\u8f7b\u677e\u5207\u6362\u4e0a\u4e0b\u6587\uff0c\u5e76\u540c\u65f6\u8fde\u63a5\u5230\u5404\u4e2a\u96c6\u7fa4\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5b83\u5728Kubernetes\u547d\u540d\u7a7a\u95f4\u4e4b\u95f4\u5e73\u7a33\u5730\u5207\u6362\u3002\u5b83\u6709\u76ca\u4e8e\u59cb\u7ec8\u5728\u96c6\u7fa4\u6216\u547d\u540d\u7a7a\u95f4\u4e4b\u95f4\u5bfc\u822a\u7684\u7528\u6237\u3002<\/p>\n

\u5f00\u53d1\u5de5\u5177<\/strong><\/div>\n
11\u3001Telepresence<\/strong><\/span><\/div>\n

\u5b83\u8ba9\u4f60\u53ef\u4ee5\u5728\u672c\u5730\u8c03\u8bd5Kubernetes\u670d\u52a1\uff0c\u7b80\u5316\u4e86\u5f00\u53d1\u548c\u8c03\u8bd5\u8fc7\u7a0b\u3002<\/p>\n

12\u3001Helm<\/strong><\/span><\/div>\n

Helm\u5e2e\u52a9\u7528\u6237\u7ba1\u7406\u4ed6\u4eec\u7684Kubernetes\u5e94\u7528\u7a0b\u5e8f\uff0c\u901a\u8fc7Helm\u56fe\u8868\u8ba9\u4f60\u53ef\u4ee5\u5171\u4eab\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u8ba9\u7528\u6237\u80fd\u591f\u521b\u5efa\u53ef\u5171\u4eab\u53ef\u590d\u5236\u7684\u6784\u5efa\uff0c\u4f46\u5b83\u4e0d\u63a8\u8350\u7528\u4e8e\u66f4\u9ad8\u7ea7\u3001\u66f4\u9891\u7e41\u7684\u90e8\u7f72\u3002<\/p>\n

13\u3001Keel<\/strong><\/span><\/div>\n

\u5b83\u8ba9\u7528\u6237\u53ef\u4ee5\u91cd\u65b0\u4e13\u6ce8\u4e8e\u7f16\u5199\u4ee3\u7801\u548c\u6d4b\u8bd5\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u56e0\u4e3a\u5982\u679c\u5e93\u4e2d\u6709\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\u7248\u672c\u53ef\u7528\uff0c\u5b83\u5c31\u4f1a\u81ea\u52a8\u66f4\u65b0kubernetes\u7684\u5de5\u4f5c\u8d1f\u8f7d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6bcf\u4e2a\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u90fd\u80fd\u901a\u8fc7 Kubernetes \u6765\u5b9a\u4e49\u670d\u52a1\u4e4b\u95f4\u7684\u62d3\u6251\u5173\u7cfb\u3001\u7ebf\u4e0a\u7684\u8282\u70b9\u4e2a\u6570\u3001\u8d44\u6e90\u4f7f\u7528\u91cf\u5e76\u4e14\u80fd\u591f\u5feb\u901f […]<\/p>\n","protected":false},"author":1479,"featured_media":214465,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-214463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/214463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=214463"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/214463\/revisions"}],"predecessor-version":[{"id":214467,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/214463\/revisions\/214467"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/214465"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=214463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=214463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=214463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}