{"id":532,"date":"2020-08-12T14:57:45","date_gmt":"2020-08-12T06:57:45","guid":{"rendered":"http:\/\/123.57.164.21\/?p=532"},"modified":"2022-04-26T21:31:31","modified_gmt":"2022-04-26T13:31:31","slug":"openshift%e7%9a%84%e7%ae%80%e5%8d%95%e6%a6%82%e5%bf%b5","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=532","title":{"rendered":"OpenShift\u7684\u7b80\u5355\u6982\u5ff5"},"content":{"rendered":"\n<p><strong>Openshift<\/strong>\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5bb9\u5668\u4e91\u5e73\u53f0\uff0c\u5e95\u5c42\u57fa\u4e8e\u5f53\u524d\u5bb9\u5668\u7684\u4e8b\u5b9e\u6807\u51c6\u7f16\u6392\u7cfb\u7edf<a href=\"https:\/\/www.cnblogs.com\/yezhh\/p\/11446932.html#%E4%BB%80%E4%B9%88%E6%98%AFKubernetes\">Kubernetes<\/a>\u548cdocker\u5f15\u64ce\uff0c\u4e0a\u5c42\u66b4\u9732\u4e86\u5bf9\u5f00\u53d1\u8005\u53cb\u597d\u7684\u63a5\u53e3\u6765\u5b8c\u6210\u5bf9\u5e94\u7528\u7a0b\u5e8f\u7684\u96c6\u6210\u3001\u90e8\u7f72\u3001\u5f39\u6027\u4f38\u7f29\u7b49\u4efb\u52a1\uff0c\u4f01\u4e1a\u53ef\u4ee5\u57fa\u4e8e\u6b64\u5e73\u53f0\u642d\u5efa\u5185\u90e8<a href=\"https:\/\/www.cnblogs.com\/yezhh\/p\/11446932.html#%E4%BB%80%E4%B9%88%E6%98%AFPaas\">Paas<\/a>\u5e73\u53f0\uff0c\u8d2f\u7a7fCI\/CD\u6d41\u7a0b\uff0c\u63d0\u9ad8\u4f01\u4e1aIT\u6548\u7387\uff0c\u62e5\u62b1DevOps\u548c\u654f\u6377\u5f00\u53d1\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4ec0\u4e48\u662fPass<\/strong><\/h4>\n\n\n\n<p>PaaS\uff08Platform as a Service\uff0c\u5e73\u53f0\u5373\u670d\u52a1\uff09\u6700\u65e9\u662f\u5728\u4e91\u8ba1\u7b97\u9886\u57df\u88ab\u63d0\u51fa\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5c06\u4f01\u4e1aIT\u670d\u52a1\u5206\u4e3a\u4e5d\u5c42\uff0c\u4f20\u7edf\u81ea\u5efa\u6570\u636e\u4e2d\u5fc3\u4e5d\u5c42\u8bbe\u65bd\u90fd\u9700\u8981\u4f01\u4e1a\u81ea\u5df1\u7ef4\u62a4\uff0c\u6210\u672c\u6781\u9ad8\u3002\u800c\u4e91\u8ba1\u7b97\u67b6\u6784\u5c31\u76f8\u5f53\u4e8e\u628a\u4e5d\u5c42\u67b6\u6784\u4e2d\u7684\u5e95\u5c42\u4e00\u90e8\u5206\u5916\u5305\u7ed9\u4e91\u8ba1\u7b97\u670d\u52a1\u63d0\u4f9b\u5546\uff0c\u6839\u636e\u5916\u5305\u7684\u5c42\u6b21\u4e0d\u540c\uff0c\u5206\u4e3aIaaS(Infrastructure as a Service\uff0c\u57fa\u7840\u8bbe\u65bd\u5373\u670d\u52a1)\uff0cPaaS\uff0cSaaS\uff08Software as a Service\uff09\u4e09\u5c42\u3002<\/p>\n\n\n\n<ul><li>IaaS \u5c42\u4e3a\u57fa\u7840\u8bbe\u65bd\u8fd0\u7ef4\u4eba\u5458\u670d\u52a1\u3001\u63d0\u4f9b\u8ba1\u7b97\u3001\u5b58\u50a8\u3001\u7f51\u7edc\u4ee5\u53ca\u5176\u4ed6\u786c\u4ef6\u8d44\u6e90\uff0c\u4e91\u5e73\u53f0\u4f7f\u7528\u8005\u53ef\u4ee5\u5728\u4e0a\u9762\u90e8\u7f72\u548c\u8fd0\u884c\u5305\u62ec\u64cd\u4f5c\u7cfb\u7edf\u548c\u5e94\u7528\u7a0b\u5e8f\u5728\u5185\u7684\u4efb\u610f\u8f6f\u4ef6\uff0c\u65e0\u9700\u518d\u4e3a\u57fa\u7840\u8bbe\u65bd\u7684\u7ba1\u7406\u800c\u5206\u5fc3<\/li><li>PaaS \u5c42\u4e3a\u5e94\u7528\u5f00\u53d1\u4eba\u5458\u670d\u52a1\uff0c\u63d0\u4f9b\u652f\u6491\u5e94\u7528\u8fd0\u884c\u6240\u9700\u7684\u8f6f\u4ef6\u8fd0\u884c\u65f6\u73af\u5883\uff0c\u76f8\u5173\u7684\u5de5\u5177\u4e0e\u670d\u52a1\uff0c\u5982\u6570\u636e\u5e93\u670d\u52a1\u3001\u65e5\u5fd7\u670d\u52a1\u3001\u76d1\u63a7\u670d\u52a1\u7b49\uff0c\u8ba9\u5e94\u7528\u5f00\u53d1\u8005\u53ef\u4ee5\u4e13\u6ce8\u4e8e\u4ea4\u4ed8\u4e1a\u52a1\u4ef7\u503c\u7684\u4ee3\u7801\u800c\u65e0\u9700\u5173\u5fc3\u5e94\u7528\u6240\u9700\u7684\u57fa\u7840\u73af\u5883\u4e0e\u5de5\u5177\u3002<\/li><li>SaaS \u5c42\u4e3a\u4e00\u822c\u7528\u6237\uff08\u6700\u7ec8\u7528\u6237\uff09\u670d\u52a1\uff0c\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u53ef\u7528\u7684\u8f6f\u4ef6\u7cfb\u7edf\uff0c\u8ba9\u4e00\u822c\u7528\u6237\u65e0\u9700\u5173\u5fc3\u6280\u672f\u7ec6\u8282\uff0c\u53ea\u9700\u901a\u8fc7\u6d4f\u89c8\u5668\u3001\u5e94\u7528\u5ba2\u6237\u7aef\u7684\u65b9\u5f0f\u5c31\u80fd\u4f7f\u7528\u90e8\u7f72\u5728\u4e91\u4e0a\u7684\u5e94\u7528\u670d\u52a1\u3002SaaS \u4ea7\u54c1\u6bd4\u5982\u5ba2\u6237\u5173\u7cfb\u7ba1\u7406\u7cfb\u7edf\u3001\u90ae\u4ef6\u3001\u865a\u62df\u684c\u9762\u3001\u901a\u4fe1\u3001\u6e38\u620f\u7b49\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-30-1024x488.png\" alt=\"\" class=\"wp-image-534\" width=\"582\" height=\"277\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30-1024x488.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30-300x143.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30-768x366.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30-830x396.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30-230x110.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30-350x167.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30-480x229.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-30.png 1322w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/figure><\/div>\n\n\n\n<p>Docker\u63d0\u4f9b\u4e86\u5bf9\u6253\u5305\u548c\u521b\u5efa\u57fa\u4e8eLinux\u7684\u8f7b\u91cf\u7ea7\u5bb9\u5668\u7684\u62bd\u8c61\u3002\u800cKubernetes\u63d0\u4f9b\u4e86\u591a\u4e3b\u673a\u96c6\u7fa4\u7ba1\u7406\u548cDocker\u5bb9\u5668\u7f16\u6392\u3002OpenShift\u57fa\u4e8eDocker\u548cKubernetes\u52a0\u5165\u4e86\u65b0\u7684\u529f\u80fd\uff1a<\/p>\n\n\n\n<ul><li>\u6e90\u4ee3\u7801\u7ba1\u7406\u3001\u6784\u5efa\u548c\u90e8\u7f72<\/li><li>\u5728\u7cfb\u7edf\u4e2d\u96c6\u6210\u955c\u50cf\u7684\u7ba1\u7406<\/li><li>\u6309\u9700\u6269\u5c55\u7684\u5e94\u7528\u7a0b\u5e8f\u7ba1\u7406<\/li><li>\u5728\u5927\u578b\u5f00\u53d1\u8005\u7ec4\u7ec7\u4e2d\u8fdb\u884c\u56e2\u961f\u7ba1\u7406\u548c\u7528\u6237\u8ffd\u8e2a<\/li><\/ul>\n\n\n\n<p>OpenShift\u76f4\u63a5\u63d0\u4f9b\u652f\u6301\u7684\u5e94\u7528\u7a0b\u5e8f\u955c\u50cf\u6709\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"345\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-35-1024x345.png\" alt=\"\" class=\"wp-image-550\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35-1024x345.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35-300x101.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35-768x259.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35-830x280.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35-230x78.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35-350x118.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35-480x162.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-35.png 1352w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>OpenShift\u76f4\u63a5\u63d0\u4f9b\u652f\u6301\u7684\u6570\u636e\u5e93\u955c\u50cf\u6709\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"202\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-36-1024x202.png\" alt=\"\" class=\"wp-image-551\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36-1024x202.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36-300x59.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36-768x151.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36-830x163.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36-230x45.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36-350x69.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36-480x94.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-36.png 1382w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u9664\u6b64\u4e4b\u5916\uff0cOpenShift\u8fd8\u8ba9\u4f60\u901a\u8fc7\u4e00\u952e\u70b9\u51fb\u4fbf\u751f\u6210\u76f8\u5e94\u7684\u5e94\u7528\uff0c\u6bd4\u5982\u51e0\u79d2\u4e4b\u5185\u642d\u5efa\u597d\u4e00\u4e2aJenkins\u670d\u52a1\u3002\u5305\u62ec\u4ee5\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"149\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-37-1024x149.png\" alt=\"\" class=\"wp-image-552\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37-1024x149.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37-300x44.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37-768x111.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37-830x120.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37-230x33.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37-350x51.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37-480x70.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-37.png 1364w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">OpenShift\u67b6\u6784\u6982\u89c8<\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"565\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-38-1024x565.png\" alt=\"\" class=\"wp-image-553\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38-1024x565.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38-300x165.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38-768x424.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38-830x458.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38-230x127.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38-350x193.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38-480x265.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-38.png 1396w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u4ece\u4e0a\u56fe\u53ef\u4ee5\u770b\u51fa\uff0cOpenShift\u7684\u5178\u578b\u7528\u6237\u5206\u4e3a\u4e24\u79cd\uff0c\u5f00\u53d1\u4eba\u5458\u548c\u8fd0\u7ef4\u4eba\u5458\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u901a\u8fc7\u73b0\u6709\u7684\u4ee3\u7801\u7ba1\u7406\u5de5\u5177\u548c\u6301\u7eed\u96c6\u6210\u3001\u4ea4\u4ed8\u5de5\u5177\u5229\u7528OpenShift\u5b8c\u6210\u5bf9\u5e94\u7528\u7a0b\u5e8f\u7684\u6253\u5305\u3001\u90e8\u7f72\u3001\u6269\u5bb9\u64cd\u4f5c\u3002\u800c\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u7684\u81ea\u52a8\u5316\u5de5\u5177\u5b9e\u73b0\u5bf9OpenShift\u5e73\u53f0\u7684\u7ef4\u62a4\u3002<\/p>\n\n\n\n<p>OpenShift\u4e2d\u7684Kubernetes\u7528\u6765\u7ba1\u7406\u8de8\u5bbf\u4e3b\u673a\uff08\u6216\u5bb9\u5668\uff09\u7684\u5bb9\u5668\u5316\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u63d0\u4f9b\u90e8\u7f72\u3001\u7ef4\u62a4\u548c\u5e94\u7528\u7a0b\u5e8f\u6269\u5bb9\u673a\u5236\u3002\u5bf9\u4e8e\u4e00\u4e2aKubernetes\u96c6\u7fa4\u6765\u8bf4\uff0c\u5b83\u5305\u62ec\u4e00\u4e2a\u6216\u591a\u4e2amaster\u4ee5\u53ca\u4e00\u7ec4node\u3002<\/p>\n\n\n\n<p>Master\u4e3b\u673a\u6258\u7ba1\u4e86API\u670d\u52a1\u5668\u3001controller manager\u670d\u52a1\u5668\u4ee5\u53caetcd\u5b9e\u4f8b\u3002Master\u7ba1\u7406Kubernetes\u96c6\u7fa4\u4e2d\u7684\u8282\u70b9\u5e76\u63a7\u5236\u8fd0\u884c\u5728\u8282\u70b9\u4e0a\u7684pod\u3002<\/p>\n\n\n\n<p>Node\u5219\u63d0\u4f9b\u4e86\u5bb9\u5668\u7684\u8fd0\u884c\u65f6\u73af\u5883\u3002Kubernetes\u8282\u70b9\u4e2d\u7684\u6bcf\u4e2anode\u4f1a\u8fd0\u884c\u53d7Master\u7ba1\u7406\u7684\u670d\u52a1\uff0c\u5f53\u7136\u4e5f\u5305\u62ecDocker\u3001Kubelet\u53caserverice proxy\u670d\u52a1\u3002node\u53ef\u4ee5\u4e3a\u4e91\u673a\u5668\u3001\u7269\u7406\u7cfb\u7edf\u6216\u8005\u865a\u62df\u7cfb\u7edf\u3002Kubelet\u7528\u6765\u66f4\u65b0node\u4e0a\u7684\u8fd0\u884c\u7684\u5bb9\u5668\u72b6\u6001\u3002Service Proxy\u7528\u4e8e\u8fd0\u884c\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u7edc\u4ee3\u7406\uff0c\u6765\u53cd\u6620\u5b9a\u4e49\u5728node\u7684API\u4e2d\u7684\u670d\u52a1\uff0c\u4ece\u800c\u4f7fnode\u53ef\u4ee5\u8de8\u540e\u7aef\u8fdb\u884c\u7b80\u5355\u7684TCP\u548cUDP\u6d41\u8f6c\u53d1\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">OpenShift\u67b6\u8bbe\u8981\u6c42<\/h4>\n\n\n\n<p>\u5982\u679c\u60f3\u81ea\u5df1\u67b6\u8bbeOpenShift\u5e73\u53f0\u4f5c\u4e3a\u5546\u4e1a\u7528\u9014\uff0c\u5fc5\u987b\u8981\u83b7\u53d6OpenShift Enterprise\u7684\u4ed8\u8d39\u8ba2\u9605\u3002\u76ee\u524dOpenShift Enterprise\u7684\u6700\u65b0\u7248\u672c\u4e3a3.6\u7248\u3002\u5bf9\u4e8eMaster\u548cNode\u8282\u70b9\u7684\u7cfb\u7edf\u8981\u6c42\u5982\u4e0b\u3002<\/p>\n\n\n\n<p><strong>Master:<\/strong><\/p>\n\n\n\n<ul><li>\u7269\u7406\u6216\u865a\u62df\u673a\uff0c\u6216\u8005\u8fd0\u884c\u4e8e\u516c\u6709\u4e91\u6216\u79c1\u6709\u4e91\u4e4b\u4e0a\u7684\u5b9e\u4f8b<\/li><li>\u57fa\u7840\u64cd\u4f5c\u7cfb\u7edf\u4e3aRed Hat\u4f01\u4e1a\u7248Linux\uff08RHEL\uff097.1\uff0c\u5e76\u5305\u542b\u6700\u5c0f\u7684\u5b89\u88c5\u9009\u9879<\/li><li>2\u6838CPU<\/li><li>\u6700\u5c0f8GB\u5185\u5b58<\/li><li>\u6700\u5c0f30GB\u786c\u76d8\u7a7a\u95f4<\/li><\/ul>\n\n\n\n<p><strong>Node\uff1a<\/strong><\/p>\n\n\n\n<ul><li>\u7269\u7406\u6216\u865a\u62df\u673a\uff0c\u6216\u8005\u8fd0\u884c\u4e8e\u516c\u6709\u4e91\u6216\u79c1\u6709\u4e91\u4e4b\u4e0a\u7684\u5b9e\u4f8b<\/li><li>\u57fa\u7840\u64cd\u4f5c\u7cfb\u7edf\u4e3aRed Hat\u4f01\u4e1a\u7248Linux\uff08RHEL\uff097.1\uff0c\u5e76\u5305\u542b\u6700\u5c0f\u7684\u5b89\u88c5\u9009\u9879<\/li><li>Docker 1.6.2\u53ca\u4ee5\u4e0a\u7248\u672c<\/li><li>1\u6838CPU<\/li><li>\u6700\u5c0f8GB\u5185\u5b58<\/li><li>\u6700\u5c0f15GB\u786c\u76d8\u7a7a\u95f4<\/li><li>\u53e6\u5916\u6700\u5c0f15GB\u7684\u672a\u5206\u914d\u7a7a\u95f4\uff0c\u9700\u8981\u901a\u8fc7docker-storage-setup\u8fdb\u884c\u914d\u7f6e<\/li><\/ul>\n\n\n\n<p><strong>\u73af\u5883\u8981\u6c42\uff1a<\/strong><\/p>\n\n\n\n<ul><li>\u9700\u8981\u4e00\u4e2aDNS zone\u6765\u89e3\u6790OpenShift router\u7684IP\u5730\u5740\u3002\u6bd4\u5982*.cloudapps.example.com. 300 IN A 192.168.133.2<\/li><li>Master\u548cNode\u4e4b\u95f4\u5fc5\u987b\u8981\u6709\u5171\u4eab\u7684\u7f51\u7edc\uff0c\u4e24\u8005\u4e4b\u95f4\u53ef\u4ee5\u4e92\u76f8\u901a\u8baf\u3002<\/li><li>\u9700\u8981\u4e00\u4e2aGit Server\u548c\u80fd\u591f\u8bbf\u95ee\u8be5Server\u7684\u8d26\u53f7\u3002<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">AWS\u4e2d\u90e8\u7f72OpenShift\u5e73\u53f0<\/h4>\n\n\n\n<p>\u4e0b\u56fe\u662f\u4e00\u4e2a\u5728AWS\u4e2d\u7684OpenShift\u96c6\u7fa4\u7684\u793a\u4f8b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"520\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-39-1024x520.png\" alt=\"\" class=\"wp-image-554\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39-1024x520.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39-300x152.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39-768x390.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39-830x421.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39-230x117.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39-350x178.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39-480x244.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-39.png 1410w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<ul><li>Master\u8282\u70b9\uff1a\u5305\u542b3\u4e2aMaster\u5b9e\u4f8b\uff0c\u5b9e\u73b0\u9ad8\u53ef\u7528\uff0c\u4e0a\u9762\u8fd0\u884cetcd\u3001\u901a\u8fc7\u4e00\u4e2aexternal load balancer\u5411\u5916\u66b4\u9732\u670d\u52a1\u3002<\/li><li>Infra Node: \u7531\u4e09\u4e2a\u5b9e\u4f8b\u7ec4\u6210\uff0c\u8fd9\u4e09\u4e2a\u5b9e\u4f8b\u7528\u6765\u8fd0\u884c\u652f\u6491OpenShift\u96c6\u7fa4\u670d\u52a1\u7684\u4e00\u7cfb\u5217\u5bb9\u5668\u3002<\/li><li>App Node\uff1a\u7528\u4e8e\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u5bb9\u5668\u7684\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u6309\u9700\u8fdb\u884c\u6269\u5c55\u3002<\/li><li>Bastion\uff1a\u7528\u4e8e\u9650\u5236\u5bf9\u96c6\u7fa4\u4e2d\u5b9e\u4f8b\u7684ssh\u8bbf\u95ee\uff0c\u589e\u5f3a\u5b89\u5168\u6027\u3002<\/li><li>\u5b58\u50a8\uff1aOpenShift\u4f7f\u7528EBS\u4f5c\u4e3a\u5b9e\u4f8b\u7684\u6587\u4ef6\u7cfb\u7edf\u5e76\u7528\u4e8e\u6301\u4e45\u5316\u5bb9\u5668\u7684\u5b58\u50a8\uff1b\u53e6\u5916\u8fd8\u4f7f\u7528S3\u8fd9\u4e2a\u5bf9\u8c61\u5b58\u50a8\u670d\u52a1\u4f5c\u4e3aOpenShift registry\u7684\u5b58\u50a8\u3002 ELB\uff1a\u603b\u5171\u6709\u4e09\u4e2a.\u4e00\u4e2a\u7528\u6765\u5728\u96c6\u7fa4\u5916\u8bbf\u95eeOpenShift API\u3001OpenShift console\u3002\u4e00\u4e2a\u5728\u96c6\u7fa4\u5185\u8bbf\u95eeOpenShift API\u3002\u53e6\u4e00\u4e2a\u7528\u6765\u8bbf\u95ee\u901a\u8fc7route\u66b4\u9732\u7684\u90e8\u7f72\u5728\u96c6\u7fa4\u4e2d\u7684\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u3002\u6700\u540e\u901a\u8fc7AWS\u7684Route53\u6765\u7ba1\u7406DNS\u3002<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\u90e8\u7f72OpenShift\u96c6\u7fa4\u7684\u4e09\u4e2a\u9636\u6bb5<\/h4>\n\n\n\n<p>\u5728AWS\u4e2d\u90e8\u7f72OpenShift\u96c6\u7fa4\u5305\u62ec\u4e09\u4e2a\u9636\u6bb5\uff1a<\/p>\n\n\n\n<ul><li>\u7b2c\u4e00\u9636\u6bb5\uff1a\u5728AWS\u4e2d\u8bbe\u7f6e\u597d\u57fa\u7840\u8bbe\u65bd<\/li><li>\u7b2c\u4e8c\u9636\u6bb5\uff1a \u5728AWS\u4e0a\u90e8\u7f72OpenShift Container\u5e73\u53f0<\/li><li>\u7b2c\u4e09\u9636\u6bb5\uff1a \u90e8\u7f72\u540e\u7684\u73af\u5883\u68c0\u67e5<\/li><\/ul>\n\n\n\n<p>\u5173\u4e8e\u6574\u4e2a\u90e8\u7f72\u6d3b\u52a8\u7edd\u5927\u591a\u6570\u90fd\u662f\u53ef\u4ee5\u81ea\u52a8\u5316\u7684\u3002RedHat\u63d0\u4f9b\u4e86\u4e00\u4e2aGitHub repo\uff1aopenshift-ansible-contrib\u3002openshift-ansible-contrib\u63d0\u4f9b\u4e86\u5c06OpenShift\u96c6\u7fa4\u90e8\u7f72\u5230\u4e0d\u540c\u7684Cloud\u4f9b\u5e94\u5546\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5f53\u7136\u4e5f\u5305\u62ec\u4e86AWS\u3002\u91cc\u9762\u5305\u542b\u4e86\u76f8\u5e94\u7684\u6587\u6863\u3001\u4ee3\u7801\u4ee5\u53ca\u811a\u672c\u3002RedHat\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53eb\u505aopenshift-ansible-playbooks\u7684RPM\u5305\uff0copenshift-ansible-contrib\u5229\u7528\u8be5RPM\u5305\u6765\u5b8c\u6210\u9636\u6bb51\u548c\u9636\u6bb52\uff0c\u5728\u9636\u6bb53\u4e2d\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u4e00\u4e9b\u73b0\u6709\u7684\u811a\u672c\u5de5\u5177\u5b9e\u73b0\u73af\u5883\u68c0\u67e5\u548c\u8ba4\u8bc1\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\u603b\u7ed3<\/h4>\n\n\n\n<p>\u5728AWS\u4e0a\u90e8\u7f72OpenShift\u5e73\u53f0\u5e76\u4e0d\u662f\u4e00\u4ef6\u8f7b\u677e\u7684\u4e8b\u60c5\uff0c\u4e00\u65b9\u9762\u9700\u8981\u5bf9AWS\u7684\u5404\u79cd\u670d\u52a1\u4e86\u5982\u6267\u638c\uff0c\u4e00\u65b9\u9762\u4e5f\u9700\u8981\u5bf9OpenShift\u7684\u67b6\u6784\u548c\u6838\u5fc3\u6982\u5ff5\u6709\u6240\u4e86\u89e3\u3002\u867d\u7136RedHat\u63d0\u4f9b\u4e86\u4e00\u4e9bAnsible\u811a\u672c\u548cRPM\u5305\u6765\u7b80\u5316\u5b89\u88c5\uff0c\u4f46\u6574\u4e2a\u8fc7\u7a0b\u4e5f\u7edd\u975e\u4e00\u7247\u5766\u9014\u3002\u5b89\u88c5\u5b8c\u5907\u4e4b\u540e\uff0c\u5982\u4f55\u548c\u4f01\u4e1a\u73b0\u6709\u7684\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u6d41\u7a0b\u3001\u6301\u7eed\u4ea4\u4ed8\u6d41\u6c34\u7ebf\u7ed3\u5408\u8d77\u6765\u65e0\u7f1d\u8fc7\u5ea6\uff0c\u4e5f\u662f\u4e00\u4ef6\u975e\u5e38\u8003\u9a8c\u4eba\u7684\u4e8b\u60c5\u3002\u4e0b\u4e00\u7bc7\u6587\u7ae0\u4f1a\u5bf9\u8fd9\u4e9b\u65b9\u9762\u8fdb\u884c\u63ed\u79d8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Openshift\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5bb9\u5668\u4e91\u5e73\u53f0\uff0c\u5e95\u5c42\u57fa\u4e8e\u5f53\u524d\u5bb9\u5668\u7684\u4e8b\u5b9e\u6807\u51c6\u7f16\u6392\u7cfb\u7edfKubernetes\u548cdocker [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/532"}],"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=532"}],"version-history":[{"count":6,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/532\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/532\/revisions\/555"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}