{"id":736,"date":"2021-09-06T17:11:36","date_gmt":"2021-09-06T09:11:36","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=736"},"modified":"2021-09-06T17:11:36","modified_gmt":"2021-09-06T09:11:36","slug":"%e5%8a%a0%e9%80%9fkubernetes%e9%83%a8%e7%bd%b2%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2021\/09\/06\/736\/","title":{"rendered":"\u52a0\u901fKubernetes\u90e8\u7f72\u7684\u6700\u4f73\u5b9e\u8df5"},"content":{"rendered":"<section><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-740\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-33.jpg\" width=\"1080\" height=\"720\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-33.jpg 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-33-300x200.jpg 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-33-1024x683.jpg 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-33-768x512.jpg 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/section>\n<section>\u4f5c\u8005 | Tola Ore-Aruwaji<\/section>\n<section>\u8bd1\u8005 | \u5218\u96c5\u68a6<\/section>\n<section>\u7b56\u5212 | \u51cc\u654f<\/section>\n<section>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u6269\u5c55 Pod\u3001\u526f\u672c\u63a7\u5236\u5668\uff08Replication Controller\uff09\u4ee5\u53ca\u52a0\u901f Kubernetes \u90e8\u7f72\uff08Deployment\uff09\u7684\u6700\u4f73\u5b9e\u8df5\u3002<\/section>\n<p>Kubernetes Deployment \u662f\u5bf9 Pod \u6240\u671f\u671b\u72b6\u6001\u7684\u63cf\u8ff0\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 Deployment \u6765\u53d1\u5e03\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u5fae\u670d\u52a1\uff0c\u6216\u8005\u66f4\u65b0\u73b0\u6709\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u5fae\u670d\u52a1\u3002Deployment \u53ef\u4ee5\u6269\u5c55 Pod \u7684\u526f\u672c\u6570\uff0c\u53ef\u4ee5\u4ee5\u53ef\u63a7\u7684\u65b9\u5f0f\u6765\u53d1\u5e03\u66f4\u65b0\u540e\u7684\u4ee3\u7801\uff0c\u6216\u8005\u5728\u5fc5\u8981\u65f6\u56de\u6eda\u5230\u65e9\u671f\u7684\u90e8\u7f72\u7248\u672c\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u662f\u65e0\u72b6\u6001\u7684\uff08Stateless\uff09\uff0c\u5219\u53ef\u4ee5\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff08Horizontally Scale\uff09\u3002\u65e0\u72b6\u6001\u5e94\u7528\u7a0b\u5e8f\u610f\u5473\u7740\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u6ca1\u6709\u72b6\u6001\uff0c\u5b83\u6ca1\u6709\u4efb\u4f55\u672c\u5730\u6587\u4ef6\u5199\u5165\u5e76\u4e0d\u4fdd\u7559\u4efb\u4f55\u672c\u5730\u4f1a\u8bdd\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6709\u4e24\u4e2a Pod\uff0c\u5176\u4e2d\u4e00\u4e2a Pod \u9700\u5728\u672c\u5730\u5199\u4e1c\u897f\uff0c\u90a3\u4e48\u8fd9\u4e24\u4e2a Pod \u5c31\u4f1a\u4e0d\u540c\u6b65\u3002\u8fd9\u5c31\u610f\u5473\u7740\u6bcf\u4e2a Pod \u90fd\u6709\u81ea\u5df1\u7684\u72b6\u6001\uff0c\u5e76\u4e14\u4f60\u4e0d\u80fd\u6740\u6b7b\u5b83\u3002\u5982\u679c\u4e24\u4e2a Pod \u59cb\u7ec8\u5177\u6709\u76f8\u540c\u7684\u6587\u4ef6\uff0c\u90a3\u4e48\u5b83\u4eec\u5b9e\u9645\u4e0a\u4e0d\u4f1a\u6709\u81ea\u5df1\u7684\u72b6\u6001\uff0c\u5e76\u4e14\u5411\u5176\u4e2d\u4e00\u4e2a Pod \u53d1\u51fa\u7684\u8bf7\u6c42\u7ed3\u679c\u59cb\u7ec8\u4e0e\u5411\u53e6\u4e00\u4e2a Pod \u53d1\u51fa\u7684\u8bf7\u6c42\u7ed3\u679c\u76f8\u540c\uff0c\u90a3\u4e48\u8be5 Pod \u53ef\u80fd\u5c31\u662f\u65e0\u72b6\u6001\u7684\u3002<\/p>\n<ul class=\"list-paddingleft-2\">\n<li><strong>\u65e0\u72b6\u6001\u7684\uff08Stateless\uff09<\/strong>\uff1a\u5e94\u7528\u7a0b\u5e8f\u6ca1\u6709\u72b6\u6001\u3002\u5b83\u6ca1\u6709\u4efb\u4f55\u672c\u5730\u6587\u4ef6\u5199\u5165\u5e76\u4e0d\u4fdd\u7559\u4efb\u4f55\u672c\u5730\u4f1a\u8bdd\u3002<\/li>\n<li>\u6240\u6709\u7684\u4f20\u7edf\u6570\u636e\u5e93\uff08MYSQL\u3001 PostgreSQL\uff09\u90fd\u662f\u00a0<strong>\u6709\u72b6\u6001\u7684\uff08stateful\uff09<\/strong>\u3002\u5b83\u4eec\u5177\u6709\u4e0d\u80fd\u5728\u591a\u4e2a\u5b9e\u4f8b\u4e0a\u8fdb\u884c\u62c6\u5206\u7684\u6570\u636e\u5e93\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p>\u5927\u591a\u6570\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u90fd\u53ef\u4ee5\u88ab\u8bbe\u7f6e\u6210\u65e0\u72b6\u6001\u7684\uff1a<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u4f1a\u8bdd\u7ba1\u7406\u9700\u8981\u5728\u5bb9\u5668\u5916\u5b8c\u6210\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u4ece Web \u5e94\u7528\u7a0b\u5e8f\u4e0a\u83b7\u53d6\u70b9\u51fb\u91cf\uff0c\u5e76\u4e14\u60f3\u8981\u4fdd\u7559\u8bbf\u95ee\u8005\u7684\u4fe1\u606f\uff0c\u90a3\u4e48\u4f60\u9700\u8981\u4f7f\u7528\u5916\u90e8\u670d \u52a1\uff0c\u4f60\u4e0d\u80fd\u5c06\u8fd9\u4e9b\u6570\u636e\u5b58\u50a8\u5728\u5bb9\u5668\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 Memcache\u3001Redis \u751a\u81f3\u6570\u636e\u5e93\u6765\u5b58\u50a8\u4f1a\u8bdd\u3002<\/li>\n<li>\u4efb\u4f55\u9700\u8981\u4fdd\u5b58\u7684\u6587\u4ef6\u90fd\u4e0d\u80fd\u5728\u5bb9\u5668\u4e0a\u8fdb\u884c\u672c\u5730\u4fdd\u5b58\uff0c\u56e0\u4e3a\u5982\u679c\u4f60\u5173\u505c\u5e76\u91cd\u542f\u5bb9\u5668\uff0c\u6587\u4ef6\u5c06\u4f1a\u4e22\u5931\u3002\u56e0\u6b64\uff0c\u4efb\u4f55\u9700\u8981\u4fdd\u5b58\u7684\u6587\u4ef6\u90fd\u9700\u5b58\u50a8\u5728\u5bb9\u5668\u5916\u7684\u67d0\u4e9b\u5171\u4eab\u5b58\u50a8\u6216\u5916\u90e8\u670d\u52a1\uff08AWS\uff09\u4e0a\u3002\u5728 AWS \u4e0a\uff0c\u4f60\u53ef\u4ee5\u5c06\u5176\u4fdd\u5b58\u5728 S3 \u5bf9\u8c61\u5b58\u50a8\u4e0a\u3002<\/li>\n<li>\u90a3\u4e9b\u6709\u72b6\u6001\u7684\u5e94\u7528\u7a0b\u5e8f\u65e0\u6cd5\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff0c\u4f46\u4f60\u53ef\u4ee5\u5728\u5355\u4e2a\u5bb9\u5668\u4e2d\u8fd0\u884c\u5b83\u4eec\uff0c\u5e76\u8fdb\u884c\u00a0<strong>\u5782\u76f4\u6269\u5c55\uff08Vertically Scale\uff09<\/strong>\uff0c\u5206\u914d\u66f4\u591a CPU\/ \u5185\u5b58 \/ \u78c1\u76d8\u3002<\/li>\n<\/ul>\n<p>Kubernetes \u4e2d\u7684\u6269\u5c55\u53ef\u4ee5\u4f7f\u7528 Replication Controller \u6765\u5b8c\u6210\u3002<\/p>\n<p>Replication Controller\uff08\u526f\u672c\u63a7\u5236\u5668\uff09\u5c06\u786e\u4fdd\u59cb\u7ec8\u8fd0\u884c\u6307\u5b9a\u6570\u91cf\u7684 Pod \u526f\u672c\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u6307\u5b9a 5 \u4e2a Pod \u526f\u672c\uff0c\u5b83\u5c06\u4f1a\u8fd0\u884c\u540c\u4e00 Pod\uff0c\u4f46\u4f1a\u8fd0\u884c 5 \u6b21\u3002<\/p>\n<p>\u4f7f\u7528 Replication Controller \u521b\u5efa\u7684 Pod \u5982\u679c\u51fa\u73b0\u5931\u8d25\u3001\u88ab\u5220\u9664\u6216\u88ab\u7ec8\u6b62\uff0c\u5219\u8be5 Pod \u5c06\u4f1a <strong>\u88ab\u81ea\u52a8\u66ff\u6362<\/strong>\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u544a\u8bc9 Kubernetes \u8fd0\u884c\u4e94\uff085\uff09\u4e2a Pod\uff0c\u4f46\u7531\u4e8e\u67d0\u4e2a\u8282\u70b9\u5d29\u6e83\u4e86\uff0c\u53ea\u6709 4 \u4e2a Pod \u80fd\u6b63\u5e38\u8fd0\u884c\uff0c\u90a3\u4e48 Kubernetes \u5c06\u4f1a\u5728\u53e6\u5916\u7684\u4e00\u4e2a\u8282\u70b9\u4e0a\u518d\u53e6\u5916\u542f\u52a8\u4e00\u4e2a\u8be5 Pod \u7684\u5b9e\u4f8b\u3002<\/p>\n<p>\u5982\u679c\u4f60\u53ea\u662f\u60f3\u8981\u786e <strong>\u4fdd\u59cb\u7ec8\u6709 1 \u4e2a Pod \u80fd\u8fd0\u884c<\/strong>\uff0c\u5373\u4f7f\u662f\u5728\u91cd\u542f\u4e4b\u540e\uff0c\u90a3\u4e48\u5efa\u8bae\u4f60\u4e5f\u4f7f\u7528 Replication Controller\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u8fd0\u884c\u53ea\u6709 <strong>1 \u4e2a\u526f\u672c<\/strong> \u7684 Replication Controller\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u8be5 Pod \u59cb\u7ec8\u4f1a\u8fd0\u884c\uff0c\u5373\u4f7f\u662f\u5728\u8282\u70b9\u5d29\u6e83\u65f6\u3002<\/p>\n<section>\u4e3e\u4e2a\u4f8b\u5b50<\/section>\n<p>\u5728\u4e0b\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f1a\u5c06\u5e94\u7528\u590d\u5236 2 \u6b21\uff1a<\/p>\n<p>Replication Controller \u4e5f\u6709\u4e00\u4e2a\u89c4\u8303\uff08spec\uff09\u3002\u5728\u8fd9\u4e2a spec \u4e2d\uff0c\u6211\u4eec\u6709 2 \u4e2a\u526f\u672c\uff0c\u8fd9\u662f\u5e94\u7528\u7a0b\u5e8f hello world \u7684 Replication Controller\uff0c\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u6211\u4eec\u5c06\u9009\u62e9\u5668\uff08selector\uff09\u8bbe\u7f6e\u4e3a <code>app:helloworld<\/code> \uff0c\u5b83\u5c06\u9009\u62e9\u5e26\u6709<code>app:helloworld<\/code>\u7684\u6807\u7b7e\u3002<\/p>\n<p>\u7136\u540e\u6211\u4eec\u5c31\u6709\u4e00\u4e2a Pod \u7684\u5b9a\u4e49\u6a21\u677f\u3002Pod \u5b9a\u4e49\u4e5f\u6709 <code>metadata<\/code> \uff0c\u4e5f\u6709\u6807\u7b7e\uff0c\u4e0e\u4f60\u5728\u9009\u62e9\u5668\u4e0b\u770b\u5230\u7684\u76f8\u540c\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u6709\u4e86 <code>pod specification<\/code> \u3002\u8fd8\u6709\u4e00\u4e2a\u540d\u4e3a <code>docker-demo<\/code> \u5bb9\u5668\u53ca\u955c\u50cf\uff0c\u5e76\u4e14\u66b4\u9732\u4e86\u7aef\u53e3 <code>5000<\/code> \u3002<\/p>\n<pre><code>apiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\nname: hello-world-controller\r\nspec:\r\n  replicas: 2\r\n  selector:\r\n  app: hello-world\r\n    template:\r\n     metadata:\r\n      labels:\r\n        app: hello-world\r\n    spec:\r\n     containers:\r\n     - name: docker-demo\r\n    image: tolatemitope\/docker-demo\r\n    ports:\r\n    - containerPort: 5000\r\n<\/code><\/pre>\n<p>\u56e0\u6b64\uff0cReplication-Controller \u8981\u505a\u7684\u5c31\u662f\u8fd0\u884c\u4e24\u6b21\u6a21\u677f\u4e2d\u5b9a\u4e49\u7684 Pod\u3002<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u5b8c\u6210\u914d\u7f6e\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u00a0<code>kubectl create -f replicationcontroller.yaml<\/code>\u00a0\u8fdb\u884c\u521b\u5efa<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528\u00a0<code>kubectl get replicationcontroller<\/code>\u00a0\u6765\u786e\u8ba4\u68c0\u67e5\u4f60\u7684\u526f\u672c\u63a7\u5236\u5668\u662f\u5426\u6b63\u5728\u8fd0\u884c<\/li>\n<li>\u901a\u8fc7\u8fd9\u4e2a\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u662f\u5982\u4f55\u6c34\u5e73\u6269\u5c55 Pod \u7684\u3002\u6211\u4eec\u6709\u591a\u4e2a Pod \u6b63\u5728\u8fd0\u884c\uff0c\u4f60\u8fd8\u53ef\u4ee5\u5728\u5b83\u524d\u9762\u653e\u7f6e\u4e00\u4e2a\u670d\u52a1\uff0c\u6bd4\u5982\u8d1f\u8f7d\u5e73\u8861\u5668\uff0c\u4f7f\u5176\u4ed6\u8f6f\u4ef6\u6216\u5ba2\u6237\u53ef\u4ee5\u8bbf\u95ee\u4f60\u7684\u591a\u4e2a Pod\u3002\u5982\u679c\u4f60\u914d\u7f6e\u7684\u67d0\u4e2a Pod \u5d29\u6e83\uff0c\u63a7\u5236\u5668\u5c06\u4f1a\u81ea\u52a8\u91cd\u65b0\u7f16\u6392\u8fd9\u4e9b Pod\u3002<\/li>\n<li>\u5982\u679c\u8981\u79fb\u9664\u4e86\u5176\u4e2d\u7684\u67d0\u4e2a Pod\uff0c\u4f60\u4f1a\u770b\u5230\u526f\u672c\u63a7\u5236\u5668\u4f1a\u518d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Pod\u3002<\/li>\n<li>\u4f60\u53ef\u4ee5\u770b\u5230\u88ab\u7ec8\u6b62 Pod\uff0c\u4ee5\u53ca\u6b63\u5728\u521b\u5efa\u7684\u90a3\u4e2a\u65b0 Pod\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-741\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-97.png\" width=\"1080\" height=\"183\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-97.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-97-300x51.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-97-1024x174.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-97-768x130.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u63a5\u4e0b\u6765\u4f60\u4f1a\u770b\u5230 Pod \u88ab\u7ec8\u6b62\u540e\u53c8\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684 Pod\u3002\u4ece\u4e0b\u56fe\u53ef\u4ee5\u770b\u51fa\uff0c\u5728\u6211\u4eec\u5220\u9664\u6700\u540e\u4e00\u4e2a Pod \u540e\u7684 43 \u79d2\u540e\uff0c\u4e00\u4e2a\u65b0\u7684 Pod \u88ab\u521b\u5efa\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-742\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-98.png\" width=\"1080\" height=\"152\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-98.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-98-300x42.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-98-1024x144.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-98-768x108.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u4f60\u53ef\u4ee5\u968f\u65f6\u5bf9\u8fd9\u4e9b Pod \u8fdb\u884c\u6269\u5c55\uff0c\u53ef\u4ee5\u901a\u8fc7\u00a0<code>kubectl scale --replicas=4 -f (filename.yaml)<\/code>\u00a0\u547d\u4ee4\u6765\u5b9e\u73b0\uff0c\u5e76\u4e14\u6700\u7ec8\u4f60\u4f1a\u770b\u5230\u63a7\u5236\u5668\u8fdb\u884c\u4e86\u76f8\u5e94\u6269\u5c55\u3002<\/li>\n<li>\u56de\u5230\u4f60\u7684\u7ec8\u7aef\uff0c\u68c0\u67e5\u4e00\u4e0b\uff0c\u4f60\u4f1a\u53d1\u73b0\u7531\u4e8e\u8fdb\u884c\u4e86\u6269\u5bb9\u64cd\u4f5c\uff0c\u5df2\u7ecf\u521b\u5efa\u4e86 4 \u4e2a Pod\u3002<\/li>\n<li>\u53e6\u4e00\u79cd\u8fdb\u884c\u6269\u5c55\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u00a0<code>kubectl get rc<\/code>\u00a0\u6765\u83b7\u53d6\u526f\u672c\u63a7\u5236\u5668\u7684\u540d\u79f0\uff0c\u7136\u540e\u4f7f\u7528\u00a0<code>kubectl scale--replications=1 rc\/helloworld controller<\/code>\u00a0\u6765\u5bf9\u5176\u8fdb\u884c\u6269\u5c55\uff0c\u8fd0\u884c\u8be5\u547d\u4ee4\u518d\u6b21\u8fdb\u884c\u6269\u5c55\u3002<\/li>\n<li>\u518d\u6b21\u68c0\u67e5\u4f60\u7684 Pod\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e9b Pod \u5df2\u7ecf\u7ec8\u6b62\uff0c\u73b0\u5728\u53ea\u6709 1 \u4e2a Pod \u6b63\u5728\u8fd0\u884c\u3002<\/li>\n<li>\u6b63\u5982\u6211\u4eec\u524d\u9762\u8ba8\u8bba\u7684\u90a3\u6837\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\uff0c\u4f60\u53ea\u80fd\u5728 Pod \u662f\u65e0\u72b6\u6001\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u6269\u5c55\u3002\u5982\u679c Pod \u662f\u6709\u72b6\u6001\u7684\uff0c\u90a3\u4e48\u4f60\u5c06\u65e0\u6cd5\u6267\u884c\u8fd9\u4e9b\u64cd\u4f5c\u3002<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528\u00a0<code>kubectl delete rc\/helloworld-controller<\/code>\u00a0\u6765\u5220\u9664\u4f60\u7684\u526f\u672c\u5236\u63a7\u5236\u5668\uff0c\u6700\u540e\u4e00\u4e2a Pod \u5c06\u4f1a\u88ab\u7ec8\u6b62\u3002<\/li>\n<li>\u8fd9\u4e9b\u6269\u5c55\u64cd\u4f5c\u90fd\u4ee5\u540e\u7aef\u00a0<code>etcd<\/code>\u00a0\u7684\u5f62\u5f0f\u88ab\u4fdd\u5b58\u5728 Kubernetes \u4e2d\uff0c\u5b83\u4fdd\u5b58\u4e86\u6240\u6709\u8fd9\u4e9b\u8bbe\u7f6e\uff0c\u5982\u526f\u672c\u7684\u6570\u91cf\u3002\u4f60\u65e0\u9700\u603b\u662f\u5c06\u8fd9\u4e9b\u5185\u5bb9\u5199\u5165\u5230\u00a0<code>yaml<\/code>\u00a0\u6587\u4ef6\u4e2d\u3002<\/li>\n<\/ul>\n<section>Kubernetes Deployment<\/section>\n<section>\u4e0e Replication Set<\/section>\n<ul class=\"list-paddingleft-2\">\n<li><strong>Replica Set<\/strong>\uff08\u526f\u672c\u96c6\uff09\u662f\u4e0b\u4e00\u4ee3 Replication Controller\uff08\u526f\u672c\u63a7\u5236\u5668\uff09\u3002\u5b83\u652f\u6301\u4e86\u4e00\u4e2a\u65b0\u7684\u9009\u62e9\u5668\uff0c\u8be5\u9009\u62e9\u5668\u53ef\u4ee5\u6839\u636e\u4e00\u7ec4\u503c\u6765\u8fdb\u884c\u7b5b\u9009\u3002\u4f8b\u5982\uff0c\u73af\u5883\u53ef\u4ee5\u662f\u201cdev\u201d\u6216\u201cqa\u201d\uff0c\u5229\u7528\u526f\u672c\u96c6\uff0c\u8fdb\u884c\u66f4\u590d\u6742\u7684\u9009\u62e9\u5339\u914d\u3002<\/li>\n<li>Deployment \u5bf9\u8c61\u4f7f\u7528\u7684\u662f Replica Set\uff0c\u800c\u4e0d\u662f Replication Controller\u3002<\/li>\n<\/ul>\n<p>\u8ba9\u6211\u4eec\u770b\u4e00\u4e0b Kubernetes \u4e2d\u7684 <strong>Deployment\uff1a<\/strong><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>Deployment \u662f Kubernetes \u4e2d\u7684\u4e00\u4e2a\u58f0\u660e\uff0c\u901a\u8fc7\u5b83\u4f60\u53ef\u4ee5\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u90e8\u7f72\u548c\u66f4\u65b0\u3002\u4f7f\u7528 Deployment \u5bf9\u8c61\u65f6\uff0c\u5b9a\u4e49\u5e94\u7528\u7a0b\u5e8f\u7684\u00a0<strong>\u72b6\u6001\uff08state\uff09<\/strong>\u3002\u7136\u540e\uff0cKubernetes \u5c06\u786e\u4fdd\u96c6\u7fa4\u4e0e\u4f60\u6240\u671f\u5f85\u7684\u72b6\u6001\u76f8\u7b26\u3002<\/li>\n<li>\u4ec5\u4f7f\u7528 Replication Controller \u6216 Replication Set \u6765\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u5f88\u9ebb\u70e6\u3002\u66f4\u65b0\u548c\u56de\u6eda\u53ef\u80fd\u9700\u8981\u592a\u591a\u7684\u624b\u5de5\u5de5\u4f5c\u3002<\/li>\n<li>Deployment \u5bf9\u8c61\u66f4\u6613\u4e8e\u4f7f\u7528\uff0c\u5e76\u80fd\u4e3a\u4f60\u63d0\u4f9b\u66f4\u591a\u53ef\u80fd\u6027\u3002<\/li>\n<\/ul>\n<p>\u90a3\u4e48\u8fd9\u4e9b\u53ef\u80fd\u6027\u662f\u4ec0\u4e48\u5462?<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u521b\u5efa\u90e8\u7f72\uff08\u4f8b\u5982\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\uff09<\/li>\n<li>\u66f4\u65b0\u90e8\u7f72\uff08\u4f8b\u5982\u90e8\u7f72\u65b0\u7248\u672c\uff09<\/li>\n<li>\u6267\u884c\u6eda\u52a8\u66f4\u65b0\uff08\u96f6\u505c\u673a\u90e8\u7f72\uff09<\/li>\n<li>\u56de\u6eda\u5230\u4ee5\u524d\u7684\u7248\u672c\u3002<\/li>\n<li>\u6682\u505c \/ \u6062\u590d\u90e8\u7f72\uff08\u4f8b\u5982\uff0c\u4ec5\u90e8\u7f72\u5230\u6307\u5b9a\u767e\u5206\u6bd4\uff09<\/li>\n<\/ul>\n<pre><code>apiVersion: extensions\/v1beta1\r\nkind: Deployment\r\nmetadata:\r\nname: helloworld-deployment\r\nspec:\r\n  replicas: 3\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: helloworld\r\n   spec:\r\n     containers:\r\n     - name: docker-demo\r\n    image: tolatemitope\/docker-demo\r\n    ports:\r\n    - containerPort: 5000\r\n<\/code><\/pre>\n<p>\u5bf9\u4e8e\u4e0a\u9762\u7684 Deployment\uff0c\u6211\u4eec\u5c06\u5176\u547d\u540d\u4e3a <code>helloworld-deployment<\/code> \uff0c\u5176\u4e2d\u5305\u542b 3 \u4e2a\u526f\u672c\uff0c\u5bb9\u5668\u89c4\u8303\u4e0e\u6211\u4eec\u4e4b\u524d\u5728\u526f\u672c\u96c6\u4e2d\u4f7f\u7528\u7684\u89c4\u8303\u7c7b\u4f3c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-743\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-99.png\" width=\"1080\" height=\"109\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-99.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-99-300x30.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-99-1024x103.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-99-768x78.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<p>\u6240\u6709\u526f\u672c\u90fd\u662f\u6700\u65b0\u7684\uff0c\u5e76\u4e14\u8fd0\u884c\u7684\u662f\u6211\u4eec\u8981\u6c42\u7684\u6700\u65b0\u7248 <code>docker-demo<\/code> \u3002<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u00a0<code>kubectl get rs<\/code>\u00a0\u83b7\u53d6\u00a0<code>replica set<\/code><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-100.png\" width=\"1080\" height=\"100\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-100.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-100-300x28.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-100-1024x95.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-100-768x71.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<p>\u4f60\u65e0\u9700\u81ea\u5df1\u521b\u5efa\u526f\u672c\u96c6\uff0cKubernetes \u4f1a\u81ea\u52a8\u4e3a\u4f60\u521b\u5efa\u3002<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u68c0\u67e5\u4f60\u7684 Pod\uff0c\u5e76\u83b7\u53d6\u526f\u672c\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-745\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-101.png\" width=\"1080\" height=\"168\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-101.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-101-300x47.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-101-1024x159.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-101-768x119.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u663e\u793a Pod \u4e2d\u7684\u6807\u7b7e\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-746\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-102.png\" width=\"1080\" height=\"115\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-102.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-102-300x32.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-102-1024x109.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-102-768x82.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u4f7f\u7528\u00a0<code>kubectl expose deployment hello-world-deployment \u2014 type=NordPort<\/code>\u00a0\u53d1\u5e03\u4f60\u7684\u90e8\u7f72<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-747\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-103.png\" width=\"1080\" height=\"47\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-103.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-103-300x13.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-103-1024x45.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-103-768x33.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u4f7f\u7528\u00a0<code>kubectl get service<\/code>\u00a0\u83b7\u53d6\u670d\u52a1\uff0c\u4f60\u5c06\u770b\u5230\u8be5\u65b0\u521b\u5efa\u90e8\u7f72\u7684\u670d\u52a1\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-748\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-104.png\" width=\"1080\" height=\"93\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-104.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-104-300x26.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-104-1024x88.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-104-768x66.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u4f7f\u7528\u00a0<code>kubectl set image hello-world-deployment docker-demo=tolatemitope\/docker-demo:2<\/code>\u8bbe\u7f6e\u65b0\u955c\u50cf<\/li>\n<li>\u4f7f\u7528\u00a0<code>kubectl rollout status hello-world-deployment<\/code>\u00a0\u83b7\u53d6 rollout \u72b6\u6001\u3002<\/li>\n<\/ul>\n<section>\u9002\u7528\u4e8e Kubernetes Deployment<\/section>\n<section>\u7684\u547d\u4ee4<\/section>\n<ul class=\"list-paddingleft-2\">\n<li><code>kubectl get deployments<\/code>\u00a0-&gt; \u83b7\u53d6\u5f53\u524d\u90e8\u7f72\u7684\u4fe1\u606f<\/li>\n<li><code>kubectl get rs<\/code>\u00a0-&gt; \u83b7\u53d6\u526f\u672c\u96c6\u4fe1\u606f\u3002<\/li>\n<li><code>kubectl get pods --show-labels<\/code>\u00a0-&gt; \u83b7\u53d6 pods\uff0c\u5e76\u663e\u793a\u9644\u52a0\u5728 pods \u4e0a\u7684\u6807\u7b7e\u3002<\/li>\n<li><code>kubectl rollout status deployment\/(name of deployment)<\/code>\u00a0-&gt;\u83b7\u53d6\u90e8\u7f72\u72b6\u6001<\/li>\n<li><code>kubectl set image deployment\/helloworld-deployment docker-demo=docker-demo:2<\/code>\u00a0-&gt; \u4f7f\u7528\u7248\u672c\u53f7\u4e3a 2 \u7684\u65b0\u955c\u50cf\u8fd0\u884c docker-demo<\/li>\n<li><code>kubectl edit deployment\/helloworld-deployment<\/code>\u00a0-&gt; \u7f16\u8f91\u90e8\u7f72\u5bf9\u8c61<\/li>\n<li><code>kubectl rollout status deployment\/helloworld-deployment<\/code>\u00a0-&gt;\u83b7\u53d6 rollout \u72b6\u6001<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u9700\u5c06\u955c\u50cf\u66f4\u65b0\u5230\u65b0\u7248\u672c\uff0c\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528 rollout \u72b6\u6001\u6765\u67e5\u770b\u90e8\u7f72\u7684\u8fdb\u5ea6\u3002<\/p>\n<ul class=\"list-paddingleft-2\">\n<li><code>kubectl rollout history deployment\/helloworld-deployment<\/code>\u00a0-&gt; \u83b7\u53d6 rollout \u5386\u53f2\u8bb0\u5f55<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u53d1\u5e03\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u65b0\u7248\u672c\uff0c\u4f8b\u5982\u7248\u672c 3\uff0c\u5e76\u4e14\u4f60\u5e0c\u671b\u6062\u590d\u5230\u7248\u672c 2\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<ul class=\"list-paddingleft-2\">\n<li><code>kubectl rollout undo deployment\/helloworld-deployment<\/code>\u00a0-&gt; \u56de\u6eda\u5230\u524d\u4e00\u4e2a\u7248\u672c\u3002<\/li>\n<\/ul>\n<p>\u56de\u6eda\u5230\u7279\u5b9a\u7248\u672c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<ul class=\"list-paddingleft-2\">\n<li><code>kubectl rollout undo deployment\/helloworld-deployment --to-revision=n<\/code>\u00a0-&gt; \u56de\u6eda\u5230\u67d0\u4e2a\u66f4\u5177\u4f53\u7684\u7248\u672c\u3002<\/li>\n<\/ul>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<\/p>\n<p>https:\/\/levelup.gitconnected.com\/best-practices-for-accelerating-kubernetes-deployments-ece46ccd174c<\/p>\n<hr \/>\n<p>\u5185\u5bb9\u6765\u6e90\uff1aTola Ore-Aruwaji<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_736\" class=\"pvc_stats total_only  \" data-element-id=\"736\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005 | Tola Ore-Aruwaji \u8bd1\u8005 | \u5218\u96c5\u68a6 \u7b56\u5212 | \u51cc\u654f \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u6269\u5c55 Pod [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_736\" class=\"pvc_stats total_only  \" data-element-id=\"736\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":740,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/comments?post=736"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/736\/revisions"}],"predecessor-version":[{"id":749,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/736\/revisions\/749"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/740"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}