{"id":4407,"date":"2021-02-23T11:00:50","date_gmt":"2021-02-23T03:00:50","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=4407"},"modified":"2021-02-23T11:00:50","modified_gmt":"2021-02-23T03:00:50","slug":"%e4%bb%80%e4%b9%88%e6%98%afkubernetes%ef%bc%9a%e5%bc%80%e6%ba%90%e5%ae%b9%e5%99%a8%e7%bc%96%e6%8e%92%e7%b3%bb%e7%bb%9f%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/4407.html","title":{"rendered":"\u4ec0\u4e48\u662fKubernetes\uff1a\u5f00\u6e90\u5bb9\u5668\u7f16\u6392\u7cfb\u7edf\u7b80\u4ecb"},"content":{"rendered":"
Kubernetes Khronicles\u662fVultr\u7684\u7cfb\u5217\u6587\u7ae0\uff0c\u91cd\u70b9\u4ecb\u7ecd\u6709\u5173Kubernetes\u5f00\u6e90\u5bb9\u5668\u7f16\u6392\u7684\u4fe1\u606f\u548c\u89c1\u89e3\u3002\u5728\u672c\u6587\u4e2d<\/span>\uff0cVultr\u7684Cloud Native\u6280\u672f\u4e3b\u7ba1David Dymko<\/span><\/a>\u51c6\u786e\u89e3\u91ca\u4e86Kubernetes\u662f\u4ec0\u4e48\uff0c\u5e76\u5206\u4eab\u4e86\u6709\u5173\u5bb9\u5668\u534f\u8c03\u5668\u5185\u90e8\u5de5\u4f5c\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/span><\/b><\/p>\n Kubernetes<\/span><\/a>\u5df2\u6210\u4e3a\u7528\u4e8e\u81ea\u52a8\u5316\u5bb9\u5668\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u90e8\u7f72\uff0c\u6269\u5c55\u548c\u7ba1\u7406\u7684\u4e3b\u6d41\u5f00\u6e90\u7f16\u6392\u5de5\u5177\u3002Kubernetes\u6700\u521d\u7531Google\u7684\u56e2\u961f\u8bbe\u8ba1\u5e76\u4e8e2014\u5e74\u53d1\u5e03\uff0c\u73b0\u5df2\u7531<\/span>Cloud Native Computing Foundation<\/span><\/a>\u6b63\u5f0f\u7ef4\u62a4\u3002Kubernetes\u5df2\u8fc5\u901f\u6210\u4e3a\u5bb9\u5668\u7f16\u6392\u7684\u9ec4\u91d1\u6807\u51c6\uff0c\u539f\u56e0\u6709\u4ee5\u4e0b\u51e0\u4e2a\uff1a\u5e7f\u6cdb\u7684\u793e\u533a\u652f\u6301\uff0c\u4e0e\u4e91\u65e0\u5173\u7684\u4e8b\u5b9e\uff08\u79cd\u7c7b...\u8bf7\u53c2\u9605\u4ee5\u4e0b\u6709\u5173\u63d2\u4ef6\u7684\u66f4\u591a\u4fe1\u606f\uff09\uff0c\u5e76\u4e14\u5b83\u63d0\u4f9b\u4e86\u751f\u4ea7\u7ea7\u7f16\u6392\u3002<\/span><\/p>\n \u4ee5\u4e0b\u662fKubernetes\u7684\u6982\u5ff5\uff0c\u5de5\u4f5c\u539f\u7406\uff0c\u5e38\u89c1\u7684Kubernetes\u672f\u8bed\u4ee5\u53ca\u5f00\u53d1\u4eba\u5458\u5982\u4f55\u4f7f\u7528Kubernetes\u8fdb\u884c\u6784\u5efa\u548c\u6269\u5c55\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/span><\/p>\n Kubernetes\u6e90\u81ea\u5e0c\u814a\u8bed\u4e2d\u7684\u201c\u8235\u624b\u201d\uff08\u8235\u624b\u50cf\u96c6\u88c5\u7bb1\u8239\u4e00\u6837\u64cd\u7eb5\u8239\u7684\u4eba\uff09\uff0c\u5b83\u89e3\u91ca\u4e86Kubernetes\uff08\u6216K8s\uff09\u7684\u6807\u5fd7\u6027\u7b26\u53f7\u4e3a\u4f55\u662f\u8f6e\u6bc2\u3002Kubernetes\u662f\u4e00\u4e2a\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5bb9\u5668\u7f16\u6392\u5de5\u5177\uff0c\u5b83\u4f7f\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5feb\u901f\uff0c\u8f7b\u677e\u5730\u90e8\u7f72\uff0c\u6269\u5c55\u548c\u7ba1\u7406\u5bb9\u5668\u5316\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/span><\/p>\n \u8fd9\u662f\u53e6\u4e00\u79cd\u601d\u8003\u65b9\u5f0f\uff1aKubernetes\u662f\u4e00\u79cd\u5de5\u5177\uff0c\u53ef\u8ba9\u60a8\u7ba1\u7406\u6240\u6709\u4e91\u8ba1\u7b97\uff0c\u5c06\u5b83\u4eec\u89c6\u4e3a1\u4e2a\u5de8\u578b\u8d44\u6e90\u6c60\u800c\u4e0d\u662f\u591a\u4e2a\u5b9e\u4f8b\u3002Kubernetes\u4e0d\u4f1a\u8ba9\u591a\u4e2a\u670d\u52a1\u5668\u8fd0\u884c\u5404\u79cdCPU\u548c\u5185\u5b58\u8d44\u6e90\uff08\u60a8\u53ef\u80fd\u6ca1\u6709\u4f7f\u7528\u8fd9\u4e9b\u670d\u52a1\u5668\u6765\u5145\u5206\u5229\u7528CPU\u80fd\u529b\u548c\u5185\u5b58\u6c60\u7684\u5168\u90e8\u5bb9\u91cf\uff09\uff0c\u800c\u662f\u4f1a\u5c1d\u8bd5\u4f7f\u7528\u60a8\u6240\u8d2d\u4e70\u7684\u8d44\u6e90\u6765\u4f18\u5316\u6240\u6709\u8ba1\u7b97\u8d44\u6e90\u7684\u5206\u914d\u3002\u5145\u5206\u5730<\/span><\/p>\n \u7531\u4e8e\u4e00\u4e9b\u5173\u952e\u5dee\u5f02\u00a0\u56e0\u7d20\uff0cKubernetes\u6210\u4e3a<\/span>\u7c89\u4e1d\u7684\u6700\u7231<\/span><\/a>\uff1a<\/span><\/p>\n \u6709\u4e86\u53ef\u4f38\u7f29\u6027\uff0c\u5982\u679c\u6211\u4eec\u51b3\u5b9a\u603b\u662f\u8981\u8fd0\u884c5\u4e2a\u5b9e\u4f8b\u800c\u4e0d\u662f2\u4e2a\u5b9e\u4f8b\uff0c\u90a3\u4e48\u5728\u51e0\u6b21\u6309\u952e\u64cd\u4f5c\u4e2d\u5c31\u53ef\u4ee5\u8fd0\u884c\u8be5\u5b9e\u4f8b\u76845\u4e2a\u526f\u672c\u800c\u4e0d\u662f2\u4e2a\u5b9e\u4f8b\u3002\u4ec5\u5f53\u6709\u8db3\u591f\u7684\u5de5\u4f5c\u7a0b\u5e8f\u8282\u70b9\u8d44\u6e90\u6765\u652f\u6301\u6b64\u5de5\u4f5c\u65f6\uff0c\u8fd9\u624d\u6709\u53ef\u80fd...\u4f46\u662f\uff0c\u5982\u679c\u60a8\u62e5\u6709<\/span>\u96c6\u7fa4\u81ea\u52a8\u4f38\u7f29\u5668<\/span><\/a>\uff0c\u5219\u5b83\u5c06\u5728\u9700\u8981\u65f6\u81ea\u52a8\u90e8\u7f72\u65b0\u7684\u5de5\u4f5c\u7a0b\u5e8f\u8282\u70b9\u3002<\/span><\/li>\n Kubernetes\u901a\u8fc7\u90e8\u7f72\u5305\u542b\u63a7\u5236\u5e73\u9762\u7684\u4e3b\u8282\u70b9\u6765\u5de5\u4f5c\u3002\u63a7\u5236\u5e73\u9762\u5177\u6709\u5404\u79cd\u7ec4\u4ef6\uff0c\u4f8b\u5982\uff1a<\/span><\/p>\n \u867d\u7136\u63a7\u5236\u5e73\u9762\u7684\u4f5c\u7528\u5c31\u50cf\u64cd\u4f5c\u7684\u5927\u8111\uff0c\u4f46\u5de5\u4f5c\u8282\u70b9\u662f\u60a8\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u7684\u5730\u65b9\u3002\u7136\u540e\uff0c\u5de5\u4f5c\u7a0b\u5e8f\u8282\u70b9\u4e0e\u8fd0\u884c\u5728\u5de5\u4f5c\u7a0b\u5e8f\u8282\u70b9\u672c\u8eab\u4e0a\u7684\u4e00\u4e9b\u7ec4\u4ef6\u901a\u4fe1\u56de\u63a7\u5236\u5e73\u9762\u3002<\/span><\/p>\n \u7531\u4e8eKubernetes\u4e0e\u4e91\u65e0\u5173\uff0c\u56e0\u6b64\u6bcf\u4e2a\u63d0\u4f9b\u5546\u90fd\u8d1f\u8d23\u63d0\u4f9b\u4e24\u4e2a\u6838\u5fc3\u63d2\u4ef6\u3002\u4e3a\u4e86\u83b7\u5f97\u6b63\u5728\u8fd0\u884c\u7684\u4e91\u7684\u5168\u90e8\u597d\u5904\uff0c\u8fd9\u4e9b\u81f3\u5173\u91cd\u8981\uff1a<\/span><\/p>\n \u5f53\u4f60<\/span>\u90e8\u7f72Vultr\u795e\u9e70<\/span><\/a>\uff08\u4e00terraform\u6a21\u5757\uff0c\u89c4\u5b9a\u4e00\u4e2aKubernetes\u96c6\u7fa4\u4e0eVultr CCM\u548cCSI\uff09\uff0c\u6240\u6709\u8fd9\u4e9b\u63d2\u4ef6\u90fd\u5df2\u7ecf\u5efa\u7acb\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u60a8\u7684\u96c6\u7fa4\u5f88\u5bb9\u6613\u6210\u4e3aVultr\u5c31\u7eea\u7684\u3002<\/span><\/p>\n \u5176\u4ed6\u9700\u8981\u8003\u8651\u7684Kubernetes\u63d2\u4ef6\uff1a<\/span><\/p>\n \u4e0e\u6211\u4eec\u5206\u4eab\uff1a\u60a8\u89c9\u5f97\u54ea\u4e9bKubernetes\u63d2\u4ef6\u6700\u6709\u7528\uff1f\u5411\u6211\u4eec<\/span>\u53d1\u9001@Vultr<\/span><\/a>\u6765\u5206\u4eab\u60a8\u7684K8s\u6545\u4e8b\u3002<\/span><\/b><\/p>\n \u5728\u4f7f\u7528Kubernetes\u8fdb\u884c\u8fd0\u884c\u4e4b\u524d\uff0c\u9700\u8981\u4e86\u89e3\u4e00\u4e9b\u5173\u952e\u672f\u8bed\uff1a<\/span><\/p>\n \u968f\u7740\u5d1b\u8d77<\/span>\u5fae\u670d\u52a1<\/span><\/a>\uff0cKubernetes\u5df2\u7ecf\u666e\u53ca\u4e0a\u5347\u4e3a\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u6784\u5efa\u5206\u5e03\u5f0f\u5e94\u7528\u7a0b\u5e8f\u3002\u5fae\u670d\u52a1\u63d0\u4f9b\u4e86\u4e00\u79cd\u6784\u5efa\u548c\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u7684\u65b9\u5f0f\u3002\u65e0\u9700\u6784\u5efa\u5355\u4e2a\u5927\u578b\u201c\u6574\u4f53\u201d\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u662f\u6784\u5efa\u5c0f\u578b\u7684\u201c\u5c0f\u89c4\u6a21\u201d\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u4eec\u53ef\u4ee5\u5f88\u597d\u5730\u5b8c\u6210\u4e00\u4ef6\u4e8b\u548c\u4e00\u4ef6\u4e8b\u3002\u7136\u540e\uff0c\u60a8\u5c06\u6709\u591a\u4e2a\u53ef\u4ee5\u534f\u540c\u5de5\u4f5c\u4f46\u5f7c\u6b64\u72ec\u7acb\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u7531\u4e8e\u8fd9\u4e9b\u7ec4\u4ef6\u5f7c\u6b64\u72ec\u7acb\uff0c\u56e0\u6b64\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u6269\u5c55\u67d0\u4e9b\u5e94\u7528\u7a0b\u5e8f\u3002<\/span><\/p>\n \u4f8b\u5982\uff1a\u5728\u9ed1\u8272\u661f\u671f\u4e94\u671f\u95f4\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u542f\u52a8\u66f4\u591aPOS\u7cfb\u7edf\u5b9e\u4f8b\u6765\u5904\u7406\u5927\u91cf\u4ea4\u6613\u3002\u5728\u201c\u4f20\u7edf\u201d\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u60a8\u5c06\u5fc5\u987b\u90e8\u7f72\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u7684\u591a\u4e2a\u5b9e\u4f8b\uff0c\u8fd9\u53ef\u80fd\u5f88\u6d6a\u8d39\u3002<\/span><\/p>\n \u4e0eKubernetes\u4e00\u6837\uff0c<\/span>CI \/ CD\uff08\u8fde\u7eed\u96c6\u6210\/\u8fde\u7eed\u4ea4\u4ed8\uff09<\/span><\/a>\u4e5f\u9002\u7528\u4e8e\u5fae\u670d\u52a1\u3002\u60a8\u53ef\u4ee5\u5b8c\u5168\u81ea\u52a8\u5316\u5e94\u7528\u7a0b\u5e8f\u90e8\u7f72\u3002\u8003\u8651\u4ee5\u4e0b\u793a\u4f8b\uff1a\u60a8\u53ef\u80fd\u5177\u6709CI \/ CD\u7ba1\u9053\uff0c\u8be5\u7ba1\u9053\u4f1a\u5c06\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u6784\u5efa\u5230\u5bb9\u5668\u4e2d\uff0c\u7136\u540e\u66f4\u65b0Kubernetes\u914d\u7f6e\u4ee5\u4f7f\u7528\u6b64\u6700\u65b0\u5bb9\u5668\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u5c06\u4ee3\u7801\u63d0\u4ea4\u5230\u5b58\u50a8\u5e93\u3002<\/span><\/p>\n \u53e6\u4e00\u4e2a\u793a\u4f8b\u6d89\u53ca\u4f7f\u7528Kubernetes\u8f7b\u677e\u8c03\u5ea6\u6279\u5904\u7406\u4f5c\u4e1a\u3002\u5728\u8fd9\u79cd\u7528\u4f8b\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5b89\u6392\u5de5\u4f5c\u8d1f\u8f7d\u5728\u6ee1\u8db3\u60a8\u9700\u6c42\u7684\u7279\u5b9a\u65f6\u95f4\u8fd0\u884c\u3002\u4f7f\u7528Kubernetes\uff0c\u56e0\u4e3a\u5b83\u4eec\u662f\u5bb9\u5668\uff0c\u6240\u4ee5\u5b83\u5c06\u88ab\u90e8\u7f72\uff0c\u5b8c\u6210\u5176\u5de5\u4f5c\u7136\u540e\u88ab\u5220\u9664\u3002\u60a8\u4e0d\u5fc5\u62c5\u5fc3\u4ec5\u4e3a\u8be5\u6279\u5904\u7406\u4f5c\u4e1a\u4f7f\u7528\u4e13\u7528\u5b9e\u4f8b\uff0cKubernetes\u5c06\u786e\u4fdd\u60a8\u7684\u4f5c\u4e1a\u5728\u9700\u8981\u65f6\u8fd0\u884c\u3002<\/span><\/p>\n \u603b\u4f53\u800c\u8a00\uff0c\u5fae\u670d\u52a1\u8bbe\u8ba1\u6709\u4e24\u4e2a\u4e3b\u8981\u4f18\u70b9\uff1a<\/span><\/p>\n \u51c6\u5907\u5f00\u59cb\u4f7f\u7528Vultr Kubernetes\u8fdb\u884c\u6784\u5efa\u4e86\u5417\uff1f\u4e00\u8d77\u83b7\u5f97K8\u548cVultr\u7684\u6240\u6709\u597d\u5904\u3002\u5728\u6b64\u5904\u8bbf\u95ee<\/span>Vultr\u63d2\u4ef6\u4ee5<\/span><\/a>\u8bbf\u95eeTerraform<\/a>\u3002<\/span><\/p>\n \u542f\u52a8\u60a8\u7684Vultr Kubernetes\u96c6\u7fa4\uff01\u90e8\u7f72<\/span>Terraform Vultr Condor<\/span><\/a>\u3002\u6d4f\u89c8<\/span>Terraform Vultr\u6a21\u5757<\/span><\/a>\u4ee5\u83b7\u53d6\u66f4\u591a\u8d44\u6e90\u3002<\/span><\/p>\n\u4ec0\u4e48\u662fKubernetes\uff1f<\/span><\/h2>\n
<\/a><\/p>\n
\n
\n\u5047\u8bbe\u6211\u4eec\u90e8\u7f72\u4e86\u4e00\u4e2a\u5bb9\u5668\uff0c\u5e76\u4e14\u59cb\u7ec8\u5e0c\u671b\u5b83\u8fd0\u884c2\u4e2a\u5b9e\u4f8b\u3002Kubernetes\u5c06\u76d1\u89c6\u5e76\u786e\u4fdd\u59cb\u7ec8\u67092\u4e2a\u6b63\u5728\u8fd0\u884c\u3002\u5982\u679c\u8981\u5d29\u6e83\uff0c\u5b83\u5c06\u542f\u52a8\u4e00\u4e2a\u65b0\u5b9e\u4f8b\u4ee5\u786e\u4fdd\u6240\u9700\u76842\u72b6\u6001\u6b63\u5728\u8fd0\u884c\u3002<\/span><\/p>\n
\n\u5141\u8bb8\u5b9a\u4e49\u5bb9\u5668\u9700\u8981\u591a\u5c11CPU\u548cRAM\u3002Kubernetes\u5c06\u786e\u4fdd\u5bb9\u5668\u5177\u6709\u8bf7\u6c42\u7684\u53ef\u7528\u8d44\u6e90\uff0c\u7136\u540e\u5c06\u9009\u62e9\u9002\u5f53\u7684\u5de5\u4f5c\u7a0b\u5e8f\u8282\u70b9\u3002\u7531\u4e8e\u60a8\u4e0d\u4f1a\u6d6a\u8d39CPU \/\u5185\u5b58\uff0c\u56e0\u6b64\u53ef\u4ee5\u964d\u4f4e\u6210\u672c\u3002<\/span><\/li>\n
\n\u5982\u679c\u60a8\u6b63\u5728\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u591a\u4e2a\u5bb9\u5668\uff0c\u5219Kubernetes\u5c06\u5728\u8fd9\u4e9b\u5bb9\u5668\u4e4b\u95f4\u5206\u914d\u6d41\u91cf\u3002<\/span><\/li>\n
\n\u90e8\u7f72\u5bb9\u5668\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u79f0\u4e3a\u670d\u52a1\u7684Kubernetes\u7c7b\u578b\u516c\u5f00\u5b83\u4eec\uff0c\u5176\u884c\u4e3a\u7c7b\u4f3c\u4e8e<\/span>DNS<\/span><\/a>\u3002\u8fd9\u4f7f\u60a8\u7684\u5bb9\u5668\u53ef\u4ee5\u8f7b\u677e\u5730\u76f8\u4e92\u901a\u4fe1\u3002<\/span><\/li>\n<\/ul>\nKubernetes\u5982\u4f55\u5de5\u4f5c\uff1f<\/span><\/h2>\n
\n
<\/a><\/p>\n
\n
Kubernetes\u63d2\u4ef6<\/span><\/h2>\n
\n
\n
\u5e38\u89c1\u7684Kubernetes\u672f\u8bed\u5b9a\u4e49<\/span><\/h2>\n
\n
\u5f00\u53d1\u4eba\u5458\u5982\u4f55\u4f7f\u7528Kubernetes\uff1f<\/span><\/h2>\n
\n
\u5173\u4e8eVultr\u7684Kubernetes\u5f15\u64ce<\/span><\/h2>\n
\u52a0\u5165Kubernetes\u5bf9\u8bdd<\/span><\/h2>\n