{"id":161902,"date":"2019-11-17T09:52:48","date_gmt":"2019-11-17T01:52:48","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=161902"},"modified":"2019-10-21T17:10:38","modified_gmt":"2019-10-21T09:10:38","slug":"k8s-vs-docker","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/k8s-vs-docker.html","title":{"rendered":"K8s vs Docker Swarm"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u8ba4\u4e3a Kubernetes \u8f7b\u677e\u51fb\u8d25\u4e86 Docker Swarm\uff1f\u672c\u6587\u4f5c\u8005\u8868\u793a\u4e0d\u80fd\u8f7b\u6613\u4e0b\u5b9a\u8bba\u3002\u672c\u6587\u5206\u6790\u4e86\u5176\u4e2d\u539f\u59d4\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"
\n\u5982\u679c\u4f60\u5b8c\u5168\u76f8\u4fe1\u8c37\u6b4c\u8d8b\u52bf\uff08Google Trends\uff09\u7684\u7ed3\u679c\uff0c\u4f1a\u8ba4\u4e3a Kubernetes \u8f7b\u677e\u51fb\u8d25\u4e86 Docker Swarm\u3002<\/p>\n

\u4f46\u662f\uff0c\u8fd9\u662f\u8868\u660e Kubernetes \u83b7\u80dc\u7684\u6709\u6548\u8bc1\u636e\u5417\uff1f\u5e76\u975e\u5982\u6b64\u3002<\/p>\n

\u4e8b\u5b9e\u4e0a\uff0cDocker \u7684\u91c7\u7528\u7387\u4ecd\u5728\u5448\u6307\u6570\u7ea7\u589e\u957f\u3002\u8d8a\u6765\u8d8a\u591a\u7684\u516c\u53f8\u4e5f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528 Docker\u3002\u6bd5\u7adf\uff0c\u4f7f\u7528\u4e00\u79cd\u7f16\u6392\u5e73\u53f0\u6765\u6269\u5c55\u548c\u7ba1\u7406\u5bb9\u5668\u5f88\u91cd\u8981\u3002<\/p>\n

\u4e0b\u9762\u662f\u773c\u4e0b\u4f60\u5bf9 Docker Swarm \u4e0e Kubernetes \u9700\u8981\u6709\u6240\u4e86\u89e3\u7684\u65b9\u9762\u3002<\/p>\n

\u6269\u5927\u89c4\u6a21<\/strong><\/p>\n

\u8bbe\u60f3\u4e00\u4e0b\u4f60\u4f7f\u7528 Docker \u5df2\u6709\u4e00\u6bb5\u65f6\u65e5\uff0c\u5e76\u90e8\u7f72\u5728\u51e0\u53f0\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e0a\u3002\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u5f00\u59cb\u9047\u5230\u5e9e\u5927\u6d41\u91cf\uff0c\u4f60\u9700\u8981\u5feb\u901f\u6269\u5927\u89c4\u6a21\uff0c\u5982\u4f55\u5c06\u89c4\u6a21\u4ece 3 \u53f0\u670d\u52a1\u5668\u6269\u5927\u5230\u5c06\u6765\u9700\u8981\u7684 40 \u53f0\u670d\u52a1\u5668\uff1f<\/p>\n

\u4f60\u53c8\u5c06\u5982\u4f55\u51b3\u5b9a\u5c06\u54ea\u4e2a\u5bb9\u5668\u8be5\u7528\u4e8e\u4f55\u5904\uff1f\u4f60\u5c06\u5982\u4f55\u76d1\u63a7\u6240\u6709\u8fd9\u4e9b\u5bb9\u5668\uff0c\u5e76\u786e\u4fdd\u5b83\u4eec\u9000\u51fa\u540e\u91cd\u65b0\u542f\u52a8\uff1f<\/p>\n

\u8fd9\u65f6\u5019 Kubernetes \u6709\u4e86\u7528\u6b66\u4e4b\u5730\u3002<\/p>\n

\u73b0\u5728\uff0c\u4f60\u53ef\u80fd\u60f3\u77e5\u9053\u4f60\u662f\u5426\u53ef\u4ee5\u4f7f\u7528 Docker Swarm \u8f7b\u677e\u5730\u83b7\u5f97\u540c\u6837\u7684\u7ed3\u679c\uff0c\u800c\u4e14\u590d\u6742\u6027\u4f4e\u5f97\u591a\u3002<\/p>\n

\u7b49\u4e00\u4e0b\uff0c\u5bf9 Kubernetes \u548c Docker Swarm \u8fdb\u884c\u4e00\u756a\u6bd4\u8f83\u5e76\u4e0d\u662f\u5f88\u5bb9\u6613\u3002<\/p>\n

\u6bd5\u7adf\uff0cDocker Swarm \u9002\u7528\u4e8e\u7b80\u5355\u548c\u5feb\u901f\u5f00\u53d1\u81f3\u5173\u91cd\u8981\u7684\u73af\u5883\uff0c\u800c Kubernetes \u9002\u5408\u5927\u4e2d\u578b\u96c6\u7fa4\u8fd0\u884c\u590d\u6742\u5e94\u7528\u7a0b\u5e8f\u7684\u73af\u5883\u3002<\/p>\n

\u6beb\u65e0\u7591\u95ee\uff0cKubernetes \u5907\u53d7\u5173\u6ce8\u3002GitHub \u4e0a\u7684 Kubernetes \u9879\u76ee\u6709 1500 \u591a\u4e2a\u8d21\u732e\u8005\uff0c\u4ed6\u4eec\u5728\u4e0d\u65ad\u53d1\u5e03\u5927\u6279\u5de5\u5177\u548c\u6269\u5c55\u4ef6\u7b49\u3002\u90a3\u662f\u4e00\u4e2a\u5e9e\u5927\u7684\u652f\u6301\u793e\u533a\u3002<\/p>\n

\u4f46\u5b83\u5e76\u975e\u603b\u662f\u6700\u597d\u7684\u9009\u62e9\u3002\u5230\u5e95\u9009\u62e9 Docker Swarm \u8fd8\u662f Kubernetes\uff0c\u53ea\u80fd\u6839\u636e\u4f60\u5728\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u7c7b\u578b\u6765\u56de\u7b54\u3002\u8fd8\u8981\u7262\u8bb0\u5176\u4ed6\u8003\u8651\u4e8b\u9879\uff0c\u6bd4\u5982\u5b89\u88c5\u548c\u8bbe\u7f6e\u7684\u7b80\u6613\u6027\u3001\u65e5\u5fd7\u548c\u76d1\u7ba1\u4ee5\u53ca\u6574\u4f53\u53ef\u6269\u5c55\u6027\u3002<\/p>\n

\u6bd4\u5982\u8bf4\uff0c\u8bf4\u5230\u5b89\u88c5\u548c\u8bbe\u7f6e\uff0cDocker Swarm \u80dc\u51fa\u3002\u5b83\u4f18\u96c5\u7b80\u6d01\u3001\u6613\u4e8e\u5b89\u88c5\uff0c\u4f60\u53ef\u4ee5\u5feb\u901f\u8bbe\u7f6e\u3002\u53e6\u4e00\u65b9\u9762\uff0cKubernetes \u6bd4\u8f83\u590d\u6742\u3002\u8fd8\u9762\u4e34\u9661\u5ced\u7684\u5b66\u4e60\u66f2\u7ebf\u3002<\/p>\n

\u5f53\u7136\uff0cDocker \u73b0\u5728\u6b63\u5f0f\u652f\u6301 Swarm \u548c Kubernetes\u3002\u8fd9\u5c31\u662f\u6709\u4eba\u8bf4 Kubernetes \u5df2\u80dc\u51fa\u7684\u53e6\u4e00\u4e2a\u539f\u56e0\u3002\u4ed6\u4eec\u9884\u8ba1 Docker \u4f1a\u82b1\u8f83\u5c11\u7684\u7cbe\u529b\u6765\u63a8\u5e7f Swarm \u6216\u63a8\u5e7f\u5176\u4f5c\u4e3a\u9996\u9009\u89e3\u51b3\u65b9\u6848\uff0c\u770b\u5230 Swarm \u6700\u7ec8\u6d88\u5931\u6211\u4eec\u4e0d\u5fc5\u611f\u5230\u60ca\u8bb6\u3002<\/p>\n

\u4e0d\u8fc7\uff0c\u6211\u4eec\u4ecd\u5e94\u8be5\u5bf9\u4e24\u8005\u8fdb\u884c\u6bd4\u8f83\u5417\uff1f\u4e0d\u59a8\u770b\u770b\u4e00\u4e9b\u7edf\u8ba1\u6570\u636e\u3002
\n\"\"
\n\u636e RightScale \u7684\u300a2019 \u4e91\u884c\u60c5\u62a5\u544a\u300b\u58f0\u79f0\uff0cDocker \u548c Kubernetes \u90fd\u662f\u8d62\u5bb6\uff1aKubernetes \u7684\u4f7f\u7528\u7387\u4ece 27% \u4e0a\u5347\u5230\u4e86 48%\u3002<\/p>\n

\u8bf4\u5230\u5bb9\u5668\u7f16\u6392\u5e73\u53f0\u7684\u4f7f\u7528\u60c5\u51b5\uff0cDigital Ocean \u7684\u4e00\u4efd\u4e91\u7aef\u5f00\u53d1\u4eba\u5458\u8d8b\u52bf\u5b63\u5ea6\u62a5\u544a\u5728\u4e0b\u9762\u663e\u793a\u4e86\u8fd9\u4e2a\u8d8b\u52bf\u3002\u867d\u7136 Kubernetes \u603b\u4f53\u4e0a\u6781\u53d7\u6b22\u8fce\uff0c\u4f46\u89c4\u6a21\u6700\u5c0f\u7684\u516c\u53f8\uff081-5 \u540d\u5458\u5de5\uff09\u66f4\u5e38 \u4f7f\u7528 Docker Swarm\uff0841% \u7684\u516c\u53f8\u4f7f\u7528 Swarm\uff0c31% \u7684\u516c\u53f8\u4f7f\u7528 Kubernetes\uff09\u3002<\/p>\n

\u4e00\u4e2a\u89c2\u70b9<\/strong><\/p>\n

DockerCon 2018 EU \u5927\u4f1a\u548c DockerCon 2019 \u5927\u4f1a\u4e0a\u53d1\u5e03\u4e86\u65b0\u7684 Swarm \u529f\u80fd\uff0c\u8fd9\u4e9b\u529f\u80fd\u8fdb\u4e00\u6b65\u9a8c\u8bc1\u4e86\u8be5\u5e73\u53f0\u3002<\/p>\n

\u6570\u5b57\u770b\u8d77\u6765\u4e5f\u4e0d\u9519\u3002\u7ed3\u679c\u8bc1\u660e\uff0cSwarm \u7684\u542f\u52a8\u4f7f\u7528\u7387\u65e0\u7591\u5728\u4e0a\u5347\u3002\u800c\u4e14\uff0c\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cDocker \u7684 700 \u591a\u5bb6\u5ba2\u6237\u4e2d\u7edd\u5927\u591a\u6570\u4f7f\u7528 Swarm\u3002<\/p>\n

\u5f52\u6839\u7ed3\u8482\uff0c\u773c\u4e0b\u662f Kubernetes \u5f53\u9053\u65f6\u4ee3\u3002\u4f46\u662f\u5176\u4ed6\u5de5\u5177\u53ef\u4ee5\u6539\u5584\u6df7\u642d\u6548\u679c\uff0c\u5e76\u4ee5\u6781\u5176\u6210\u719f\u5148\u8fdb\u7684\u65b9\u5f0f\u5e2e\u52a9\u4f60\u5b8c\u6210\u5de5\u4f5c\u3002<\/p>\n

\u5f53\u7136\uff0c\u91cd\u70b9\u4e0d\u5e94\u653e\u5728\u82b1\u54e8\u800c\u6d41\u884c\u7684\u5de5\u5177\u4e0a\u3002\u4e3b\u8981\u76ee\u6807\u5b8c\u5168\u662f\u6784\u5efa\u7a33\u5b9a\u7684\u7cfb\u7edf\u2014\u2014\u5ba2\u6237\u559c\u6b22\u4f7f\u7528\u7684\u7cfb\u7edf\u3002\u6bd5\u7adf\uff0c\u6bcf\u79cd\u5de5\u5177\u90fd\u6709\u5176\u81ea\u8eab\u7684\u4f18\u7f3a\u70b9\u3002<\/p>\n

\u5173\u4e8e Swarm \u5df2\u6b7b\u7684\u8bf4\u6cd5\u672a\u514d\u5938\u5927\u5176\u8f9e\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5982\u679c\u4f60\u5b8c\u5168\u76f8\u4fe1\u8c37\u6b4c\u8d8b\u52bf\uff08Google Trends\uff09\u7684\u7ed3\u679c\uff0c\u4f1a\u8ba4\u4e3a Kubernetes \u8f7b\u677e\u51fb\u8d25\u4e86 Dock […]<\/p>\n","protected":false},"author":1470,"featured_media":161905,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-161902","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161902","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\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=161902"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161902\/revisions"}],"predecessor-version":[{"id":162064,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161902\/revisions\/162064"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/161905"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=161902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=161902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=161902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}