{"id":52643,"date":"2024-04-10T15:41:30","date_gmt":"2024-04-10T07:41:30","guid":{"rendered":"https:\/\/www.yimenapp.com\/kb-yimen\/?p=52643"},"modified":"2024-04-10T15:41:30","modified_gmt":"2024-04-10T07:41:30","slug":"windows%e7%9a%84helm%e6%89%93%e5%8c%85%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenapp.com\/kb-yimen\/52643\/","title":{"rendered":"windows\u7684helm\u6253\u5305\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<p>Helm\u662fKubernetes\u7684\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u521b\u5efa\u3001\u53d1\u5e03\u548c\u7ba1\u7406Kubernetes<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\" title=\"\u5e94\u7528\u7a0b\u5e8f\" target=\"_blank\">\u5e94\u7528\u7a0b\u5e8f<\/a><\/span>\u3002Helm\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3acharts\uff0ccharts\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u8d44\u6e90\uff0c\u5305\u62ec\u914d\u7f6e\u6587\u4ef6\u3001\u5bb9\u5668\u955c\u50cf\u7b49\u7b49\u3002\u5728Kubernetes<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e9%9b%86%e7%be%a4\/\" title=\"\u96c6\u7fa4\" target=\"_blank\">\u96c6\u7fa4<\/a><\/span>\u4e2d\u4f7f\u7528Helm\u53ef\u4ee5\u8f7b\u677e\u7ba1\u7406\u591a\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u4e0d\u9700\u8981\u624b\u52a8\u90e8\u7f72\u548c\u7ba1\u7406\u6bcf\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0cHelm\u7684\u6253\u5305\u8fc7\u7a0b\u53ef\u4ee5<a href=\"https:\/\/exe.yimenapp.com\/tool-3340.html\">\u67dc\u6247\u6253\u5305\u8f6f\u4ef6<\/a>\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u5b89\u88c5Helm<\/p>\n<p>\u5728Windows\u7cfb\u7edf\u4e2d\u5b89\u88c5Helm\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e0b\u8f7d\u5bf9\u5e94\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5e76\u89e3\u538b\u5373\u53ef\u3002\u53ef\u4ee5\u4eceHelm\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Helm\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528Chocolatey\u7b49\u5305\u7ba1\u7406\u5668\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>2. \u521b\u5efachart<\/p>\n<p>\u4f7f\u7528Helm\u6253\u5305\u5e94\u7528\u7a0b\u5e8f\u4e4b\u524d\uff0c\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2achart\u3002Chart\u662fHelm\u7684\u6253\u5305\u5355\u5143\uff0c\u5305\u542b\u4e86\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u8d44\u6e90\u548c\u914d\u7f6e\u6587\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528helm create<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%91%bd%e4%bb%a4\/\" title=\"\u547d\u4ee4\" target=\"_blank\">\u547d\u4ee4<\/a><\/span>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684chart\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>helm create mychart<\/p>\n<p>&#8220;`<\/p>\n<p>\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0c\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3amychart\u7684chart\u76ee\u5f55\u3002\u8be5\u76ee\u5f55\u5305\u542b\u4e86\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u8d44\u6e90\u548c\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>3. \u7f16\u8f91chart<\/p>\n<p>\u7f16\u8f91chart\u662f\u6253\u5305\u8fc7\u7a0b\u4e2d\u6700\u91cd\u8981\u7684\u4e00\u6b65\u3002\u5728chart\u76ee\u5f55\u4e0b\uff0c\u6709\u4e00\u4e2a\u540d\u4e3avalues.yaml\u7684\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u914d\u7f6e\u4fe1\u606f\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u4fee\u6539\u8be5\u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u4f8b\u5982\u5bb9\u5668\u955c\u50cf\u540d\u79f0\u3001\u670d\u52a1\u540d\u79f0\u3001\u7aef\u53e3\u53f7\u7b49\u7b49\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u5728chart\u76ee\u5f55\u4e0b\u521b\u5efa\u5176\u4ed6\u6587\u4ef6\u5939\uff0c\u4f8b\u5982templates\u76ee\u5f55\uff0c\u8be5\u76ee\u5f55\u7528\u4e8e\u5b58\u653eKubernetes\u8d44\u6e90\u7684\u6a21\u677f\u6587\u4ef6\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u521b\u5efa\u6a21\u677f\u6587\u4ef6\uff0c\u4f8b\u5982Deployment\u3001Service\u3001ConfigMap\u7b49\u7b49\u3002<\/p>\n<p>4. \u6253\u5305chart<\/p>\n<p>\u7f16\u8f91\u5b8cchart\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528Helm\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3achart\u4e86\u3002\u4f7f\u7528helm package\u547d\u4ee4\u53ef\u4ee5\u5c06chart\u6253\u5305\u4e3a\u4e00\u4e2atar\u6587\u4ef6\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>helm package mychart<\/p>\n<p>&#8220;`<\/p>\n<p>\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0c\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2a\u540d\u4e3amychart-0.1.0.tgz\u7684tar\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u5c31\u662f\u6253\u5305\u597d\u7684chart\u3002<\/p>\n<p>5. \u53d1\u5e03chart<\/p>\n<p>\u6253\u5305\u597d\u7684chart\u53ef\u4ee5\u53d1\u5e03\u5230Kubernetes\u96c6\u7fa4\u4e2d\uff0c\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u8be5chart\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u3002\u4f7f\u7528helm install\u547d\u4ee4\u53ef\u4ee5\u5c06cha<a href=\"https:\/\/exe.yimenapp.com\/tool-3339.html\">exe\u591a\u5f00\u5de5\u5177<\/a>rt\u53d1\u5e03\u5230Kubernetes\u96c6\u7fa4\u4e2d\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>helm install mychart my<span class=\"wpcom_keyword_link\"><a href=\"https:\/\/www.yimenapp.com\" target=\"_blank\" title=\"\u5f00\u53d1app\u4ece\u4e00\u95e8\u5f00\u59cb\">app<\/a><\/span><\/p>\n<p>&#8220;`<\/p>\n<p>\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0c\u4f1a\u5728Kubernetes\u96c6\u7fa4\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3amyapp\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8be5\u5e94\u7528\u7a0b\u5e8f\u5305\u542b\u4e86\u6240\u6709\u5728chart\u4e2d\u5b9a\u4e49\u7684\u8d44\u6e90\u548c\u914d\u7f6e\u4fe1\u606f\u3002<\/p>\n<p>6. \u5378\u8f7dchart<\/p>\n<p>\u5982\u679c\u4e0d\u518d\u9700\u8981\u4f7f\u7528\u8be5\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528helm uninstall\u547d\u4ee4\u5c06\u5e94\u7528\u7a0b\u5e8f\u4eceKubernetes\u96c6\u7fa4\u4e2d\u5378\u8f7d\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>helm uninstall myapp<\/p>\n<p>&#8220;`<\/p>\n<p>\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0cKubernet<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/20\/18\/05521274651.jpg\" \/><\/figure><\/p>\n<p>es\u96c6\u7fa4\u4e2d\u7684myapp\u5e94\u7528\u7a0b\u5e8f\u5c06\u88ab\u5220\u9664\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>Helm\u662fKubernetes\u7684\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u521b\u5efa\u3001\u53d1\u5e03\u548c\u7ba1\u7406Kubernetes\u5e94\u7528\u7a0b\u5e8f\u3002\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u4f7f\u7528Helm\u6253\u5305\u5e94\u7528\u7a0b\u5e8f\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u521b\u5efachart\u3001\u7f16\u8f91chart\u3001\u6253\u5305chart\u3001\u53d1\u5e03chart\u5373\u53ef\u3002\u901a\u8fc7Helm\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u7ba1\u7406\u591a\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u90e8\u7f72\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Helm\u662fKubernetes\u7684\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u521b\u5efa\u3001\u53d1\u5e03\u548c\u7ba1\u7406Kubernetes\u5e94\u7528\u7a0b\u5e8f\u3002Helm\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3acharts\uff0ccharts\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u8d44\u6e90\uff0c\u5305\u62ec\u914d\u7f6e\u6587\u4ef6\u3001\u5bb9<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7685,2445,34386,41449,26548],"special":[],"attr":[],"class_list":["post-52643","post","type-post","status-publish","format-standard","hentry","category-zixun","tag-7685","tag-2445","tag-webexe","tag-41449","tag-26548","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/52643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/comments?post=52643"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/52643\/revisions"}],"predecessor-version":[{"id":52796,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/52643\/revisions\/52796"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/media?parent=52643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/categories?post=52643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/tags?post=52643"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/special?post=52643"},{"taxonomy":"attr","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/attr?post=52643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}