{"id":10814,"date":"2023-02-27T16:06:05","date_gmt":"2023-02-27T08:06:05","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=10814"},"modified":"2023-06-27T11:41:06","modified_gmt":"2023-06-27T03:41:06","slug":"gcdw%e6%8a%80%e6%9c%af%e6%a0%88-kubernets%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/10814","title":{"rendered":"\u5357\u5927\u901a\u7528GCDW\u6280\u672f\u6808-kubernets\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u51c6\u5907"},"content":{"rendered":"<p>GBase 8a\u4e91\u6570\u4ed3gcdw\u8fd0\u884c\u5728k8s\u4e0a\uff0c\u672c\u6587\u662fk8s\u5b89\u88c5\u524d\u7684\u51c6\u5907\u5de5\u4f5c\uff0c\u4e3b\u8981\u662f\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u7684\u4fee\u6539\u914d\u7f6e\u3002\u6240\u6709\u53d8\u52a8\u5747\u53c2\u8003\u4e86\u5b98\u7f51\u7684\u6587\u6863\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2b15016cf6d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2b15016cf6d\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E6%A0%B7%E4%BE%8B%E8%AF%B4%E6%98%8E\" >\u6837\u4f8b\u8bf4\u660e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E4%B8%BB%E6%9C%BA%E5%90%8D\" >\u4e3b\u673a\u540d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E5%85%B3%E9%97%ADSWAP\" >\u5173\u95edSWAP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E6%A3%80%E6%9F%A5MAC%E5%9C%B0%E5%9D%80\" >\u68c0\u67e5MAC\u5730\u5740<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E6%A3%80%E6%9F%A5UUID\" >\u68c0\u67e5UUID<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E6%A3%80%E6%9F%A5%E7%AB%AF%E5%8F%A3\" >\u68c0\u67e5\u7aef\u53e3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E5%85%B3%E9%97%ADselinux\" >\u5173\u95edselinux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E5%85%B3%E9%97%AD%E9%98%B2%E7%81%AB%E5%A2%99\" >\u5173\u95ed\u9632\u706b\u5899<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#docker%E8%BF%90%E8%A1%8C%E6%97%B6%E7%8E%AF%E5%A2%83\" >docker\u8fd0\u884c\u65f6\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E8%AE%BE%E7%BD%AE_sysctl_%E5%8F%82%E6%95%B0\" >\u8bbe\u7f6e sysctl \u53c2\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#yum%E6%BA%90%E8%AE%BE%E7%BD%AE\" >yum\u6e90\u8bbe\u7f6e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E5%AE%89%E8%A3%85systemd-resolved\" >\u5b89\u88c5systemd-resolved<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#FoundationDB%E7%9A%84%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9\" >FoundationDB\u7684\u6ce8\u610f\u4e8b\u9879<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.gbase8.cn\/en\/10814\/#%E4%B8%8B%E4%B8%80%E6%AD%A5\" >\u4e0b\u4e00\u6b65<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>GCDW \u9700\u8981foundationdb\u4f5c\u4e3a\u5143\u6570\u636e\u670d\u52a1\uff0c\u7528s3\u4f5c\u4e3a\u5b58\u50a8\u670d\u52a1\uff0c\u955c\u50cf\u670d\u52a1\u5668(harbor)\u3002\u8fd9\u4e9b\u670d\u52a1\u5668\uff0c\u5efa\u8bae\u5355\u72ec\u90e8\u7f72\uff0c\u4e0d\u8981\u53efk8s\u73af\u5883\u90e8\u7f72\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u3002\u6700\u7ec8\u80fd\u8fd0\u884cgcdw\u7684\u5355\u8282\u70b9k8s,<span class=\"has-inline-color has-luminous-vivid-orange-color\"><strong>\u6700\u5c11\u9700\u89818\u6838CPU\u30018G\u5185\u5b58<\/strong><\/span>\uff0c\u53ea\u7528\u4e8e\u4f53\u9a8c\u73af\u5883\uff0c\u6bd4\u5982\u7b14\u8bb0\u672c\u865a\u62df\u673a\u4e0a\u3002<\/p>\n\n\n\n<p>\u8bf7\u5206\u522b\u53c2\u8003<\/p>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/8116\/\">GCDW\u5143\u6570\u636e\u670d\u52a1FoundationDB\u7684\u96c6\u7fa4\u6a21\u5f0f\u914d\u7f6e\u548c\u9ad8\u53ef\u7528\u6d4b\u8bd5<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/9992\/\">MinIO S3\u5206\u5e03\u5f0f\u96c6\u7fa4\u642d\u5efa<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/10741\/\">GCDW\u6280\u672f\u6808\uff0c\u955c\u50cf\u4ed3\u5e93harbor\u5b89\u88c5\uff0c\u5305\u62echttps \u670d\u52a1CA\u8bc1\u4e66\u7684\u751f\u6210(openssl)<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A0%B7%E4%BE%8B%E8%AF%B4%E6%98%8E\"><\/span>\u6837\u4f8b\u8bf4\u660e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u672c\u6587\u572810.0.2.81\uff0c\u4e3b\u673a\u540d\u4e3a k8s-81\u7684centos 7.9\u4e0a\u5b89\u88c5k8s\u73af\u5883\u3002\u540c\u65f6\u4e3a\u53e6\u59162\u53f0\uff0c\u51713\u53f0\uff08\uff09\u505a\u51c6\u5907\u3002\u672c\u6587\u4ecb\u7ecd\u4ee5k8s-81\u4e3a\u53c2\u8003\uff0c\u53e6\u59162\u53f0\u7684\u5c31\u4e0d\u5199\u4e86\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u64cd\u4f5c\u5168\u90e8\u5728\u64cd\u4f5c\u7cfb\u7edfroot\u7528\u6237\u4e0b\u8fdb\u884c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%BB%E6%9C%BA%E5%90%8D\"><\/span>\u4e3b\u673a\u540d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u914d\u7f6e\u6587\u4ef6\u4e3a\/etc\/hosts\uff0c\u6700\u7ec8\u4e3a3\u53f0\u670d\u52a1\u5668\uff0c\u5176\u4e2d\u7b2c\u4e00\u53f0\u505amaster, \u4e09\u53f0\u5168\u90e8\u505aworker\u3002\u672c\u6587\u73b0\u572881\u4e0a\u642d\u5efa\u5355\u8282\u70b9\u7684k8s\uff0c\u540e\u7eed\u518d\u6269\u5bb9\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>&#91;root@k8s-81 ~]# cat \/etc\/hosts\n127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4\n::1         localhost localhost.localdomain localhost6 localhost6.localdomain6\n10.0.2.81   k8s-81\n10.0.2.82   k8s-82\n10.0.2.83   k8s-83\n\n&#91;root@k8s-81 ~]#<\/code><\/pre>\n\n\n\n<p>\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>hostnamectl set-hostname k8s-81<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B3%E9%97%ADSWAP\"><\/span>\u5173\u95edSWAP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>swapoff -a<\/code><\/pre>\n\n\n\n<p>\u6ce8\u91ca\/etc\/fstab\u91cc\u9762swap\u90e8\u5206<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>&#91;root@k8s-81 ~]# cat \/etc\/fstab\n#\n# \/etc\/fstab\n# Created by anaconda on Fri Feb 10 10:18:48 2023\n#\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk'\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info\n#\nUUID=5cf16afe-8cd2-480b-81a3-a282871e69ca \/                       xfs     defaults        0 0\nUUID=83bfb85c-2769-442a-9bd4-960020d27172 \/boot                   xfs     defaults        0 0\n#UUID=a99cdd73-9785-41d1-9d15-6789186aa18b swap                    swap    defaults        0 0\n&#91;root@k8s-81 ~]#<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A3%80%E6%9F%A5MAC%E5%9C%B0%E5%9D%80\"><\/span>\u68c0\u67e5MAC\u5730\u5740<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e3b\u673a\u7684MAC\u5730\u5740\u4e0d\u80fd\u4e00\u6837\uff0c\u5e38\u89c1\u4e8e\u865a\u62df\u673a\u590d\u5236\u7684\u573a\u666f\u3002 \u53ef\u4ee5\u5728\u865a\u62df\u673a\u7f51\u5361\u7ba1\u7406\u91cc\uff0c\u8bbe\u7f6e\u6216\u91cd\u65b0\u751f\u6210MAC\u6765\u89e3\u51b3\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>&#91;root@k8s-1 ~]# ip link\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\n    link\/ether <span class=\"has-inline-color has-luminous-vivid-orange-color\">08:00:27:b1:15:fe<\/span> brd ff:ff:ff:ff:ff:ff\n3: virbr0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000\n    link\/ether 52:54:00:63:df:29 brd ff:ff:ff:ff:ff:ff\n4: virbr0-nic: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT group default qlen 1000\n    link\/ether 52:54:00:63:df:29 brd ff:ff:ff:ff:ff:ff\n&#91;root@k8s-1 ~]#\n&#91;root@k8s-2 ~]# ip link\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\n    link\/ether <span class=\"has-inline-color has-luminous-vivid-orange-color\">08:00:27:60:36:23<\/span> brd ff:ff:ff:ff:ff:ff\n3: virbr0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000\n    link\/ether 52:54:00:63:df:29 brd ff:ff:ff:ff:ff:ff\n4: virbr0-nic: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT group default qlen 1000\n    link\/ether 52:54:00:63:df:29 brd ff:ff:ff:ff:ff:ff\n&#91;root@k8s-2 ~]#\n&#91;root@k8s-3 ~]# ip link\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\n    link\/ether <span class=\"has-inline-color has-luminous-vivid-orange-color\">08:00:27:2d:a3:56<\/span> brd ff:ff:ff:ff:ff:ff\n3: virbr0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000\n    link\/ether 52:54:00:63:df:29 brd ff:ff:ff:ff:ff:ff\n4: virbr0-nic: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT group default qlen 1000\n    link\/ether 52:54:00:63:df:29 brd ff:ff:ff:ff:ff:ff\n&#91;root@k8s-3 ~]#<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A3%80%E6%9F%A5UUID\"><\/span>\u68c0\u67e5UUID<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e0d\u80fd\u51fa\u73b0\u91cd\u590d\u7684<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>&#91;root@k8s-1 ~]# cat \/sys\/class\/dmi\/id\/product_uuid\n0E53E13A-1D5F-774D-99FC-16E6C0B79B97\n&#91;root@k8s-1 ~]#<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A3%80%E6%9F%A5%E7%AB%AF%E5%8F%A3\"><\/span>\u68c0\u67e5\u7aef\u53e3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u9ed8\u8ba4\u76846443\u7aef\u53e3\u4e0d\u80fd\u88ab\u5360\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>&#91;root@k8s-1 ~]# nc 127.0.0.1 6443\nNcat: Connection refused.\n&#91;root@k8s-1 ~]#<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B3%E9%97%ADselinux\"><\/span>\u5173\u95edselinux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>setenforce 0\nsed -i 's\/^SELINUX=enforcing$\/SELINUX=permissive\/' \/etc\/selinux\/config<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B3%E9%97%AD%E9%98%B2%E7%81%AB%E5%A2%99\"><\/span>\u5173\u95ed\u9632\u706b\u5899<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>systemctl stop firewalld\nsystemctl disable firewalld\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"docker%E8%BF%90%E8%A1%8C%E6%97%B6%E7%8E%AF%E5%A2%83\"><\/span>docker\u8fd0\u884c\u65f6\u73af\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>cat &lt;&lt;EOF | sudo tee \/etc\/modules-load.d\/k8s.conf\noverlay\nbr_netfilter\nEOF\n\nsudo modprobe overlay\nsudo modprobe br_netfilter<\/code><\/pre>\n\n\n\n<p>\u68c0\u67e5<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>lsmod | grep br_netfilter\nlsmod | grep overlay<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%BE%E7%BD%AE_sysctl_%E5%8F%82%E6%95%B0\"><\/span>\u8bbe\u7f6e sysctl \u53c2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>cat &lt;&lt;EOF | sudo tee \/etc\/sysctl.d\/k8s.conf\nnet.bridge.bridge-nf-call-iptables  = 1\nnet.bridge.bridge-nf-call-ip6tables = 1\nnet.ipv4.ip_forward                 = 1\nEOF\n\n# \u5e94\u7528 sysctl \u53c2\u6570\u800c\u4e0d\u91cd\u65b0\u542f\u52a8\nsudo sysctl --system<\/code><\/pre>\n\n\n\n<p>\u68c0\u67e5<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>sysctl net.bridge.bridge-nf-call-iptables net.bridge.bridge-nf-call-ip6tables net.ipv4.ip_forward<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"yum%E6%BA%90%E8%AE%BE%E7%BD%AE\"><\/span>yum\u6e90\u8bbe\u7f6e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8bbe\u7f6e\uff0c\u5982\u4e0b\u53ea\u662f\u4e00\u79cd\u6e90\u3002\u5305\u62ec\u57fa\u7840\uff0cdocker\u548ckubernets\u76843\u4e2a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>curl -o \/etc\/yum.repos.d\/Centos-7.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo\ncurl -o \/etc\/yum.repos.d\/docker-ce.repo http:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo\ncat &lt;&lt;EOF &gt; \/etc\/yum.repos.d\/kubernetes.repo\n&#91;kubernetes]\nname=Kubernetes\nbaseurl=http:\/\/mirrors.aliyun.com\/kubernetes\/yum\/repos\/kubernetes-el7-x86_64\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=0\ngpgkey=http:\/\/mirrors.aliyun.com\/kubernetes\/yum\/doc\/yum-key.gpg\n        http:&#47;&#47;mirrors.aliyun.com\/kubernetes\/yum\/doc\/rpm-package-key.gpg\nEOF\n<\/code><\/pre>\n\n\n\n<p>\u6267\u884c\u5237\u65b0<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>yum clean all &amp;&amp; yum makecache<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85systemd-resolved\"><\/span>\u5b89\u88c5systemd-resolved<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>yum install systemd-resolved\n\n&#91;root@vm246 172.16.3.246]# yum install systemd-resolved\r\nLoaded plugins: fastestmirror, langpacks\r\nRepository base is listed more than once in the configuration\r\nRepository updates is listed more than once in the configuration\r\nRepository extras is listed more than once in the configuration\r\nRepository centosplus is listed more than once in the configuration\r\nLoading mirror speeds from cached hostfile\r\n * base: mirrors.bfsu.edu.cn\r\n * extras: mirrors.bfsu.edu.cn\r\n * updates: mirrors.aliyun.com\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package systemd-resolved.x86_64 0:219-78.el7_9.7 will be installed\r\n--> Processing Dependency: systemd = 219-78.el7_9.7 for package: systemd-resolved-219-78.el7_9.7.x86_64\r\n--> Running transaction check\r\n---> Package systemd.x86_64 0:219-78.el7 will be updated\r\n--> Processing Dependency: systemd = 219-78.el7 for package: systemd-python-219-78.el7.x86_64\r\n--> Processing Dependency: systemd = 219-78.el7 for package: systemd-sysv-219-78.el7.x86_64\r\n---> Package systemd.x86_64 0:219-78.el7_9.7 will be an update\r\n--> Processing Dependency: systemd-libs = 219-78.el7_9.7 for package: systemd-219-78.el7_9.7.x86_64\r\n--> Running transaction check\r\n---> Package systemd-libs.x86_64 0:219-78.el7 will be updated\r\n--> Processing Dependency: systemd-libs = 219-78.el7 for package: libgudev1-219-78.el7.x86_64\r\n---> Package systemd-libs.x86_64 0:219-78.el7_9.7 will be an update\r\n---> Package systemd-python.x86_64 0:219-78.el7 will be updated\r\n---> Package systemd-python.x86_64 0:219-78.el7_9.7 will be an update\r\n---> Package systemd-sysv.x86_64 0:219-78.el7 will be updated\r\n---> Package systemd-sysv.x86_64 0:219-78.el7_9.7 will be an update\r\n--> Running transaction check\r\n---> Package libgudev1.x86_64 0:219-78.el7 will be updated\r\n---> Package libgudev1.x86_64 0:219-78.el7_9.7 will be an update\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n=====================================================================================================================================================================\r\n Package                                     Arch                              Version                                      Repository                          Size\r\n=====================================================================================================================================================================\r\nInstalling:\r\n systemd-resolved                            x86_64                            219-78.el7_9.7                               updates                            422 k\r\nUpdating for dependencies:\r\n libgudev1                                   x86_64                            219-78.el7_9.7                               updates                            110 k\r\n systemd                                     x86_64                            219-78.el7_9.7                               updates                            5.1 M\r\n systemd-libs                                x86_64                            219-78.el7_9.7                               updates                            419 k\r\n systemd-python                              x86_64                            219-78.el7_9.7                               updates                            146 k\r\n systemd-sysv                                x86_64                            219-78.el7_9.7                               updates                             97 k\r\n\r\nTransaction Summary\r\n=====================================================================================================================================================================\r\nInstall  1 Package\r\nUpgrade             ( 5 Dependent packages)\r\n\r\nTotal download size: 6.2 M\r\nIs this ok &#91;y\/d\/N]: y\r\nDownloading packages:\r\nNo Presto metadata available for updates\r\n(1\/6): libgudev1-219-78.el7_9.7.x86_64.rpm                                                                                                    | 110 kB  00:00:00\r\n(2\/6): systemd-sysv-219-78.el7_9.7.x86_64.rpm                                                                                                 |  97 kB  00:00:00\r\n(3\/6): systemd-resolved-219-78.el7_9.7.x86_64.rpm                                                                                             | 422 kB  00:00:00\r\n(4\/6): systemd-python-219-78.el7_9.7.x86_64.rpm                                                                                               | 146 kB  00:00:00\r\n(5\/6): systemd-219-78.el7_9.7.x86_64.rpm                                                                                                      | 5.1 MB  00:00:02\r\n(6\/6): systemd-libs-219-78.el7_9.7.x86_64.rpm                                                                                                 | 419 kB  00:00:17\r\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\nTotal                                                                                                                                365 kB\/s | 6.2 MB  00:00:17\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  Updating   : systemd-libs-219-78.el7_9.7.x86_64                                                                                                               1\/11\r\n  Updating   : systemd-219-78.el7_9.7.x86_64                                                                                                                    2\/11\r\n  Updating   : systemd-sysv-219-78.el7_9.7.x86_64                                                                                                               3\/11\r\n  Installing : systemd-resolved-219-78.el7_9.7.x86_64                                                                                                           4\/11\r\n  Updating   : systemd-python-219-78.el7_9.7.x86_64                                                                                                             5\/11\r\n  Updating   : libgudev1-219-78.el7_9.7.x86_64                                                                                                                  6\/11\r\n  Cleanup    : systemd-sysv-219-78.el7.x86_64                                                                                                                   7\/11\r\n  Cleanup    : systemd-python-219-78.el7.x86_64                                                                                                                 8\/11\r\n  Cleanup    : systemd-219-78.el7.x86_64                                                                                                                        9\/11\r\n  Cleanup    : libgudev1-219-78.el7.x86_64                                                                                                                     10\/11\r\n  Cleanup    : systemd-libs-219-78.el7.x86_64                                                                                                                  11\/11\r\n  Verifying  : systemd-libs-219-78.el7_9.7.x86_64                                                                                                               1\/11\r\n  Verifying  : systemd-219-78.el7_9.7.x86_64                                                                                                                    2\/11\r\n  Verifying  : systemd-sysv-219-78.el7_9.7.x86_64                                                                                                               3\/11\r\n  Verifying  : systemd-resolved-219-78.el7_9.7.x86_64                                                                                                           4\/11\r\n  Verifying  : systemd-python-219-78.el7_9.7.x86_64                                                                                                             5\/11\r\n  Verifying  : libgudev1-219-78.el7_9.7.x86_64                                                                                                                  6\/11\r\n  Verifying  : systemd-python-219-78.el7.x86_64                                                                                                                 7\/11\r\n  Verifying  : systemd-sysv-219-78.el7.x86_64                                                                                                                   8\/11\r\n  Verifying  : systemd-libs-219-78.el7.x86_64                                                                                                                   9\/11\r\n  Verifying  : libgudev1-219-78.el7.x86_64                                                                                                                     10\/11\r\n  Verifying  : systemd-219-78.el7.x86_64                                                                                                                       11\/11\r\n\r\nInstalled:\r\n  systemd-resolved.x86_64 0:219-78.el7_9.7\r\n\r\nDependency Updated:\r\n  libgudev1.x86_64 0:219-78.el7_9.7        systemd.x86_64 0:219-78.el7_9.7     systemd-libs.x86_64 0:219-78.el7_9.7     systemd-python.x86_64 0:219-78.el7_9.7\r\n  systemd-sysv.x86_64 0:219-78.el7_9.7\r\n\r\nComplete!\r\n&#91;root@vm246 172.16.3.246]#\r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FoundationDB%E7%9A%84%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9\"><\/span>FoundationDB\u7684\u6ce8\u610f\u4e8b\u9879<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5f53\u524dgcdw\u7684\u7248\u672c\uff0c\u8981\u6c42fdb\u670d\u52a1\u5668\u7684\u7248\u672c\uff0c\u5fc5\u987b\u548c\u955c\u50cf\u5185\u7684fdbcli\u7248\u672c\u5b8c\u5168\u4e00\u81f4(6.3.13)\uff0c\u5426\u5219\uff0c\u4f1a\u5bfc\u81f4pod\u5185\u65e0\u6cd5\u8fde\u63a5foundationdb\u7684\u73b0\u8c61\u3002\u540e\u7eed\u7248\u672c\u5982\u679c\u505a\u4e86\u4fee\u6b63\uff0c\u6211\u4f1a\u66f4\u65b0\u672c\u6587\u6863\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%8B%E4%B8%80%E6%AD%A5\"><\/span>\u4e0b\u4e00\u6b65<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/10845\/\">GCDW\u6280\u672f\u6808- docker\u8fd0\u884c\u73af\u5883\u5b89\u88c5<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u4e91\u6570\u4ed3gcdw\u8fd0\u884c\u5728k8s\u4e0a\uff0c\u672c\u6587\u662fk8s\u5b89\u88c5\u524d\u7684\u51c6\u5907\u5de5\u4f5c\uff0c\u4e3b\u8981\u662f\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u7684\u4fee\u6539\u914d\u7f6e\u3002\u6240\u6709\u53d8\u52a8\u5747\u53c2\u8003\u4e86\u5b98\u7f51\u7684\u6587\u6863\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[115,120],"class_list":["post-10814","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-gcdw","tag-docker"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/10814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=10814"}],"version-history":[{"count":43,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/10814\/revisions"}],"predecessor-version":[{"id":12090,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/10814\/revisions\/12090"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=10814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=10814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=10814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}