{"id":8210,"date":"2022-05-07T15:59:25","date_gmt":"2022-05-07T07:59:25","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=8210"},"modified":"2022-05-21T13:58:11","modified_gmt":"2022-05-21T05:58:11","slug":"kuboard-2","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2022\/05\/07\/kuboard-2\/","title":{"rendered":"kuboard\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u672c\u4f8b\u5b50\u4e2d\u4ee5\u521b\u5efanginx\u7684pod\u4e3a\u4f8b\u5b50\u8fdb\u884c\u8bf4\u660e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00<strong>\u3001\u521b\u5efapod<\/strong>\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u9996\u5148\u9009\u62e9\u8981\u64cd\u4f5c\u7684\u547d\u540d\u7a7a\u95f4\uff0c\u672c\u4f8b\u5b50\u4ee5default\u547d\u540d\u7a7a\u95f4\u4e3a\u4f8b\uff0c\u5e76\u70b9\u51fb\u521b\u5efa\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"248\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6.png\" alt=\"\" class=\"wp-image-8211\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6-300x105.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6-600x211.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u57fa\u672c\u4fe1\u606f\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9009\u62e9\u63a7\u5236\u5668\u7c7b\u578b\uff0c\u672c\u4f8b\u5b50\u9009\u62e9deployment\uff0c\u8f93\u5165\u5c55\u73b0\u7684pod\u7684\u540d\u79f0\uff0c\u81ea\u5b9a\u4e49\u670d\u52a1\u63cf\u8ff0\uff0c\u6ce8\u89e3\u548c\u6807\u7b7e\u53ef\u81ea\u52a8\u5339\u914d\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u6307\u5b9a\u65b0\u7684\uff0c\u6700\u540e\u8bbe\u7f6e\u526f\u672c\u6570\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"585\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7.png\" alt=\"\" class=\"wp-image-8213\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7.png 703w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7-300x250.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7-600x499.png 600w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u5bb9\u5668\u4fe1\u606f\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u4e24\u4e2a\u9009\u9879\uff0c\u4e00\u4e2a\u662f\u521d\u59cb\u5316\u5bb9\u5668\uff0c\u4e00\u4e2a\u662f\u5de5\u4f5c\u5bb9\u5668\uff0c\u521d\u59cb\u5316\u5bb9\u5668\u7684\u4f5c\u7528\u5c31\u662f\u5728\u5de5\u4f5c\u5bb9\u5668\u8fd0\u884c\u4e4b\u524d\u9700\u8981\u6267\u884c\u7684\u67d0\u4e9b\u52a8\u4f5c\u6216\u8005\u547d\u4ee4\uff0c\u4e0b\u56fe\u4e2d\u8868\u793a\u5728\u5de5\u4f5c\u5bb9\u5668\u542f\u52a8\u4e4b\u524d\uff0c\u5148\u6267\u884c\u521d\u59cb\u5316\u5bb9\u5668\uff0c\u4e0b\u8f7dhttps:\/\/www.baidu.com\u9875\u9762\u7684index.html\u6587\u4ef6\uff0c\u4fdd\u5b58\u5230busybox\u5bb9\u5668\u5185\u90e8\u7684\/var\u76ee\u5f55\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"458\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/8.png\" alt=\"\" class=\"wp-image-8217\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/8.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/8-300x195.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/8-600x390.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\">\u6ce8\u610f\uff1a\u5982\u679c\u4e0d\u9700\u8981\u5728\u5de5\u4f5c\u5bb9\u5668\u8fd0\u884c\u4e4b\u524d\u6267\u884c\u4ec0\u4e48\u64cd\u4f5c\uff0c\u5c31\u4e0d\u9700\u8981\u914d\u7f6e\u521d\u59cb\u5316\u5bb9\u5668\uff0c\u914d\u7f6e\u4e86\u521d\u59cb\u5316\u5bb9\u5668\u76f8\u5f53\u4e8e\u4e00\u4e2aPod \u4e2d\u8fd0\u884c\u4e86\u4e24\u4e2a\u5bb9\u5668<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u4e0b\u6765\u914d\u7f6e\u5de5\u4f5c\u5bb9\u5668\uff0c\u6839\u636e\u9700\u8981\u914d\u7f6e\u5373\u53ef\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"417\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1.png\" alt=\"\" class=\"wp-image-8219\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1-300x177.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1-600x354.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\uff1a\u5982\u679c\u955c\u50cf\u4ece\u79c1\u6709\u4ed3\u5e93\u62c9\u53d6\uff0c\u9700\u8981\u914d\u7f6eImagePullSecret\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"305\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/5-1.png\" alt=\"\" class=\"wp-image-8229\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/5-1.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/5-1-300x129.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/5-1-600x259.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"321\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6-1.png\" alt=\"\" class=\"wp-image-8230\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6-1.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6-1-300x136.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/6-1-600x272.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u5b58\u50a8\u6302\u8f7d\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u65b9\u4f8b\u5b50\u4e2d\u7684\u521d\u59cb\u5316\u5bb9\u5668\u4e2d\u4e0b\u8f7d\u7684index.html\u662f\u5728busybox\u5bb9\u5668\u5185\u90e8\u7684\/var\u76ee\u5f55\uff0c\u800c\u5de5\u4f5c\u5bb9\u5668nginx\u7684\u9875\u9762\u76ee\u5f55\u5728nginx\u5bb9\u5668\u7684\/usr\/share\/nginx\/html\u76ee\u5f55\uff0c\u65e0\u6cd5\u76f4\u63a5\u4f7f\u7528busybox\u5185\u90e8\u7684\/var\u76ee\u5f55\uff0c\u56e0\u6b64\u9700\u8981\u901a\u8fc7EmptyDir\u3011\u6302\u8f7d\u5377\u5f62\u5f0f\u6765\u5b9e\u73b0\u5171\u4eab\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"679\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/2.png\" alt=\"\" class=\"wp-image-8221\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/2.png 708w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/2-300x288.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/2-600x575.png 600w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5\u3001\u9ad8\u7ea7\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u636e\u9700\u6c42\u914d\u7f6e\u66f4\u65b0\u7b56\u7565\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"308\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/3-1.png\" alt=\"\" class=\"wp-image-8224\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/3-1.png 708w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/3-1-300x131.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/3-1-600x261.png 600w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6\u3001\u670d\u52a1\u4e0e\u5e94\u7528\u8def\u7531\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u670d\u52a1\u9875\u9762\uff0c\u914d\u7f6eservice\u7aef\u53e3\u4e0etargetPort\u7aef\u53e3\uff0c\u9009\u62e9\u5668\u4e3a\u6839\u636e\u6807\u7b7e\u9009\u62e9\u540e\u7aefpod\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"516\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-1.png\" alt=\"\" class=\"wp-image-8226\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-1.png 709w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-1-300x218.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-1-600x437.png 600w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u7f6eingress\u8def\u7531\uff1a(\u672c\u4f8b\u5b50\u4e2dingress\u4e3a\u5355\u72ec\u5b89\u88c5\uff0c\u5e76\u672a\u901a\u8fc7kuboard\u5b89\u88c5)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728ingressclass\u4f4d\u7f6e\u9009\u62e9\u624b\u5de5\u8f93\u5165\uff0c\u8bbe\u7f6e\u81ea\u5b9a\u4e49ingressclass\u540d\u79f0\uff0c\u5728\u8def\u7531\u89c4\u5219\u4f4d\u7f6e\uff0c\u5b9a\u4e49\u8bbf\u95ee\u57df\u540d\uff0c\u8def\u5f84\u6620\u5c04\u4f4d\u7f6e\uff0c\u8bbe\u7f6e\u524d\u7f00\u5339\u914d\uff0c\u540e\u9762\u4e3a\u4e0a\u4e00\u6b65\u8bbe\u7f6e\u7684service\u540d\u79f0\uff0c\u6700\u540e\u662fservice\u7684\u7aef\u53e3\u6620\u5c04\u5730\u5740\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"636\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1-1.png\" alt=\"\" class=\"wp-image-8237\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1-1.png 717w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1-1-300x266.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/1-1-600x532.png 600w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u9a8c\u8bc1\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bbe\u7f6ehosts\uff0c\u5c06www.test.com\u57df\u540d\u6307\u5411\u540e\u7aef\u7684\u4e24\u4e2anode\u8282\u70b9IP\u5730\u5740\uff0c\u7136\u540e\u8bbf\u95ee\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"350\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7-1.png\" alt=\"\" class=\"wp-image-8250\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7-1.png 708w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7-1-300x148.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/7-1-600x297.png 600w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u4f8b\u5b50\u4e2d\u4ee5\u521b\u5efanginx\u7684pod\u4e3a\u4f8b\u5b50\u8fdb\u884c\u8bf4\u660e \u4e00\u3001\u521b\u5efapod\uff1a 1\u3001\u9996\u5148\u9009\u62e9\u8981\u64cd\u4f5c\u7684\u547d\u540d\u7a7a\u95f4\uff0c\u672c\u4f8b\u5b50\u4ee5def [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":8240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93,23],"tags":[153],"class_list":["post-8210","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernetes","category-rong","tag-kuboard"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/8210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=8210"}],"version-history":[{"count":17,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/8210\/revisions"}],"predecessor-version":[{"id":8251,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/8210\/revisions\/8251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/8240"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=8210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=8210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=8210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}