{"id":1891,"date":"2023-03-31T06:26:14","date_gmt":"2023-03-30T22:26:14","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1891"},"modified":"2023-04-22T08:59:17","modified_gmt":"2023-04-22T00:59:17","slug":"deploy-busybox-through-kuboard","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/31\/deploy-busybox-through-kuboard\/","title":{"rendered":"\u901a\u8fc7 Kuboard \u90e8\u7f72 busybox"},"content":{"rendered":"<h2>\u524d\u63d0<\/h2>\n<p>\u5fc5\u987b\u5177\u5907\u5982\u4e0b\u6761\u4ef6\uff1a<\/p>\n<ul>\n<li>Kubernetes \u96c6\u7fa4<\/li>\n<li>\u5df2\u5728\u96c6\u7fa4\u4e2d\u5b89\u88c5 Kuboard<\/li>\n<\/ul>\n<p><!-- more --><\/p>\n<p>\u5047\u8bbe\u5df2\u7ecf\u8fdb\u5165 Kuboard \u540d\u79f0\u7a7a\u95f4\u754c\u9762\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723115721514.bf981ef3.png\" alt=\"Kuboard \u540d\u79f0\u7a7a\u95f4\" \/><\/p>\n<h2>\u90e8\u7f72 busybox<\/h2>\n<p>\u67e5\u770b <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/hub.docker.com\/_\/busybox\" title=\"busybox \u4ecb\u7ecd\">busybox \u4ecb\u7ecd<\/a><\/p>\n<p>Busybox \u662f\u4e00\u4e2a\u975e\u5e38\u5c0f\u5de7\uff08\u4e0d\u52305M\uff09\u7684\u5bb9\u5668\uff0c\u6b64\u5904\u7528\u5b83\u6765\u5c55\u793a\u5982\u4f55\u5c06\u4e00\u4e2a docker image \u901a\u8fc7 Kuboard \u90e8\u7f72\u5230 kubernetes \u96c6\u7fa4\u4e2d\u3002<\/p>\n<p>\uff081\uff09\u70b9\u51fb<strong>\u521b\u5efa\u5de5\u4f5c\u8d1f\u8f7d\u6309\u94ae<\/strong><\/p>\n<p>\u586b\u5199\u8868\u5355\u5982\u4e0b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u5b57\u6bb5\u540d\u79f0<\/th>\n<th style=\"text-align: left;\">\u586b\u5199\u5185\u5bb9<\/th>\n<th style=\"text-align: left;\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">\u670d\u52a1\u7c7b\u578b<\/td>\n<td style=\"text-align: left;\">Deployment<\/td>\n<td style=\"text-align: left;\">Kubernetes \u7684 Deployment \u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u670d\u52a1\u5206\u5c42<\/td>\n<td style=\"text-align: left;\">\u4e2d\u95f4\u4ef6<\/td>\n<td style=\"text-align: left;\">\u751f\u6210\u7684Kuberenetes\u5bf9\u8c61\u4ee5 cloud- \u4f5c\u4e3a\u524d\u7f00\uff0c\u5e76\u663e\u793a\u5728\u4e2d\u95f4\u4ef6\u5206\u5c42\u4e2d<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u670d\u52a1\u540d\u79f0<\/td>\n<td style=\"text-align: left;\">busybox<\/td>\n<td style=\"text-align: left;\">\u663e\u793a\u5728 Kuboard \u4e2d\u7684\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u526f\u672c\u6570\u91cf<\/td>\n<td style=\"text-align: left;\">1<\/td>\n<td style=\"text-align: left;\">replicas<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u5bb9\u5668\u540d\u79f0<\/td>\n<td style=\"text-align: left;\">busybox<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u955c\u50cf<\/td>\n<td style=\"text-align: left;\">busybox:1.29<\/td>\n<td style=\"text-align: left;\">hub.docker.com \u4e2d\u7684 busybox \u955c\u50cf<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Command<\/td>\n<td style=\"text-align: left;\">sleep<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Command<\/td>\n<td style=\"text-align: left;\">3600<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723115852719.f1658660.png\" alt=\"Kuboard \u521b\u5efa\u5de5\u4f5c\u8d1f\u8f7d\" \/><\/p>\n<p>\uff082\uff09\u5b8c\u6210\u8868\u5355\u586b\u5199\u540e\uff0c\u70b9\u51fb<strong>\u4fdd\u5b58<\/strong><\/p>\n<p>Kuboard \u5c06\u5bf9\u8868\u5355\u53c2\u6570\u8fdb\u884c\u6821\u9a8c\uff0c\u901a\u8fc7\u540e\uff0c\u65b9\u53ef\u6267\u884c\u5bf9\u96c6\u7fa4\u7684\u53d8\u66f4\u64cd\u4f5c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723115912645.393d67ff.png\" alt=\"Kuboard \u53c2\u6570\u6821\u9a8c\" \/><\/p>\n<p>\uff083\uff09\u70b9\u51fb<strong>\u5e94\u7528<\/strong><\/p>\n<p>Kuboard \u6267\u884c\u5bf9\u96c6\u7fa4\u7684\u53d8\u66f4\u64cd\u4f5c\uff0c\u53d8\u66f4\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4ea7\u751f\u7684\u4e8b\u4ef6\u4ee5\u901a\u77e5\u6d88\u606f\u7684\u5f62\u5f0f\u663e\u793a\u51fa\u6765\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723115940862.dfeacc57.png\" alt=\"Kuboard \u5e94\u7528\u53d8\u66f4\" \/><\/p>\n<h2>\u9a8c\u8bc1\u5de5\u4f5c\u8d1f\u8f7d<\/h2>\n<p>\uff081\uff09\u70b9\u51fb<strong>\u5b8c\u6210<\/strong><\/p>\n<p>\u70b9\u51fb\u5b8c\u6210\u540e\uff0c\u53ef\u67e5\u770b\u5de5\u4f5c\u8d1f\u8f7d\u7684\u4fe1\u606f\u3002\u8be5\u754c\u9762\u5206\u6210\u56db\u4e2a\u533a\u57df\uff1a<\/p>\n<ul>\n<li>\u9875\u5934\u533a<\/li>\n<\/ul>\n<p>\u9875\u5934\u533a\u5305\u542b\u5bf9\u8be5\u5de5\u4f5c\u8d1f\u8f7d\uff08\u672c\u6848\u4f8b\u4e2d\u4e3a Deployment\uff09\u7684\u64cd\u4f5c\u6309\u94ae\u3002\u53ef\u6267\u884c\u7684\u64cd\u4f5c\u6709\uff1a<strong>\u7f16\u8f91<\/strong> \/ <strong>\u4f38\u7f29<\/strong> \/ <strong>\u5237\u65b0<\/strong> \/ <strong>\u5220\u9664<\/strong><\/p>\n<ul>\n<li>\u5de5\u4f5c\u8d1f\u8f7d\u57fa\u672c\u4fe1\u606f<\/li>\n<\/ul>\n<p>\u57fa\u672c\u4fe1\u606f\u533a\u663e\u793a\u4e86\u5de5\u4f5c\u8d1f\u8f7d\u7684<strong>\u57fa\u672c\u4fe1\u606f<\/strong>\u3001<strong>\u8fd0\u884c\u65f6\u4fe1\u606f<\/strong>\u3001<strong>\u8bbf\u95ee\u65b9\u5f0f\uff08Service\uff09<\/strong>\u3001<strong>\u4e92\u8054\u7f51\u5165\u53e3\uff08Ingress\uff09<\/strong><\/p>\n<ul>\n<li>\u5bb9\u5668\u7ec4\u5217\u8868<\/li>\n<\/ul>\n<p>\u5bb9\u5668\u7ec4\u5217\u8868\u533a\u663e\u793a\u4e86\u8be5\u5f53\u524d\u5bf9\u5e94\u7684\u6240\u6709\u5bb9\u5668\u7ec4\uff08Pod\uff09\uff0c\u5bb9\u5668\u7ec4\u5217\u8868\u533a\u76d1\u542c\u96c6\u7fa4\u7684\u52a8\u6001\u53d8\u5316\uff0c\u5f53\u60a8\u6267\u884c\u4f38\u7f29\u64cd\u4f5c\u3001\u6216\u8005\u5220\u9664\u5bb9\u5668\u7ec4\u64cd\u4f5c\u65f6\uff0c\u65e0\u9700\u5237\u65b0\uff0c\u5c31\u53ef\u4ee5\u67e5\u770b\u5230\u6700\u65b0\u7684\u5bb9\u5668\u7ec4\u4fe1\u606f\u3002<\/p>\n<ul>\n<li>\u5bb9\u5668\u7ec4\u8be6\u60c5<\/li>\n<\/ul>\n<p>\u5bb9\u5668\u7ec4\u8be6\u60c5\u533a\u663e\u793a\u4e86\u5f53\u524d\u9009\u4e2d\u5bb9\u5668\u7ec4\u7684\u4fe1\u606f\uff0c\u5176\u4e2d\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\n<ul>\n<li>\u5bb9\u5668\u7ec4\u76f8\u5173\u4e8b\u4ef6<\/li>\n<\/ul>\n<\/li>\n<li>\n<ul>\n<li>\u5bb9\u5668\u7ec4\u57fa\u672c\u4fe1\u606f\uff0c\u53ca\u5220\u9664\u5bb9\u5668\u7ec4\u7684\u64cd\u4f5c\u6309\u94ae\uff08\u6b64\u533a\u57df\u8fd8\u5305\u62ec\u5bb9\u5668\u7ec4\u76f8\u5173\u7684\u76d1\u63a7\u64cd\u4f5c\uff0c\u76d1\u63a7\u6a21\u5757\u5728\u540e\u7eed\u7684\u7ae0\u8282\u4e2d\u4ecb\u7ecd\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\n<ul>\n<li>\u5bb9\u5668\u57fa\u672c\u4fe1\u606f\uff0c\u53ca\u67e5\u770b\u5bb9\u5668\u65e5\u5fd7\u3001\u6253\u5f00\u5bb9\u5668\u7ec8\u7aef\u7684\u6309\u94ae\uff08\u6b64\u533a\u57df\u8fd8\u5305\u62ec\u5bb9\u5668\u76f8\u5173\u7684\u76d1\u63a7\u64cd\u4f5c\uff0c\u76d1\u63a7\u6a21\u5757\u5728\u540e\u7eed\u7684\u7ae0\u8282\u4e2d\u4ecb\u7ecd\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\uff082\uff09\u70b9\u51fb<strong>\u7ec8\u7aef<\/strong><\/p>\n<p>\u6b64\u65f6\u6253\u5f00\u4e86\u8be5\u5bb9\u5668\u7684\u63a7\u5236\u53f0\uff0cKuboard \u9ed8\u8ba4\u4f7f\u7528<code>\/bin\/bash<\/code>\u7ec8\u7aef\u7a0b\u5e8f\uff0c\u800c busybox \u955c\u50cf\u4e2d\u5e76\u4e0d\u5305\u542b<code>\/bin\/bash<\/code>\uff0c\u56e0\u6b64\u60a8\u4f1a\u770b\u5230\u4e00\u4e2a\u5982\u4e0b\u56fe\u6240\u793a\u7684\u9519\u8bef\u63d0\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120050894.9b1d6350.png\" alt=\"Kuboard \u7ec8\u7aef\/bin\/bash\u9519\u8bef\u63d0\u793a\" \/><\/p>\n<p>\uff083\uff09\u70b9\u51fb<strong>\u5207\u6362\u5230 \/bin\/sh<\/strong><\/p>\n<p>\u70b9\u51fb\u5c4f\u5e55\u5de6\u4e0a\u89d2\u7684 \u5207\u6362\u5230 \/bin\/sh<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120104474.617a620a.png\" alt=\"Kuboard \u7ec8\u7aef\u5207\u6362\u5230\/bin\/bash\" \/><\/p>\n<p>\uff084\uff09\u8f93\u5165 export \u5e76\u56de\u8f66<\/p>\n<p>\u8f93\u5165<code>export<\/code>\u5e76\u56de\u8f66\u540e\uff0c\u53ef\u67e5\u770b\u8be5\u5bb9\u5668\u5f53\u524d\u7684\u73af\u5883\u53d8\u91cf\u3002\u4e5f\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4efb\u4f55\u5bb9\u5668\u5185\u90e8\u7684\u547d\u4ee4\u3002\u5728\u60a8\u5b8c\u6210\u5bb9\u5668\u7684\u90e8\u7f72\u4e4b\u540e\uff0c\u7ec8\u7aef\u754c\u9762\u662f\u975e\u5e38\u6709\u6548\u7684\u95ee\u9898\u8bca\u65ad\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20190723120125425.a46d7874.png\" alt=\"Kuboard \u7ec8\u7aef\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0 \u5fc5\u987b\u5177\u5907\u5982\u4e0b\u6761\u4ef6\uff1a Kubernetes \u96c6\u7fa4 \u5df2\u5728\u96c6\u7fa4\u4e2d\u5b89\u88c5 Kuboard \u5047\u8bbe\u5df2\u7ecf\u8fdb\u5165 Kuboa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[483],"class_list":["post-1891","post","type-post","status-publish","format-standard","hentry","category-k8s","tag-kuboard"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1891"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1891\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}