{"id":88128,"date":"2026-07-31T15:00:37","date_gmt":"2026-07-31T07:00:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/88128.html"},"modified":"2026-07-31T15:00:37","modified_gmt":"2026-07-31T07:00:37","slug":"%e3%80%90%e6%9e%b6%e6%9e%84%e5%ae%9e%e6%88%98%e3%80%91helm-chart-%e8%bf%9b%e9%98%b6%ef%bc%9a%e4%be%9d%e8%b5%96%e7%ae%a1%e7%90%86%e3%80%81%e6%b5%8b%e8%af%95%e4%b8%8e-ci-cd-%e9%9b%86%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/88128.html","title":{"rendered":"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210"},"content":{"rendered":"<h2>\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4ece&#034;\u5355 Chart&#034;\u5230&#034;\u5e94\u7528\u6808&#034;<\/h2>\n<p>\u4e0a\u7bc7\u6211\u4eec\u804a\u4e86 Helm \u7684\u57fa\u7840\u6982\u5ff5\u3001values.yaml \u914d\u7f6e\u7ba1\u7406\u548c Release \u56de\u6eda\u673a\u5236\u3002\u4f46\u771f\u5b9e\u4e16\u754c\u8fdc\u6bd4\u5355\u4e2a Chart \u590d\u6742&#xff1a;<\/p>\n<p>\u4e00\u4e2a\u5178\u578b\u7684\u5fae\u670d\u52a1\u5e94\u7528\u6808&#xff0c;\u53ef\u80fd\u5305\u542b&#xff1a;<\/p>\n<ul>\n<li>\u524d\u7aef<\/li>\n<li>\u540e\u7aef API&#xff08;Spring Boot&#xff09;<\/li>\n<li>\u6570\u636e\u5e93<\/li>\n<li>\u7f13\u5b58&#xff08;Redis Cluster&#xff09;<\/li>\n<li>\u6d88\u606f\u961f\u5217<\/li>\n<li>\u76d1\u63a7<\/li>\n<\/ul>\n<p>\u5982\u679c\u7528 6 \u4e2a\u72ec\u7acb Chart \u5206\u522b\u7ba1\u7406&#xff0c;\u542f\u52a8\u987a\u5e8f\u3001\u914d\u7f6e\u4f9d\u8d56\u3001\u73af\u5883\u9694\u79bb\u90fd\u662f\u5669\u68a6\u3002\u8fd9\u5c31\u662f Helm Chart \u4f9d\u8d56\u7ba1\u7406\u8981\u89e3\u51b3\u7684\u6838\u5fc3\u95ee\u9898\u3002<\/p>\n<p>\u4eca\u5929\u8fd9\u7bc7&#xff0c;\u6211\u4eec\u6df1\u5165 Helm \u7684\u8fdb\u9636\u80fd\u529b&#xff1a;\u4f9d\u8d56\u7ba1\u7406\u3001\u5b50 Chart\u3001\u6d4b\u8bd5\u6846\u67b6\u3001CI\/CD \u96c6\u6210&#xff0c;\u4ee5\u53ca\u6211\u4eec\u56e2\u961f\u5728\u843d\u5730\u8fc7\u7a0b\u4e2d\u603b\u7ed3\u7684\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<h2>\u4e8c\u3001Chart \u4f9d\u8d56\u7ba1\u7406&#xff1a;\u4ece&#034;\u624b\u52a8\u7f16\u6392&#034;\u5230&#034;\u58f0\u660e\u5f0f\u4f9d\u8d56&#034;<\/h2>\n<p>Helm 3 \u652f\u6301 Chart \u4f9d\u8d56\u58f0\u660e&#xff0c;\u7c7b\u4f3c npm \u7684 package.json \u6216 Maven \u7684 pom.xml\u3002<\/p>\n<p>Chart.yaml \u4e2d\u58f0\u660e\u4f9d\u8d56&#xff1a;<\/p>\n<p><span class=\"token key atrule\">apiVersion<\/span><span class=\"token punctuation\">:<\/span> v2<br \/>\n<span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> myapp<span class=\"token punctuation\">&#8211;<\/span>stack<br \/>\n<span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> 1.0.0<br \/>\n<span class=\"token key atrule\">dependencies<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> redis<br \/>\n    <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;17.x.x&#034;<\/span><br \/>\n    <span class=\"token key atrule\">repository<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;https:\/\/charts.bitnami.com\/bitnami&#034;<\/span><br \/>\n    <span class=\"token key atrule\">condition<\/span><span class=\"token punctuation\">:<\/span> redis.enabled<br \/>\n    <span class=\"token key atrule\">tags<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> cache<\/p>\n<p>  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> postgresql<br \/>\n    <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;12.x.x&#034;<\/span><br \/>\n    <span class=\"token key atrule\">repository<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;https:\/\/charts.bitnami.com\/bitnami&#034;<\/span><br \/>\n    <span class=\"token key atrule\">condition<\/span><span class=\"token punctuation\">:<\/span> postgresql.enabled<br \/>\n    <span class=\"token key atrule\">alias<\/span><span class=\"token punctuation\">:<\/span> db   <span class=\"token comment\"># \u5728\u6a21\u677f\u4e2d\u7528 .Values.db \u8bbf\u95ee<\/span><\/p>\n<p>  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> myapp<span class=\"token punctuation\">&#8211;<\/span>backend<br \/>\n    <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;1.2.0&#034;<\/span><br \/>\n    <span class=\"token key atrule\">repository<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;file:\/\/charts\/backend&#034;<\/span>   <span class=\"token comment\"># \u672c\u5730 Chart<\/span><\/p>\n<p>\u5173\u952e\u53c2\u6570\u89e3\u91ca&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u4f5c\u7528\u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>condition<\/td>\n<td>\u6761\u4ef6\u542f\u7528&#xff0c;\u53ef\u901a\u8fc7 values \u63a7\u5236\u662f\u5426\u5b89\u88c5<\/td>\n<td>redis.enabled: false \u8df3\u8fc7 Redis<\/td>\n<\/tr>\n<tr>\n<td>tags<\/td>\n<td>\u6279\u91cf\u63a7\u5236\u4e00\u7ec4\u4f9d\u8d56<\/td>\n<td>tags: [cache] \u53ef\u7edf\u4e00\u5f00\u5173<\/td>\n<\/tr>\n<tr>\n<td>alias<\/td>\n<td>\u91cd\u547d\u540d\u4f9d\u8d56&#xff0c;\u907f\u514d\u51b2\u7a81<\/td>\n<td>\u4e24\u4e2a\u4e0d\u540c\u7248\u672c\u7684 Redis \u7528\u4e0d\u540c\u522b\u540d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u8f7d\u4f9d\u8d56\u5e76\u6784\u5efa charts\/ \u76ee\u5f55&#xff1a;<\/p>\n<p>helm dependency update myapp-stack\/<br \/>\n<span class=\"token comment\"># \u6216\u7b80\u5199<\/span><br \/>\nhelm dep up myapp-stack\/<\/p>\n<p>\u6267\u884c\u540e\u4f1a\u5728 charts\/ \u76ee\u5f55\u751f\u6210 .tgz \u538b\u7f29\u5305&#xff1a;<\/p>\n<p>myapp-stack\/<br \/>\n\u251c\u2500\u2500 Chart.yaml<br \/>\n\u251c\u2500\u2500 charts\/<br \/>\n\u2502   \u251c\u2500\u2500 redis-17.3.0.tgz<br \/>\n\u2502   \u251c\u2500\u2500 postgresql-12.1.0.tgz<br \/>\n\u2502   \u2514\u2500\u2500 backend\/<br \/>\n\u2514\u2500\u2500 values.yaml<\/p>\n<p>\u901a\u8fc7 values.yaml \u63a7\u5236\u4f9d\u8d56\u542f\u7528&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u4e0d\u5b89\u88c5 Redis&#xff0c;\u7528\u5916\u90e8\u6258\u7ba1\u670d\u52a1<\/span><br \/>\n<span class=\"token key atrule\">redis<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">enabled<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">false<\/span><\/p>\n<p><span class=\"token comment\"># \u542f\u7528 PostgreSQL&#xff0c;\u8986\u76d6\u9ed8\u8ba4\u914d\u7f6e<\/span><br \/>\n<span class=\"token key atrule\">postgresql<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">enabled<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n  <span class=\"token key atrule\">auth<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">password<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;prod-db-password-2026&#034;<\/span><br \/>\n  <span class=\"token key atrule\">primary<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">persistence<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">size<\/span><span class=\"token punctuation\">:<\/span> 100Gi<br \/>\n      <span class=\"token key atrule\">storageClass<\/span><span class=\"token punctuation\">:<\/span> ssd<span class=\"token punctuation\">&#8211;<\/span>gold<\/p>\n<p><span class=\"token comment\"># \u540e\u7aef\u670d\u52a1\u914d\u7f6e<\/span><br \/>\n<span class=\"token key atrule\">backend<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">repository<\/span><span class=\"token punctuation\">:<\/span> myregistry\/myapp<span class=\"token punctuation\">&#8211;<\/span>backend<br \/>\n    <span class=\"token key atrule\">tag<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;2.1.4&#034;<\/span><br \/>\n  <span class=\"token key atrule\">env<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">DATABASE_URL<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;postgresql:\/\/db:5432\/myapp&#034;<\/span><\/p>\n<h2>\u4e09\u3001\u5b50 Chart \u7684\u503c\u4f20\u9012&#xff1a;\u7236 Chart \u5982\u4f55\u63a7\u5236\u5b50 Chart<\/h2>\n<p>\u8fd9\u662f Helm \u4f9d\u8d56\u7ba1\u7406\u4e2d\u6700\u5bb9\u6613\u8e29\u5751\u7684\u5730\u65b9&#xff1a;values \u662f\u5982\u4f55\u4ece\u7236 Chart \u4f20\u9012\u5230\u5b50 Chart \u7684&#xff1f;<\/p>\n<p>\u89c4\u5219\u5f88\u7b80\u5355\u4f46\u5bb9\u6613\u88ab\u5ffd\u7565&#xff1a;<\/p>\n<ul>\n<li>\u7236 Chart \u7684 values.yaml \u4e2d&#xff0c;\u4ee5\u5b50 Chart \u540d\u79f0\u4e3a key \u7684\u90e8\u5206&#xff0c;\u4f1a\u4f20\u9012\u7ed9\u5b50 Chart<\/li>\n<li>\u5b50 Chart \u53ea\u80fd\u770b\u5230\u81ea\u5df1\u547d\u540d\u7a7a\u95f4\u4e0b\u7684\u503c<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;\u7236 values.yaml<\/p>\n<p><span class=\"token comment\"># \u5168\u5c40\u914d\u7f6e&#xff08;\u6240\u6709\u5b50 Chart \u53ef\u89c1&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">global<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">imageRegistry<\/span><span class=\"token punctuation\">:<\/span> myregistry.io<br \/>\n  <span class=\"token key atrule\">imagePullSecrets<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> registry<span class=\"token punctuation\">&#8211;<\/span>secret<\/p>\n<p><span class=\"token comment\"># \u4f20\u9012\u7ed9 redis \u5b50 Chart<\/span><br \/>\n<span class=\"token key atrule\">redis<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">auth<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">password<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;redis-prod-pass&#034;<\/span><br \/>\n  <span class=\"token key atrule\">replica<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">replicaCount<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">3<\/span><\/p>\n<p><span class=\"token comment\"># \u4f20\u9012\u7ed9 postgresql \u5b50 Chart&#xff08;\u6ce8\u610f alias&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">db<\/span><span class=\"token punctuation\">:<\/span>   <span class=\"token comment\"># \u7528 alias \u540d&#xff0c;\u4e0d\u662f\u539f\u540d<\/span><br \/>\n  <span class=\"token key atrule\">auth<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">password<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;pg-prod-pass&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u540e\u7aef\u5e94\u7528\u914d\u7f6e&#xff08;\u975e\u5b50 Chart&#xff0c;\u76f4\u63a5\u5728\u672c Chart \u6a21\u677f\u4f7f\u7528&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">backend<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">tag<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;2.1.4&#034;<\/span><\/p>\n<p>\u5b50 Chart&#xff08;redis&#xff09;\u6536\u5230\u7684 values&#xff1a;<\/p>\n<p><span class=\"token comment\"># redis \u5b50 Chart \u7684 values.yaml &#043; \u7236 Chart \u4f20\u5165\u7684\u8986\u76d6<\/span><br \/>\n<span class=\"token key atrule\">auth<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">password<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;redis-prod-pass&#034;<\/span><br \/>\n<span class=\"token key atrule\">replica<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">replicaCount<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">3<\/span><\/p>\n<p><span class=\"token comment\"># global \u662f\u7279\u6b8a\u5b57\u6bb5&#xff0c;\u6240\u6709\u5b50 Chart \u81ea\u52a8\u7ee7\u627f<\/span><br \/>\n<span class=\"token key atrule\">global<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">imageRegistry<\/span><span class=\"token punctuation\">:<\/span> myregistry.io<br \/>\n  <span class=\"token key atrule\">imagePullSecrets<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> registry<span class=\"token punctuation\">&#8211;<\/span>secret<\/p>\n<p>\u8e29\u5751\u8bb0\u5f55&#xff1a; \u6211\u4eec\u7b2c\u4e00\u6b21\u7528\u4f9d\u8d56\u7ba1\u7406\u65f6&#xff0c;\u628a redis.auth.password \u5199\u5728 values.yaml \u6839\u7ea7\u522b&#xff0c;\u7ed3\u679c Redis \u4e00\u76f4\u7528\u9ed8\u8ba4\u5bc6\u7801\u542f\u52a8\u3002\u6392\u67e5\u534a\u5929\u624d\u53d1\u73b0&#xff1a;\u5fc5\u987b\u653e\u5728 redis: \u4e0b\u9762&#xff0c;Helm \u624d\u4f1a\u628a\u503c\u4f20\u7ed9\u5b50 Chart\u3002<\/p>\n<h2>\u56db\u3001Chart \u6d4b\u8bd5\u6846\u67b6&#xff1a;\u5b89\u88c5\u540e\u81ea\u52a8\u9a8c\u8bc1<\/h2>\n<p>Helm \u5185\u7f6e\u4e86\u6d4b\u8bd5\u6846\u67b6&#xff0c;\u53ef\u4ee5\u5728\u5b89\u88c5\/\u5347\u7ea7\u540e\u81ea\u52a8\u8fd0\u884c\u9a8c\u8bc1\u811a\u672c&#xff0c;\u786e\u4fdd\u5e94\u7528\u771f\u6b63\u53ef\u7528\u3002<\/p>\n<p>\u5b9a\u4e49\u6d4b\u8bd5 Pod&#xff08;templates\/tests\/&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># templates\/tests\/test-connection.yaml<\/span><br \/>\n<span class=\"token key atrule\">apiVersion<\/span><span class=\"token punctuation\">:<\/span> v1<br \/>\n<span class=\"token key atrule\">kind<\/span><span class=\"token punctuation\">:<\/span> Pod<br \/>\n<span class=\"token key atrule\">metadata<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;{{ .Release.Name }}-test-connection&#034;<\/span><br \/>\n  <span class=\"token key atrule\">annotations<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">&#034;helm.sh\/hook&#034;<\/span><span class=\"token punctuation\">:<\/span> test<br \/>\n    <span class=\"token key atrule\">&#034;helm.sh\/hook-delete-policy&#034;<\/span><span class=\"token punctuation\">:<\/span> hook<span class=\"token punctuation\">&#8211;<\/span>succeeded<br \/>\n<span class=\"token key atrule\">spec<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">containers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> wget<br \/>\n      <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> busybox<br \/>\n      <span class=\"token key atrule\">command<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;wget&#039;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token key atrule\">args<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;{{ .Release.Name }}:{{ .Values.service.port }}&#039;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n  <span class=\"token key atrule\">restartPolicy<\/span><span class=\"token punctuation\">:<\/span> Never<\/p>\n<p>\u8fd0\u884c\u6d4b\u8bd5&#xff1a;<\/p>\n<p>helm <span class=\"token builtin class-name\">test<\/span> my-release<br \/>\n<span class=\"token comment\"># NAME: my-release<\/span><br \/>\n<span class=\"token comment\"># LAST DEPLOYED: Mon Jul 27 15:00:00 2026<\/span><br \/>\n<span class=\"token comment\"># NAMESPACE: default<\/span><br \/>\n<span class=\"token comment\"># STATUS: deployed<\/span><br \/>\n<span class=\"token comment\"># TEST SUITE:     my-release-test-connection<\/span><br \/>\n<span class=\"token comment\"># Last Started:   Mon Jul 27 15:01:00 2026<\/span><br \/>\n<span class=\"token comment\"># Last Completed: Mon Jul 27 15:01:05 2026<\/span><br \/>\n<span class=\"token comment\"># Phase:          Succeeded<\/span><\/p>\n<p>\u6211\u4eec\u56e2\u961f\u7684\u5b9e\u8df5&#xff1a; \u6240\u6709 Chart \u5fc5\u987b\u5305\u542b\u81f3\u5c11\u4e00\u4e2a\u6d4b\u8bd5\u7528\u4f8b&#xff0c;\u9a8c\u8bc1\u6838\u5fc3\u670d\u52a1\u53ef\u8bbf\u95ee\u6027\u3002CI\/CD \u6d41\u7a0b\u4e2d helm upgrade \u540e\u81ea\u52a8\u8dd1 helm test&#xff0c;\u6d4b\u8bd5\u5931\u8d25\u5219\u81ea\u52a8\u56de\u6eda\u3002<\/p>\n<p>\u8fdb\u9636\u6d4b\u8bd5&#xff1a;\u6570\u636e\u5e93\u8fde\u901a\u6027\u9a8c\u8bc1<\/p>\n<p><span class=\"token comment\"># templates\/tests\/test-db-connection.yaml<\/span><br \/>\n<span class=\"token key atrule\">apiVersion<\/span><span class=\"token punctuation\">:<\/span> v1<br \/>\n<span class=\"token key atrule\">kind<\/span><span class=\"token punctuation\">:<\/span> Pod<br \/>\n<span class=\"token key atrule\">metadata<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;{{ .Release.Name }}-test-db&#034;<\/span><br \/>\n  <span class=\"token key atrule\">annotations<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">&#034;helm.sh\/hook&#034;<\/span><span class=\"token punctuation\">:<\/span> test<br \/>\n<span class=\"token key atrule\">spec<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">containers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> pg<span class=\"token punctuation\">&#8211;<\/span>test<br \/>\n      <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> postgres<span class=\"token punctuation\">:<\/span><span class=\"token number\">15<\/span><br \/>\n      <span class=\"token key atrule\">command<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;psql&#039;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token key atrule\">args<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#039;-c&#039;<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#039;SELECT 1&#039;<\/span><br \/>\n      <span class=\"token key atrule\">env<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> PGHOST<br \/>\n          <span class=\"token key atrule\">value<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;{{ .Release.Name }}-db&#034;<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> PGUSER<br \/>\n          <span class=\"token key atrule\">value<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;postgres&#034;<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> PGPASSWORD<br \/>\n          <span class=\"token key atrule\">valueFrom<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            <span class=\"token key atrule\">secretKeyRef<\/span><span class=\"token punctuation\">:<\/span><br \/>\n              <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;{{ .Release.Name }}-db-postgresql&#034;<\/span><br \/>\n              <span class=\"token key atrule\">key<\/span><span class=\"token punctuation\">:<\/span> password<br \/>\n  <span class=\"token key atrule\">restartPolicy<\/span><span class=\"token punctuation\">:<\/span> Never<\/p>\n<h2>\u4e94\u3001CI\/CD \u96c6\u6210&#xff1a;\u4ece\u624b\u52a8\u90e8\u7f72\u5230\u81ea\u52a8\u5316\u6d41\u6c34\u7ebf<\/h2>\n<p>Helm \u5929\u7136\u9002\u5408 CI\/CD \u96c6\u6210\u3002\u6211\u4eec\u56e2\u961f\u7528 GitLab CI &#043; Helm \u5b9e\u73b0\u4e86\u4e00\u5957\u5b8c\u6574\u6d41\u7a0b&#xff1a;<\/p>\n<p>.gitlab-ci.yml \u6838\u5fc3\u7247\u6bb5&#xff1a;<\/p>\n<p><span class=\"token key atrule\">stages<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> lint<br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> test<br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> package<br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> deploy<\/p>\n<p><span class=\"token comment\"># \u9636\u6bb5 1&#xff1a;\u8bed\u6cd5\u68c0\u67e5<\/span><br \/>\n<span class=\"token key atrule\">helm-lint<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">stage<\/span><span class=\"token punctuation\">:<\/span> lint<br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> alpine\/helm<span class=\"token punctuation\">:<\/span>3.12.0<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm lint charts\/myapp\/<br \/>\n  <span class=\"token key atrule\">rules<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">if<\/span><span class=\"token punctuation\">:<\/span> $CI_PIPELINE_SOURCE &#061;&#061; &#034;merge_request_event&#034;<\/p>\n<p><span class=\"token comment\"># \u9636\u6bb5 2&#xff1a;\u6a21\u677f\u6e32\u67d3\u9a8c\u8bc1&#xff08;dry-run&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">helm-template<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">stage<\/span><span class=\"token punctuation\">:<\/span> test<br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> alpine\/helm<span class=\"token punctuation\">:<\/span>3.12.0<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm template myapp charts\/myapp\/ <span class=\"token punctuation\">&#8211;<\/span>f values\/dev.yaml <span class=\"token punctuation\">&gt;<\/span> \/dev\/null<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm template myapp charts\/myapp\/ <span class=\"token punctuation\">&#8211;<\/span>f values\/prod.yaml <span class=\"token punctuation\">&gt;<\/span> \/dev\/null<br \/>\n  <span class=\"token key atrule\">rules<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">if<\/span><span class=\"token punctuation\">:<\/span> $CI_PIPELINE_SOURCE &#061;&#061; &#034;merge_request_event&#034;<\/p>\n<p><span class=\"token comment\"># \u9636\u6bb5 3&#xff1a;\u6253\u5305\u5e76\u63a8\u9001\u5230 Chart \u4ed3\u5e93<\/span><br \/>\n<span class=\"token key atrule\">helm-package<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">stage<\/span><span class=\"token punctuation\">:<\/span> package<br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> alpine\/helm<span class=\"token punctuation\">:<\/span>3.12.0<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm dependency update charts\/myapp\/<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm package charts\/myapp\/ <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>version $CI_COMMIT_TAG<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm push myapp<span class=\"token punctuation\">&#8211;<\/span>$CI_COMMIT_TAG.tgz oci<span class=\"token punctuation\">:<\/span>\/\/$OCI_REGISTRY\/charts<br \/>\n  <span class=\"token key atrule\">rules<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">if<\/span><span class=\"token punctuation\">:<\/span> $CI_COMMIT_TAG<\/p>\n<p><span class=\"token comment\"># \u9636\u6bb5 4&#xff1a;\u90e8\u7f72\u5230 staging<\/span><br \/>\n<span class=\"token key atrule\">deploy-staging<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">stage<\/span><span class=\"token punctuation\">:<\/span> deploy<br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> alpine\/helm<span class=\"token punctuation\">:<\/span>3.12.0<br \/>\n  <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span> staging<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm upgrade <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>install myapp oci<span class=\"token punctuation\">:<\/span>\/\/$OCI_REGISTRY\/charts\/myapp<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>version $CI_COMMIT_TAG<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span>f values\/staging.yaml<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span>n myapp<span class=\"token punctuation\">&#8211;<\/span>staging<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>create<span class=\"token punctuation\">&#8211;<\/span>namespace<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm test myapp <span class=\"token punctuation\">&#8211;<\/span>n myapp<span class=\"token punctuation\">&#8211;<\/span>staging<br \/>\n  <span class=\"token key atrule\">rules<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">if<\/span><span class=\"token punctuation\">:<\/span> $CI_COMMIT_TAG &#061;~ \/^v<span class=\"token punctuation\">[<\/span>0<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">]<\/span>&#043;\\\\.<span class=\"token punctuation\">[<\/span>0<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">]<\/span>&#043;\\\\.<span class=\"token punctuation\">[<\/span>0<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">]<\/span>&#043;<span class=\"token punctuation\">&#8211;<\/span>rc\\\\.<span class=\"token punctuation\">[<\/span>0<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">]<\/span>&#043;$\/<br \/>\n  <span class=\"token key atrule\">after_script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token punctuation\">|<\/span><span class=\"token scalar string\"><br \/>\n      if [ $CI_JOB_STATUS &#061;&#061; &#034;failed&#034; ]; then<br \/>\n        helm rollback myapp -n myapp-staging<br \/>\n      fi<\/span><\/p>\n<p><span class=\"token comment\"># \u9636\u6bb5 5&#xff1a;\u90e8\u7f72\u5230 production&#xff08;\u9700\u8981\u624b\u52a8\u5ba1\u6279&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">deploy-production<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">stage<\/span><span class=\"token punctuation\">:<\/span> deploy<br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> alpine\/helm<span class=\"token punctuation\">:<\/span>3.12.0<br \/>\n  <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span> production<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm upgrade <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>install myapp oci<span class=\"token punctuation\">:<\/span>\/\/$OCI_REGISTRY\/charts\/myapp<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>version $CI_COMMIT_TAG<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span>f values\/production.yaml<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span>n myapp<span class=\"token punctuation\">&#8211;<\/span>prod<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>create<span class=\"token punctuation\">&#8211;<\/span>namespace<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm test myapp <span class=\"token punctuation\">&#8211;<\/span>n myapp<span class=\"token punctuation\">&#8211;<\/span>prod<br \/>\n  <span class=\"token key atrule\">rules<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">if<\/span><span class=\"token punctuation\">:<\/span> $CI_COMMIT_TAG &#061;~ \/^v<span class=\"token punctuation\">[<\/span>0<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">]<\/span>&#043;\\\\.<span class=\"token punctuation\">[<\/span>0<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">]<\/span>&#043;\\\\.<span class=\"token punctuation\">[<\/span>0<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">]<\/span>&#043;$\/<br \/>\n  <span class=\"token key atrule\">when<\/span><span class=\"token punctuation\">:<\/span> manual<br \/>\n  <span class=\"token key atrule\">allow_failure<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">false<\/span><\/p>\n<p>\u5173\u952e\u8bbe\u8ba1\u70b9&#xff1a;<\/p>\n<li>lint &#043; template \u53cc\u91cd\u9a8c\u8bc1&#xff1a;\u8bed\u6cd5\u6b63\u786e\u4e0d\u4ee3\u8868\u6e32\u67d3\u6b63\u786e&#xff0c;\u5fc5\u987b\u4e24\u6b65\u90fd\u8fc7<\/li>\n<li>OCI Registry&#xff1a;Helm 3 \u652f\u6301 OCI \u534f\u8bae&#xff0c;\u76f4\u63a5\u63a8\u9001\u5230 Docker Registry&#xff0c;\u4e0d\u9700\u8981\u5355\u72ec\u7684 ChartMuseum<\/li>\n<li>\u8bed\u4e49\u5316\u7248\u672c\u89c4\u5219&#xff1a;v1.2.3-rc.1 \u81ea\u52a8\u90e8\u7f72 staging&#xff0c;v1.2.3 \u9700\u624b\u52a8\u5ba1\u6279\u4e0a\u751f\u4ea7<\/li>\n<li>\u6d4b\u8bd5\u5931\u8d25\u81ea\u52a8\u56de\u6eda&#xff1a;after_script \u4e2d\u5224\u65ad\u4efb\u52a1\u72b6\u6001&#xff0c;\u5931\u8d25\u5219\u56de\u6eda<\/li>\n<h2>\u516d\u3001Chart \u4ed3\u5e93&#xff1a;\u4ece\u672c\u5730\u6587\u4ef6\u5230\u4f01\u4e1a\u7ea7\u6258\u7ba1<\/h2>\n<p>Helm \u652f\u6301\u591a\u79cd Chart \u4ed3\u5e93\u65b9\u6848&#xff1a;<\/p>\n<table>\n<tr>\u65b9\u6848\u9002\u7528\u573a\u666f\u4f18\u7f3a\u70b9<\/tr>\n<tbody>\n<tr>\n<td>\u672c\u5730\u6587\u4ef6\u7cfb\u7edf<\/td>\n<td>\u5f00\u53d1\u6d4b\u8bd5<\/td>\n<td>\u7b80\u5355\u4f46\u65e0\u6cd5\u56e2\u961f\u5171\u4eab<\/td>\n<\/tr>\n<tr>\n<td>HTTP \u670d\u52a1\u5668<\/td>\n<td>\u4e2d\u5c0f\u56e2\u961f<\/td>\n<td>\u9700\u81ea\u5efa&#xff0c;\u7ef4\u62a4\u6210\u672c\u4e2d\u7b49<\/td>\n<\/tr>\n<tr>\n<td>ChartMuseum<\/td>\n<td>\u4f01\u4e1a\u79c1\u6709\u4ed3\u5e93<\/td>\n<td>\u529f\u80fd\u5b8c\u5584&#xff0c;\u652f\u6301\u591a\u5b58\u50a8\u540e\u7aef<\/td>\n<\/tr>\n<tr>\n<td>OCI Registry<\/td>\n<td>\u73b0\u4ee3\u65b9\u6848<\/td>\n<td>\u590d\u7528 Docker Registry&#xff0c;\u65e0\u9700\u989d\u5916\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td>Artifact Hub<\/td>\n<td>\u5f00\u6e90 Chart \u53d1\u73b0<\/td>\n<td>\u516c\u5f00\u4ed3\u5e93&#xff0c;\u7c7b\u4f3c npm registry<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>OCI Registry \u65b9\u5f0f&#xff08;\u63a8\u8350&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u767b\u5f55 Registry<\/span><br \/>\nhelm registry login registry.example.com <span class=\"token parameter variable\">-u<\/span> myuser <span class=\"token parameter variable\">-p<\/span> mytoken<\/p>\n<p><span class=\"token comment\"># \u63a8\u9001 Chart<\/span><br \/>\nhelm push myapp-1.2.0.tgz oci:\/\/registry.example.com\/charts<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5<\/span><br \/>\nhelm <span class=\"token function\">install<\/span> myapp oci:\/\/registry.example.com\/charts\/myapp <span class=\"token parameter variable\">&#8211;version<\/span> <span class=\"token number\">1.2<\/span>.0<\/p>\n<p>\u6211\u4eec\u56e2\u961f\u7684\u9009\u62e9&#xff1a; \u7528 Harbor \u4f5c\u4e3a\u79c1\u6709 Registry&#xff0c;\u540c\u65f6\u6258\u7ba1 Docker \u955c\u50cf\u548c Helm Chart&#xff0c;\u4e00\u5957\u6743\u9650\u4f53\u7cfb\u7ba1\u7406\u6240\u6709\u5236\u54c1\u3002<\/p>\n<h2>\u4e03\u3001Helm Diff \u63d2\u4ef6&#xff1a;\u5347\u7ea7\u524d\u9884\u89c8\u53d8\u66f4<\/h2>\n<p>helm upgrade \u6700\u5927\u7684\u75db\u70b9\u662f\u4e0d\u77e5\u9053\u5177\u4f53\u6539\u4e86\u4ec0\u4e48\u3002Helm Diff \u63d2\u4ef6\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5\u63d2\u4ef6<\/span><br \/>\nhelm plugin <span class=\"token function\">install<\/span> https:\/\/github.com\/databus23\/helm-diff<\/p>\n<p><span class=\"token comment\"># \u5347\u7ea7\u524d\u9884\u89c8\u53d8\u66f4<\/span><br \/>\nhelm <span class=\"token function\">diff<\/span> upgrade myapp bitnami\/nginx <span class=\"token parameter variable\">-f<\/span> values\/prod.yaml<br \/>\n<span class=\"token comment\"># default, myapp-nginx (Deployment)       spec.template.spec.containers[0].image<\/span><br \/>\n<span class=\"token comment\"># &#8211; image: nginx:1.20<\/span><br \/>\n<span class=\"token comment\"># &#043; image: nginx:1.21<\/span><\/p>\n<p>CI\/CD \u4e2d\u96c6\u6210 Diff&#xff1a;<\/p>\n<p><span class=\"token key atrule\">helm-diff<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">stage<\/span><span class=\"token punctuation\">:<\/span> test<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> helm diff upgrade myapp charts\/myapp\/ <span class=\"token punctuation\">&#8211;<\/span>f values\/prod.yaml <span class=\"token punctuation\">|<\/span><span class=\"token punctuation\">|<\/span> true<br \/>\n  <span class=\"token key atrule\">artifacts<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">paths<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> diff<span class=\"token punctuation\">&#8211;<\/span>output.txt<\/p>\n<p>\u6211\u4eec\u56e2\u961f\u89c4\u5b9a&#xff1a;\u751f\u4ea7\u73af\u5883\u4efb\u4f55 helm upgrade&#xff0c;\u5fc5\u987b\u5148\u8dd1 diff \u5e76\u5728 MR \u4e2d\u5c55\u793a\u53d8\u66f4\u5185\u5bb9\u3002<\/p>\n<h2>\u516b\u3001\u654f\u611f\u4fe1\u606f\u7ba1\u7406&#xff1a;\u4ece\u660e\u6587\u5230\u52a0\u5bc6<\/h2>\n<p>Chart \u4e2d\u7ecf\u5e38\u5305\u542b\u6570\u636e\u5e93\u5bc6\u7801\u3001API Key \u7b49\u654f\u611f\u4fe1\u606f\u3002\u76f4\u63a5\u5199 values.yaml \u4f1a\u8fdb\u5165 Git \u4ed3\u5e93&#xff0c;\u5b58\u5728\u5b89\u5168\u98ce\u9669\u3002<\/p>\n<p>\u65b9\u6848 1&#xff1a;Sealed Secrets&#xff08;\u63a8\u8350&#xff09;<\/p>\n<p><span class=\"token comment\"># values.yaml \u4e2d\u5f15\u7528\u52a0\u5bc6 Secret<\/span><br \/>\n<span class=\"token key atrule\">postgresql<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">auth<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">existingSecret<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;myapp-db-secret&#034;<\/span><\/p>\n<p>\u7528 kubeseal \u52a0\u5bc6 Secret&#xff1a;<\/p>\n<p>kubectl create secret generic myapp-db-secret &#8211;from-literal<span class=\"token operator\">&#061;<\/span>password<span class=\"token operator\">&#061;<\/span>prod-pass-2026 &#8211;dry-run<span class=\"token operator\">&#061;<\/span>client <span class=\"token parameter variable\">-o<\/span> yaml <span class=\"token operator\">|<\/span> kubeseal <span class=\"token parameter variable\">-o<\/span> yaml <span class=\"token operator\">&gt;<\/span> sealed-secret.yaml<\/p>\n<p>\u65b9\u6848 2&#xff1a;Helm Secrets \u63d2\u4ef6<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5\u63d2\u4ef6<\/span><br \/>\nhelm plugin <span class=\"token function\">install<\/span> https:\/\/github.com\/jkroepke\/helm-secrets<\/p>\n<p><span class=\"token comment\"># \u52a0\u5bc6 values \u6587\u4ef6<\/span><br \/>\nhelm secrets encrypt values\/prod-secrets.yaml<\/p>\n<p><span class=\"token comment\"># \u90e8\u7f72\u65f6\u81ea\u52a8\u89e3\u5bc6<\/span><br \/>\nhelm secrets upgrade myapp charts\/myapp\/ <span class=\"token parameter variable\">-f<\/span> values\/prod.yaml <span class=\"token parameter variable\">-f<\/span> values\/prod-secrets.yaml<\/p>\n<p>\u6211\u4eec\u56e2\u961f\u7684\u9009\u62e9&#xff1a; CI\/CD \u4e2d\u7528 Helm Secrets&#xff0c;\u672c\u5730\u5f00\u53d1\u7528 Sealed Secrets\u3002\u4e24\u79cd\u65b9\u6848\u5404\u6709\u4f18\u52a3&#xff0c;\u4f46\u6838\u5fc3\u539f\u5219\u4e00\u81f4&#xff1a;\u654f\u611f\u4fe1\u606f\u4e0d\u5165 Git\u3002<\/p>\n<h2>\u4e5d\u3001\u6211\u4eec\u843d\u5730 Helm \u4f9d\u8d56\u7ba1\u7406\u7684\u51e0\u4e2a\u5173\u952e\u5751<\/h2>\n<p>\u5751 1&#xff1a;\u5faa\u73af\u4f9d\u8d56\u5bfc\u81f4\u65e0\u9650\u9012\u5f52\u3002<br \/>\nA \u4f9d\u8d56 B&#xff0c;B \u53c8\u4f9d\u8d56 A\u3002Helm \u4f1a\u76f4\u63a5\u62a5\u9519&#xff0c;\u4f46\u6392\u67e5\u65f6\u5bb9\u6613\u5ffd\u7565\u3002\u89c4\u8303&#xff1a;\u4f9d\u8d56\u56fe\u5fc5\u987b\u662f\u65e0\u73af\u6709\u5411\u56fe&#xff08;DAG&#xff09;\u3002<\/p>\n<p>\u5751 2&#xff1a;\u5b50 Chart \u7248\u672c\u4e0d\u517c\u5bb9\u3002<br \/>\n\u7236 Chart \u58f0\u660e redis: &#034;17.x.x&#034;&#xff0c;\u4f46\u67d0\u4e2a\u5b50 Chart \u53c8\u4f9d\u8d56 redis: &#034;16.x.x&#034;&#xff0c;\u7248\u672c\u51b2\u7a81\u3002\u89e3\u51b3\u65b9\u6848&#xff1a;\u7528 helm dependency list \u68c0\u67e5\u7248\u672c\u6811&#xff0c;\u786e\u4fdd\u517c\u5bb9\u3002<\/p>\n<p>\u5751 3&#xff1a;charts\/ \u76ee\u5f55\u5fd8\u8bb0\u63d0\u4ea4\u3002<br \/>\nhelm dep up \u751f\u6210\u7684 .tgz \u6587\u4ef6\u5e94\u8be5\u63d0\u4ea4\u5230 Git&#xff08;\u9664\u975e\u7528 CI\/CD \u81ea\u52a8\u6784\u5efa&#xff09;\u3002\u6211\u4eec\u56e2\u961f\u89c4\u5b9a&#xff1a;charts\/ \u76ee\u5f55\u5fc5\u987b\u7eb3\u5165\u7248\u672c\u63a7\u5236&#xff0c;\u4fdd\u8bc1\u4efb\u4f55\u65f6\u95f4\u70b9\u90fd\u80fd\u5b8c\u6574\u590d\u73b0\u53d1\u5e03\u3002<\/p>\n<p>\u5751 4&#xff1a;global \u503c\u6c61\u67d3\u3002<br \/>\nglobal \u5b57\u6bb5\u4f1a\u4f20\u9012\u7ed9\u6240\u6709\u5b50 Chart&#xff0c;\u4f46\u5f88\u591a\u65b0\u4eba\u4e0d\u77e5\u9053\u3002\u6211\u4eec\u5728\u89c4\u8303\u91cc\u660e\u786e&#xff1a;global \u53ea\u653e\u771f\u6b63\u5168\u5c40\u7684\u503c&#xff08;\u5982 imageRegistry&#xff09;&#xff0c;\u73af\u5883\u7279\u5b9a\u914d\u7f6e\u5fc5\u987b\u653e\u5728\u5bf9\u5e94\u5b50 Chart \u547d\u540d\u7a7a\u95f4\u4e0b\u3002<\/p>\n<h2>\u5341\u3001\u5199\u5728\u6700\u540e<\/h2>\n<p>Helm \u7684\u4f9d\u8d56\u7ba1\u7406\u548c CI\/CD \u96c6\u6210&#xff0c;\u672c\u8d28\u4e0a\u662f\u5728\u89e3\u51b3\u5e94\u7528\u6808\u7684\u6807\u51c6\u5316\u4ea4\u4ed8\u95ee\u9898\u3002<\/p>\n<p>\u4ece\u5355 Chart \u5230\u591a Chart \u4f9d\u8d56&#xff0c;\u4ece\u624b\u52a8 helm install \u5230 GitLab CI \u81ea\u52a8\u5316\u6d41\u6c34\u7ebf&#xff0c;\u4ece\u660e\u6587\u5bc6\u7801\u5230 Helm Secrets \u52a0\u5bc6\u2014\u2014\u8fd9\u5957\u5de5\u7a0b\u5316\u80fd\u529b\u7684\u6f14\u8fdb&#xff0c;\u6620\u5c04\u7740\u6211\u4eec\u4ece&#034;\u80fd\u8dd1\u5c31\u884c&#034;\u5230&#034;\u53ef\u590d\u73b0\u3001\u53ef\u8ffd\u6eaf\u3001\u53ef\u56de\u6eda&#034;\u7684\u67b6\u6784\u6210\u719f\u5ea6\u63d0\u5347\u3002<\/p>\n<p>\u6211\u4eec\u56e2\u961f\u73b0\u5728\u7684\u6807\u51c6&#xff1a;\u4efb\u4f55\u5e94\u7528\u6808\u4e0a\u7ebf&#xff0c;\u5fc5\u987b\u63d0\u4f9b Helm Chart &#043; CI\/CD \u6d41\u6c34\u7ebf &#043; \u6d4b\u8bd5\u7528\u4f8b\u3002 Chart \u5373\u6587\u6863&#xff0c;\u6d41\u6c34\u7ebf\u5373\u6d41\u7a0b&#xff0c;\u6d4b\u8bd5\u5373\u4fdd\u969c\u3002<\/p>\n<p>\u4e0b\u4e00\u7ad9&#xff0c;\u6211\u4eec\u53ef\u4ee5\u804a\u804a ArgoCD &#043; Helm&#xff0c;\u770b\u770b\u5728 GitOps \u4f53\u7cfb\u4e0b&#xff0c;Helm Chart \u5982\u4f55\u6210\u4e3a\u58f0\u660e\u5f0f\u90e8\u7f72\u7684\u6838\u5fc3\u8f7d\u4f53\u3002\u5173\u6ce8\u6211&#xff0c;\u67b6\u6784\u8def\u4e0a\u4e0d\u8ff7\u8def\u3002<\/p>\n<p>\u2014\u2014 \u672c\u6587\u662f\u300a100 \u7bc7\u67b6\u6784\u5b9e\u6218\u300b\u7cfb\u5217\u7b2c 90 \u7bc7&#xff0c;\u627f\u63a5\u4e0a\u7bc7 Helm \u57fa\u7840&#xff0c;\u8fdb\u9636\u63a2\u8ba8\u4f9d\u8d56\u7ba1\u7406\u4e0e\u81ea\u52a8\u5316\u96c6\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4ece\\&#8221;\u5355 Chart\\&#8221;\u5230\\&#8221;\u5e94\u7528\u6808\\&#8221;<br \/>\n\u4e0a\u7bc7\u6211\u4eec\u804a\u4e86 Helm \u7684\u57fa\u7840\u6982\u5ff5\u3001values.yaml \u914d\u7f6e\u7ba1\u7406\u548c Release \u56de\u6eda\u673a\u5236\u3002\u4f46\u771f\u5b9e\u4e16\u754c\u8fdc\u6bd4\u5355\u4e2a Chart \u590d\u6742&#xff1a;<br \/>\n\u4e00\u4e2a\u5178\u578b\u7684\u5fae\u670d\u52a1\u5e94\u7528\u6808&#xff0c;\u53ef\u80fd\u5305\u542b&#xff1a;<br \/>\n\u524d\u7aef\u540e\u7aef API&#xff08;Spring Boot&#xff09;\u6570\u636e\u5e93\u7f13\u5b58&#xff08;Redis Cluster&#xff09;\u6d88\u606f\u961f\u5217\u76d1\u63a7<br \/>\n\u5982\u679c\u7528 6 \u4e2a\u72ec\u7acb Chart \u5206\u522b\u7ba1\u7406&amp;#xff0c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[597,188],"topic":[],"class_list":["post-88128","post","type-post","status-publish","format-standard","hentry","category-server","tag-ci-cd","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/88128.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4ece&quot;\u5355 Chart&quot;\u5230&quot;\u5e94\u7528\u6808&quot; \u4e0a\u7bc7\u6211\u4eec\u804a\u4e86 Helm \u7684\u57fa\u7840\u6982\u5ff5\u3001values.yaml \u914d\u7f6e\u7ba1\u7406\u548c Release \u56de\u6eda\u673a\u5236\u3002\u4f46\u771f\u5b9e\u4e16\u754c\u8fdc\u6bd4\u5355\u4e2a Chart \u590d\u6742&#xff1a; \u4e00\u4e2a\u5178\u578b\u7684\u5fae\u670d\u52a1\u5e94\u7528\u6808&#xff0c;\u53ef\u80fd\u5305\u542b&#xff1a; \u524d\u7aef\u540e\u7aef API&#xff08;Spring Boot&#xff09;\u6570\u636e\u5e93\u7f13\u5b58&#xff08;Redis Cluster&#xff09;\u6d88\u606f\u961f\u5217\u76d1\u63a7 \u5982\u679c\u7528 6 \u4e2a\u72ec\u7acb Chart \u5206\u522b\u7ba1\u7406&amp;#xff0c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/88128.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-31T07:00:37+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88128.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/88128.html\",\"name\":\"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-31T07:00:37+00:00\",\"dateModified\":\"2026-07-31T07:00:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/88128.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/88128.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88128.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/88128.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4ece\"\u5355 Chart\"\u5230\"\u5e94\u7528\u6808\" \u4e0a\u7bc7\u6211\u4eec\u804a\u4e86 Helm \u7684\u57fa\u7840\u6982\u5ff5\u3001values.yaml \u914d\u7f6e\u7ba1\u7406\u548c Release \u56de\u6eda\u673a\u5236\u3002\u4f46\u771f\u5b9e\u4e16\u754c\u8fdc\u6bd4\u5355\u4e2a Chart \u590d\u6742&#xff1a; \u4e00\u4e2a\u5178\u578b\u7684\u5fae\u670d\u52a1\u5e94\u7528\u6808&#xff0c;\u53ef\u80fd\u5305\u542b&#xff1a; \u524d\u7aef\u540e\u7aef API&#xff08;Spring Boot&#xff09;\u6570\u636e\u5e93\u7f13\u5b58&#xff08;Redis Cluster&#xff09;\u6d88\u606f\u961f\u5217\u76d1\u63a7 \u5982\u679c\u7528 6 \u4e2a\u72ec\u7acb Chart \u5206\u522b\u7ba1\u7406&amp;#xff0c","og_url":"https:\/\/www.wsisp.com\/helps\/88128.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-31T07:00:37+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/88128.html","url":"https:\/\/www.wsisp.com\/helps\/88128.html","name":"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-31T07:00:37+00:00","dateModified":"2026-07-31T07:00:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/88128.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/88128.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/88128.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u67b6\u6784\u5b9e\u6218\u3011Helm Chart \u8fdb\u9636\uff1a\u4f9d\u8d56\u7ba1\u7406\u3001\u6d4b\u8bd5\u4e0e CI\/CD \u96c6\u6210"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=88128"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88128\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=88128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=88128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=88128"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=88128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}