{"id":92275,"date":"2026-08-09T22:34:07","date_gmt":"2026-08-09T14:34:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/92275.html"},"modified":"2026-08-09T22:34:07","modified_gmt":"2026-08-09T14:34:07","slug":"gitlab-ci-cd-%e8%87%aa%e6%89%98%e7%ae%a1%ef%bc%88ee-%e4%bc%81%e4%b8%9a%e7%89%88%ef%bc%89-kubernetes-runner-%e9%9b%86%e7%be%a4-argocd%ef%bc%88gitops-%e9%83%a8%e7%bd%b2%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/92275.html","title":{"rendered":"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09"},"content":{"rendered":"<p>                     \u5047\u8bbe\u4f60\u6709\u670d\u52a1\u5668\u67093 \u4e07\u53f0&#xff0c;\u4e1a\u52a1\u7c7b\u578b\u6709Python \u4e0e Java \u5404\u5360 50% \u7684\u8d85\u5927\u89c4\u6a21\u573a\u666f&#xff0c;\u6700\u7ec8\u63a8\u8350\u65b9\u6848\u4e3a&#xff1a;<\/p>\n<p>\u4e00\u53e5\u8bdd\u7ed3\u8bba&#xff1a;\u7528 GitLab CI \u505a&#034;\u6784\u5efa\u548c\u6d4b\u8bd5&#034;&#xff08;CI&#xff09;&#xff0c;\u7528 ArgoCD \u505a&#034;\u90e8\u7f72\u5230 3 \u4e07\u53f0\u670d\u52a1\u5668&#034;&#xff08;CD&#xff09;&#xff0c;\u4e24\u8005\u901a\u8fc7\u5bb9\u5668\u955c\u50cf\u4ed3\u5e93\u8054\u52a8\u3002\u8fd9\u662f\u5f53\u524d&#xff08;2026 \u5e74&#xff09;\u8d85\u5927\u89c4\u6a21\u591a\u8bed\u8a00\u73af\u5883\u4e0b&#xff0c;\u5728\u7ef4\u62a4\u6210\u672c\u3001\u65b0\u4eba\u53cb\u597d\u5ea6\u3001\u81ea\u52a8\u5316\u6548\u7387\u4e09\u8005\u95f4\u5e73\u8861\u6700\u4f18\u7684\u67b6\u6784\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u65b9\u6848\u67b6\u6784\u603b\u89c8<\/h3>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  \u5f00\u53d1\u8005\u63d0\u4ea4\u4ee3\u7801 \u2192 GitLab EE&#xff08;\u4ee3\u7801\u6258\u7ba1 &#043; CI \u7f16\u6392&#xff09;                \u2502<br \/>\n\u2502                      \u2193                                          \u2502<br \/>\n\u2502  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510   \u2502<br \/>\n\u2502  \u2502  Java \u6784\u5efa   \u2502  \u2502 Python \u6784\u5efa  \u2502  \u2502 \u5b89\u5168\u626b\u63cf\/\u5355\u5143\u6d4b\u8bd5     \u2502   \u2502<br \/>\n\u2502  \u2502 (Maven\/Gradle)\u2502  \u2502(pip\/poetry) \u2502  \u2502 (SAST\/\u4f9d\u8d56\u68c0\u6d4b)      \u2502   \u2502<br \/>\n\u2502  \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2518  \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2518  \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518   \u2502<br \/>\n\u2502         \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518              \u2502<br \/>\n\u2502                           \u2193                                     \u2502<br \/>\n\u2502              \u7edf\u4e00\u5bb9\u5668\u955c\u50cf\u4ed3\u5e93&#xff08;Harbor\/Nexus&#xff09;                   \u2502<br \/>\n\u2502                           \u2193                                     \u2502<br \/>\n\u2502  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u2502<br \/>\n\u2502  \u2502              ArgoCD&#xff08;GitOps \u6301\u7eed\u4ea4\u4ed8\u5f15\u64ce&#xff09;                \u2502  \u2502<br \/>\n\u2502  \u2502     \u81ea\u52a8\u540c\u6b65 Git \u4ed3\u5e93\u4e2d\u7684 K8s Manifest \u5230 3 \u4e07\u53f0\u670d\u52a1\u5668    \u2502  \u2502<br \/>\n\u2502  \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518  \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u56db\u4e2a\u6838\u5fc3\u7ef4\u5ea6\u8be6\u7ec6\u5bf9\u6bd4<\/h3>\n<h4>1. \u642d\u5efa\u96be\u6613\u7a0b\u5ea6&#xff1a;\u2b50\u2b50\u2b50 \u4e2d\u7b49&#xff08;2-4 \u5468\u53ef\u6295\u4ea7&#xff09;<\/h4>\n<table>\n<tr>\u7ec4\u4ef6\u642d\u5efa\u590d\u6742\u5ea6\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>GitLab EE \u4e3b\u8282\u70b9<\/td>\n<td>\u4e2d<\/td>\n<td>\u4f7f\u7528 Helm \u6216 Omnibus \u5305\u90e8\u7f72&#xff0c;8C32G \u8d77\u6b65&#xff0c;\u9700\u914d\u7f6e PostgreSQL\/Redis\u3002\u6709\u5b98\u65b9\u4e2d\u6587\u6587\u6863&#xff0c;1-2 \u5929\u53ef\u8dd1\u901a\u3002<\/td>\n<\/tr>\n<tr>\n<td>K8s Runner \u96c6\u7fa4<\/td>\n<td>\u4e2d<\/td>\n<td>\u5728\u73b0\u6709 K8s \u96c6\u7fa4\u4e0a\u901a\u8fc7 Helm \u5b89\u88c5 GitLab Runner&#xff0c;\u914d\u7f6e config.toml \u7684\u5e76\u53d1\u6570\u548c\u7f13\u5b58\u7b56\u7565\u3002<\/td>\n<\/tr>\n<tr>\n<td>ArgoCD<\/td>\n<td>\u4f4e<\/td>\n<td>Helm \u4e00\u952e\u90e8\u7f72&#xff0c;\u914d\u7f6e Git \u4ed3\u5e93\u548c 3 \u4e07\u53f0\u670d\u52a1\u5668\u7684\u76ee\u6807\u96c6\u7fa4\u5373\u53ef\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u8bed\u8a00\u6784\u5efa\u955c\u50cf<\/td>\n<td>\u4f4e<\/td>\n<td>\u51c6\u5907\u6807\u51c6\u5316\u955c\u50cf&#xff1a;java-builder&#xff08;\u542b Maven\/Gradle\/OpenJDK&#xff09;\u3001python-builder&#xff08;\u542b\u591a\u7248\u672c pyenv\/poetry&#xff09;\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u952e&#xff1a;\u76f8\u6bd4 Jenkins \u9700\u8981\u9010\u4e2a\u914d\u7f6e Master\u3001Agent\u3001\u63d2\u4ef6\u4f9d\u8d56\u94fe&#xff0c;GitLab \u7684&#034;\u4e00\u4f53\u5316&#034;\u8bbe\u8ba1\u8ba9\u642d\u5efa\u6b65\u9aa4\u5c11 60% \u4ee5\u4e0a\u3002<\/p>\n<hr \/>\n<h4>2. \u7ef4\u62a4\u6210\u672c&#xff1a;\u2b50\u2b50\u2b50\u2b50 \u8f83\u4f4e&#xff08;\u4f18\u4e8e Jenkins&#xff0c;\u9002\u5408\u957f\u671f\u8fd0\u8425&#xff09;<\/h4>\n<table>\n<tr>\u6210\u672c\u9879GitLab \u65b9\u6848Jenkins \u65b9\u6848&#xff08;\u5bf9\u6bd4&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u4eba\u529b\u7ef4\u62a4<\/td>\n<td>0.5-1 \u540d\u4e13\u804c SRE<\/td>\n<td>2-3 \u540d\u4e13\u804c DevOps<\/td>\n<\/tr>\n<tr>\n<td>\u63d2\u4ef6\/\u5347\u7ea7<\/td>\n<td>\u5e73\u53f0\u81ea\u52a8\u5347\u7ea7&#xff0c;\u65e0\u63d2\u4ef6\u5730\u72f1<\/td>\n<td>30% \u63d2\u4ef6\u5e74\u4e45\u5931\u4fee&#xff0c;\u5347\u7ea7\u517c\u5bb9\u6027\u98ce\u9669\u9ad8<\/td>\n<\/tr>\n<tr>\n<td>\u6545\u969c\u6392\u67e5<\/td>\n<td>YAML \u8bed\u6cd5\u9519\u8bef\u4e00\u76ee\u4e86\u7136&#xff0c;\u65e5\u5fd7\u96c6\u4e2d<\/td>\n<td>Groovy \u811a\u672c\u8c03\u8bd5\u56f0\u96be&#xff0c;\u5206\u5e03\u5f0f Agent \u65e5\u5fd7\u5206\u6563<\/td>\n<\/tr>\n<tr>\n<td>3 \u5e74 TCO<\/td>\n<td>\u7ea6 \u00a5150-200 \u4e07&#xff08;\u542b EE \u8bb8\u53ef&#xff09;<\/td>\n<td>\u7ea6 \u00a5300-400 \u4e07&#xff08;\u4eba\u529b\u5360 80%&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6570\u636e\u652f\u6491&#xff1a;\u67d0 200 \u4eba\u4f01\u4e1a\u7684 3 \u5e74 TCO \u5206\u6790\u663e\u793a&#xff0c;Jenkins \u4eba\u529b\u6210\u672c\u7ea6 $480K&#xff0c;GitLab \u8ba2\u9605&#043;\u4eba\u529b\u7ea6 $336K&#xff0c;\u89c4\u6a21\u8d8a\u5927 GitLab \u8d8a\u7701\u3002<\/p>\n<hr \/>\n<h4>3. \u65b0\u4eba\u63a5\u66ff\u96be\u5ea6&#xff1a;\u2b50\u2b50\u2b50\u2b50\u2b50 \u6781\u4f4e&#xff08;1 \u5929\u4e0a\u624b&#xff09;<\/h4>\n<table>\n<tr>\u7ef4\u5ea6GitLab CIJenkins<\/tr>\n<tbody>\n<tr>\n<td>\u914d\u7f6e\u8bed\u8a00<\/td>\n<td>YAML&#xff08;\u58f0\u660e\u5f0f&#xff0c;\u4f1a\u5199 Docker Compose \u5c31\u4f1a\u5199&#xff09;<\/td>\n<td>Groovy&#xff08;\u9700\u4e13\u95e8\u5b66\u4e60&#xff0c;\u5bb9\u6613\u5199\u51fa&#034;\u610f\u5927\u5229\u9762\u6761&#034;\u4ee3\u7801&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6d41\u6c34\u7ebf\u4f4d\u7f6e<\/td>\n<td>.gitlab-ci.yml \u4e0e\u4ee3\u7801\u540c\u4ed3\u5e93&#xff0c;\u81ea\u6587\u6863\u5316<\/td>\n<td>Jenkinsfile \u6216 UI \u914d\u7f6e&#xff0c;\u5206\u6563\u7ba1\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u8bd5\u4f53\u9a8c<\/td>\n<td>Web UI \u5b9e\u65f6\u67e5\u770b\u6bcf\u6b65\u65e5\u5fd7&#xff0c;\u5931\u8d25\u6b65\u9aa4\u9ad8\u4eae<\/td>\n<td>\u9700\u8df3\u8f6c\u591a\u4e2a\u9875\u9762&#xff0c;Blue Ocean \u63d2\u4ef6\u53e6\u9700\u7ef4\u62a4<\/td>\n<\/tr>\n<tr>\n<td>\u77e5\u8bc6\u4f20\u627f<\/td>\n<td>\u56e2\u961f\u5185 1 \u4efd\u6a21\u677f\u5373\u53ef\u590d\u7528&#xff0c;MR \u65f6\u81ea\u52a8\u89e6\u53d1<\/td>\n<td>Shared Library \u5b66\u4e60\u66f2\u7ebf\u9661\u5ced&#xff0c;\u65b0\u4eba\u96be\u72ec\u7acb\u6392\u969c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9e\u9645\u6848\u4f8b&#xff1a;\u67d0 SaaS \u56e2\u961f\u4ece Jenkins \u8fc1\u79fb\u5230 GitLab CI \u540e&#xff0c;\u65b0\u6210\u5458\u4e0a\u624b\u65f6\u95f4\u4ece 3 \u5929\u7f29\u77ed\u81f3 2 \u5c0f\u65f6\u3002<\/p>\n<hr \/>\n<h4>4. \u81ea\u52a8\u5316\u6548\u7387&#xff1a;\u2b50\u2b50\u2b50\u2b50\u2b50 \u6781\u9ad8&#xff08;\u5e76\u884c\u5f39\u6027 &#043; \u7f13\u5b58\u52a0\u901f&#xff09;<\/h4>\n<table>\n<tr>\u4f18\u5316\u624b\u6bb5\u6548\u679c\u5b9e\u73b0\u65b9\u5f0f<\/tr>\n<tbody>\n<tr>\n<td>K8s \u5f39\u6027 Runner<\/td>\n<td>\u5e76\u53d1\u4ece 0\u21921000&#043; \u4ec5\u9700\u5206\u949f\u7ea7<\/td>\n<td>\u914d\u7f6e Karpenter\/cluster-autoscaler&#xff0c;\u6309\u4f5c\u4e1a\u961f\u5217\u81ea\u52a8\u6269\u7f29 Pod<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u5e03\u5f0f\u7f13\u5b58<\/td>\n<td>\u6784\u5efa\u63d0\u901f 40-60%<\/td>\n<td>\u63a5\u5165 S3\/MinIO \u4f5c\u4e3a cache \u540e\u7aef&#xff0c;Maven\/Gradle\/pip \u4f9d\u8d56\u5168\u5c40\u5171\u4eab<\/td>\n<\/tr>\n<tr>\n<td>\u5e76\u884c\u77e9\u9635\u6784\u5efa<\/td>\n<td>Java\/Python \u540c\u65f6\u8dd1&#xff0c;\u4e92\u4e0d\u963b\u585e<\/td>\n<td>parallel: matrix \u8bed\u6cd5&#xff0c;\u591a\u7248\u672c JDK\/Python \u540c\u65f6\u6d4b\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>GitOps \u90e8\u7f72<\/td>\n<td>3 \u4e07\u53f0\u670d\u52a1\u5668\u540c\u6b65\u5ef6\u8fdf &lt; 30 \u79d2<\/td>\n<td>ArgoCD \u81ea\u52a8\u8f6e\u8be2 Git \u4ed3\u5e93\u53d8\u66f4&#xff0c;\u6279\u91cf apply \u5230\u591a\u96c6\u7fa4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5927\u89c4\u6a21\u9a8c\u8bc1&#xff1a;GitLab.com \u5b98\u65b9 Runner \u96c6\u7fa4\u4f7f\u7528 7 \u4e2a Runner Manager&#xff0c;\u6bcf\u6708\u5904\u7406\u6570\u767e\u4e07\u4e2a CI\/CD \u4f5c\u4e1a&#xff0c;\u67b6\u6784\u53ef\u501f\u9274\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u9488\u5bf9 Python &#043; Java \u5404\u5360 50% \u7684\u5177\u4f53\u5b9e\u73b0<\/h3>\n<h4>\u6807\u51c6\u5316 .gitlab-ci.yml \u6a21\u677f&#xff08;\u6240\u6709\u9879\u76ee\u590d\u7528&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u6839\u76ee\u5f55\u653e\u7f6e .gitlab-ci-template.yml&#xff0c;\u5404\u9879\u76ee include \u5f15\u5165<\/span><br \/>\n<span class=\"token key atrule\">variables<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">MAVEN_CACHE<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;$CI_PROJECT_DIR\/.m2&#034;<\/span><br \/>\n  <span class=\"token key atrule\">PIP_CACHE<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;$CI_PROJECT_DIR\/.cache\/pip&#034;<\/span><br \/>\n  <span class=\"token key atrule\">DOCKER_REGISTRY<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;harbor.company.com&#034;<\/span><\/p>\n<p><span class=\"token key atrule\">stages<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>build<span class=\"token punctuation\">,<\/span> test<span class=\"token punctuation\">,<\/span> security<span class=\"token punctuation\">,<\/span> package<span class=\"token punctuation\">,<\/span> deploy<span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token comment\"># \u2500\u2500 Java \u9879\u76ee \u2500\u2500<\/span><br \/>\n<span class=\"token key atrule\">.build_java<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> harbor.company.com\/builder\/java<span class=\"token punctuation\">:<\/span>17<span class=\"token punctuation\">&#8211;<\/span>maven3.9<br \/>\n  <span class=\"token key atrule\">cache<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">key<\/span><span class=\"token punctuation\">:<\/span> $<span class=\"token punctuation\">{<\/span>CI_COMMIT_REF_SLUG<span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token key atrule\">paths<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>$MAVEN_CACHE<span class=\"token punctuation\">]<\/span><br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> mvn <span class=\"token punctuation\">&#8211;<\/span>Dmaven.repo.local&#061;$MAVEN_CACHE clean package <span class=\"token punctuation\">&#8211;<\/span>DskipTests<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> <span class=\"token punctuation\">[<\/span>target\/<span class=\"token important\">*.jar<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token key atrule\">.test_java<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> harbor.company.com\/builder\/java<span class=\"token punctuation\">:<\/span>17<span class=\"token punctuation\">&#8211;<\/span>maven3.9<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> mvn <span class=\"token punctuation\">&#8211;<\/span>Dmaven.repo.local&#061;$MAVEN_CACHE test<br \/>\n  <span class=\"token key atrule\">coverage<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;\/Total.*?(\\\\d&#043;\\\\%)\/&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u2500\u2500 Python \u9879\u76ee \u2500\u2500<\/span><br \/>\n<span class=\"token key atrule\">.build_python<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> harbor.company.com\/builder\/python<span class=\"token punctuation\">:<\/span>3.11<span class=\"token punctuation\">&#8211;<\/span>poetry<br \/>\n  <span class=\"token key atrule\">cache<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">key<\/span><span class=\"token punctuation\">:<\/span> $<span class=\"token punctuation\">{<\/span>CI_COMMIT_REF_SLUG<span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token key atrule\">paths<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>$PIP_CACHE<span class=\"token punctuation\">]<\/span><br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> poetry config cache<span class=\"token punctuation\">&#8211;<\/span>dir $PIP_CACHE<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> poetry install <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>no<span class=\"token punctuation\">&#8211;<\/span>interaction<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> poetry build<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> <span class=\"token punctuation\">[<\/span>dist\/<span class=\"token important\">*.whl<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token key atrule\">.test_python<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> harbor.company.com\/builder\/python<span class=\"token punctuation\">:<\/span>3.11<span class=\"token punctuation\">&#8211;<\/span>poetry<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> poetry install <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>no<span class=\"token punctuation\">&#8211;<\/span>interaction<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> poetry run pytest <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>cov&#061;src <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>cov<span class=\"token punctuation\">&#8211;<\/span>report&#061;xml<br \/>\n  <span class=\"token key atrule\">coverage<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;\/TOTAL.*?(\\\\d&#043;\\\\%)\/&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u2500\u2500 \u5b89\u5168\u626b\u63cf&#xff08;\u7edf\u4e00\u5361\u70b9&#xff09; \u2500\u2500<\/span><br \/>\n<span class=\"token key atrule\">security_scan<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">stage<\/span><span class=\"token punctuation\">:<\/span> security<br \/>\n  <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> returntocorp\/semgrep<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>semgrep <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>config&#061;auto <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>error .<span class=\"token punctuation\">]<\/span><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><span class=\"token comment\"># \u2500\u2500 \u5bb9\u5668\u5316\u6253\u5305 \u2500\u2500<\/span><br \/>\n<span class=\"token key atrule\">docker_build<\/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> docker<span class=\"token punctuation\">:<\/span>24<span class=\"token punctuation\">&#8211;<\/span>dind<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> docker build <span class=\"token punctuation\">&#8211;<\/span>t $DOCKER_REGISTRY\/$CI_PROJECT_NAME<span class=\"token punctuation\">:<\/span>$CI_COMMIT_SHA .<br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> docker push $DOCKER_REGISTRY\/$CI_PROJECT_NAME<span class=\"token punctuation\">:<\/span>$CI_COMMIT_SHA<\/p>\n<p><span class=\"token comment\"># \u2500\u2500 \u89e6\u53d1 ArgoCD \u90e8\u7f72&#xff08;GitOps&#xff09; \u2500\u2500<\/span><br \/>\n<span class=\"token key atrule\">trigger_deploy<\/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\/curl<br \/>\n  <span class=\"token key atrule\">script<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#039;curl -X POST &#034;$ARGOCD_WEBHOOK_URL&#034; -d &#034;{\\\\&#034;git_sha\\\\&#034;:\\\\&#034;$CI_COMMIT_SHA\\\\&#034;}&#034;&#039;<\/span><br \/>\n  <span class=\"token key atrule\">only<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>main<span class=\"token punctuation\">]<\/span><\/p>\n<p>\u5173\u952e\u8bbe\u8ba1&#xff1a;<\/p>\n<ul>\n<li>\u6a21\u677f\u7ee7\u627f&#xff1a;\u901a\u8fc7 include \u673a\u5236&#xff0c;3000&#043; \u4e2a\u9879\u76ee\u5171\u7528\u540c\u4e00\u4efd\u6a21\u677f&#xff0c;\u53d8\u66f4\u4e00\u6b21\u5168\u5c40\u751f\u6548\u3002<\/li>\n<li>\u8bed\u8a00\u9694\u79bb&#xff1a;Java \u7528 Maven \u672c\u5730\u4ed3\u5e93\u7f13\u5b58&#xff0c;Python \u7528 Poetry\/pip \u7f13\u5b58&#xff0c;\u4e92\u4e0d\u5f71\u54cd\u3002<\/li>\n<li>\u6784\u5efa\u5373\u4ee3\u7801&#xff1a;\u6d41\u6c34\u7ebf\u5b9a\u4e49\u5728\u4ee3\u7801\u4ed3\u5e93\u4e2d&#xff0c;Code Review \u65f6\u5c31\u80fd\u5ba1\u67e5\u6d41\u6c34\u7ebf\u53d8\u66f4\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u56db\u30013 \u4e07\u53f0\u670d\u52a1\u5668\u89c4\u6a21\u7684\u7279\u522b\u8bbe\u8ba1<\/h3>\n<h4>1. Runner \u96c6\u7fa4\u67b6\u6784&#xff08;\u907f\u514d\u5355\u70b9\u74f6\u9888&#xff09;<\/h4>\n<p><span class=\"token comment\"># Helm values.yaml \u793a\u4f8b<\/span><br \/>\n<span class=\"token key atrule\">gitlab-runner<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">runners<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">config<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">|<\/span><span class=\"token scalar string\"><br \/>\n      [[runners]]<br \/>\n        [runners.kubernetes]<br \/>\n          # \u6309\u8bed\u8a00\u6253\u6807\u7b7e&#xff0c;\u7cbe\u51c6\u8c03\u5ea6<br \/>\n          [runners.kubernetes.node_selector]<br \/>\n            workload &#061; &#034;ci-build&#034;<br \/>\n        [runners.cache]<br \/>\n          Type &#061; &#034;s3&#034;<br \/>\n          Path &#061; &#034;gitlab-runner&#034;<br \/>\n          Shared &#061; true<br \/>\n          [runners.cache.s3]<br \/>\n            ServerAddress &#061; &#034;s3.internal.company.com&#034;<br \/>\n            BucketName &#061; &#034;gitlab-runner-cache&#034;<\/span><br \/>\n  <span class=\"token key atrule\">resources<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">requests<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token key atrule\">cpu<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;500m&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token key atrule\">memory<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;512Mi&#034;<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<ul>\n<li>\u6807\u7b7e\u5206\u7ec4&#xff1a;java-build \/ python-build \/ security-scan \u5206\u522b\u8c03\u5ea6\u5230\u4e0d\u540c\u8282\u70b9\u6c60&#xff0c;\u907f\u514d\u8d44\u6e90\u4e89\u62a2\u3002<\/li>\n<li>\u81ea\u52a8\u6269\u7f29\u5bb9&#xff1a;\u5229\u7528 K8s HPA &#043; Cluster Autoscaler&#xff0c;\u591c\u95f4\u4f4e\u5cf0\u7f29\u5bb9\u81f3 10 \u8282\u70b9&#xff0c;\u53d1\u5e03\u9ad8\u5cf0\u671f\u6269\u5bb9\u81f3 200&#043; \u8282\u70b9\u3002<\/li>\n<\/ul>\n<h4>2. \u90e8\u7f72\u5230 3 \u4e07\u53f0\u670d\u52a1\u5668\u7684 CD \u7b56\u7565<\/h4>\n<p>\u4e0d\u8981\u7528 GitLab CI \u76f4\u63a5 ssh \u90e8\u7f72\u5230 3 \u4e07\u53f0\u673a\u5668&#xff0c;\u8fd9\u4f1a\u5bfc\u81f4&#xff1a;<\/p>\n<ul>\n<li>\u5e76\u53d1 SSH \u8fde\u63a5\u6253\u7206\u7f51\u7edc<\/li>\n<li>\u65e0\u56de\u6eda\u80fd\u529b&#xff0c;\u4e00\u53f0\u5931\u8d25\u5f71\u54cd\u6574\u4f53<\/li>\n<li>\u65e0\u90e8\u7f72\u72b6\u6001\u53ef\u89c6\u5316<\/li>\n<\/ul>\n<p>\u6b63\u786e\u505a\u6cd5&#xff1a;ArgoCD GitOps<\/p>\n<ul>\n<li>GitLab CI \u53ea\u8d1f\u8d23&#034;\u6784\u5efa\u955c\u50cf &#043; \u66f4\u65b0 GitOps \u4ed3\u5e93\u4e2d\u7684\u955c\u50cf Tag&#034;<\/li>\n<li>ArgoCD \u76d1\u542c Git \u53d8\u66f4&#xff0c;\u81ea\u52a8\u5c06\u65b0\u955c\u50cf\u540c\u6b65\u5230 3 \u4e07\u53f0\u670d\u52a1\u5668\u6240\u5728\u7684 K8s \u96c6\u7fa4<\/li>\n<li>\u652f\u6301\u84dd\u7eff\u53d1\u5e03\u3001\u91d1\u4e1d\u96c0\u3001\u81ea\u52a8\u56de\u6eda&#xff0c;\u4e14\u90e8\u7f72\u8fdb\u5ea6\u53ef\u89c6\u5316<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e94\u3001\u4e3a\u4ec0\u4e48\u4e0d\u9009\u5176\u4ed6\u65b9\u6848&#xff1f;<\/h3>\n<table>\n<tr>\u65b9\u6848\u4e0d\u9009\u539f\u56e0<\/tr>\n<tbody>\n<tr>\n<td>Jenkins<\/td>\n<td>3 \u4e07\u53f0\u670d\u52a1\u5668\u610f\u5473\u7740\u6570\u5343\u6761\u6d41\u6c34\u7ebf&#xff0c;Jenkins \u7684\u63d2\u4ef6\u7ef4\u62a4\u3001Groovy \u811a\u672c\u6cbb\u7406\u3001Master \u5355\u70b9\u95ee\u9898\u4f1a\u5728 6 \u4e2a\u6708\u540e\u7206\u53d1&#xff0c;\u9700\u8981 3-5 \u4eba\u4e13\u804c\u56e2\u961f\u7ef4\u62a4&#xff0c;\u65b0\u4eba\u4e0a\u624b\u9700 1-2 \u5468\u3002<\/td>\n<\/tr>\n<tr>\n<td>GitHub Actions&#xff08;\u81ea\u6258\u7ba1&#xff09;<\/td>\n<td>\u4f01\u4e1a\u7ea7\u5ba1\u8ba1\u3001\u6743\u9650\u7c92\u5ea6\u3001Runner \u8c03\u5ea6\u80fd\u529b\u4e0d\u5982 GitLab EE&#xff1b;3 \u4e07\u53f0\u89c4\u6a21\u4e0b\u81ea\u6258\u7ba1 Runner \u7684\u8fd0\u7ef4\u6210\u672c\u4e0e GitLab \u76f8\u5f53&#xff0c;\u4f46\u7f3a\u5c11\u4e00\u4f53\u5316\u6743\u9650\u7ba1\u7406\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u7eaf\u81ea\u7814 CI\/CD<\/td>\n<td>\u642d\u5efa\u5468\u671f 6 \u4e2a\u6708\u4ee5\u4e0a&#xff0c;\u9700\u8981 10&#043; \u4eba\u5e73\u53f0\u56e2\u961f&#xff0c;\u65b0\u4eba\u63a5\u66ff\u96be\u5ea6\u6781\u9ad8&#xff0c;\u4e0d\u7b26\u5408&#034;\u4e0d\u9700\u8981\u53cd\u590d\u6d4b\u8bd5&#034;\u7684\u8981\u6c42\u3002<\/td>\n<\/tr>\n<tr>\n<td>GitLab SaaS \u7248<\/td>\n<td>3 \u4e07\u53f0\u670d\u52a1\u5668\u7684\u6784\u5efa\u5206\u949f\u6570\u5c06\u4ea7\u751f\u5929\u4ef7\u8d26\u5355&#xff0c;\u4e14\u4f01\u4e1a\u6570\u636e\u5b89\u5168\u8981\u6c42\u901a\u5e38\u7981\u6b62\u4ee3\u7801\u51fa\u57df\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u516d\u3001\u843d\u5730\u65f6\u95f4\u7ebf\u4e0e\u8d44\u6e90\u6295\u5165<\/h3>\n<table>\n<tr>\u9636\u6bb5\u5468\u671f\u4ea4\u4ed8\u7269<\/tr>\n<tbody>\n<tr>\n<td>\u73af\u5883\u642d\u5efa<\/td>\n<td>\u7b2c 1-2 \u5468<\/td>\n<td>GitLab EE \u4e3b\u8282\u70b9\u3001K8s Runner \u96c6\u7fa4\u3001Harbor \u955c\u50cf\u4ed3\u5e93<\/td>\n<\/tr>\n<tr>\n<td>\u6a21\u677f\u6807\u51c6\u5316<\/td>\n<td>\u7b2c 3-4 \u5468<\/td>\n<td>Java\/Python \u6784\u5efa\u6a21\u677f\u3001\u5b89\u5168\u626b\u63cf\u5361\u70b9\u3001ArgoCD \u5e94\u7528\u6a21\u677f<\/td>\n<\/tr>\n<tr>\n<td>\u8bd5\u70b9\u8fc1\u79fb<\/td>\n<td>\u7b2c 5-8 \u5468<\/td>\n<td>5-10 \u4e2a\u6838\u5fc3\u9879\u76ee\u8fc1\u79fb&#xff0c;\u5e76\u884c\u8fd0\u884c\u9a8c\u8bc1<\/td>\n<\/tr>\n<tr>\n<td>\u6279\u91cf\u63a8\u5e7f<\/td>\n<td>\u7b2c 9-16 \u5468<\/td>\n<td>\u6309\u4e1a\u52a1\u57df\u5206\u6279\u8fc1\u79fb&#xff0c;\u57f9\u8bad\u6587\u6863&#043;\u89c6\u9891\u540c\u6b65\u8f93\u51fa<\/td>\n<\/tr>\n<tr>\n<td>\u5168\u9762\u6295\u4ea7<\/td>\n<td>\u7b2c 17-20 \u5468<\/td>\n<td>\u65e7 Jenkins \u4e0b\u7ebf&#xff0c;FinOps \u6210\u672c\u76d1\u63a7\u4e0a\u7ebf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u5c0f\u56e2\u961f\u914d\u7f6e&#xff1a;1 \u540d SRE&#xff08;\u8d1f\u8d23 GitLab\/ArgoCD \u5e73\u53f0&#xff09;&#043; 1 \u540d\u8d44\u6df1\u5f00\u53d1&#xff08;\u8d1f\u8d23\u6a21\u677f\u8bbe\u8ba1&#xff09;&#xff0c;\u5373\u53ef\u542f\u52a8\u3002<\/p>\n<hr \/>\n<p>\u603b\u7ed3&#xff1a;\u5728 2026 \u5e74\u7684\u6280\u672f\u6808\u4e0b&#xff0c;\u5bf9\u4e8e 3 \u4e07\u53f0\u670d\u52a1\u5668\u3001Python\/Java \u53cc\u8bed\u8a00\u5404\u5360\u534a\u58c1\u6c5f\u5c71\u7684\u8d85\u5927\u89c4\u6a21\u573a\u666f&#xff0c;GitLab CI &#043; K8s Runner &#043; ArgoCD \u662f\u552f\u4e00\u80fd\u540c\u65f6\u6ee1\u8db3&#034;\u4f4e\u7ef4\u62a4\u6210\u672c\u3001\u4f4e\u65b0\u4eba\u63a5\u66ff\u96be\u5ea6\u3001\u9ad8\u81ea\u52a8\u5316\u6548\u7387&#034;\u7684\u65b9\u6848\u3002\u5b83\u7528 YAML \u66ff\u4ee3 Groovy \u964d\u4f4e\u8ba4\u77e5\u8d1f\u62c5&#xff0c;\u7528 K8s \u5f39\u6027\u66ff\u4ee3\u9759\u6001 Agent \u964d\u4f4e\u8fd0\u7ef4\u8d1f\u62c5&#xff0c;\u7528 GitOps \u66ff\u4ee3\u811a\u672c\u5f0f\u90e8\u7f72\u964d\u4f4e\u751f\u4ea7\u98ce\u9669\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5047\u8bbe\u4f60\u6709\u670d\u52a1\u5668\u67093 \u4e07\u53f0&#xff0c;\u4e1a\u52a1\u7c7b\u578b\u6709Python \u4e0e Java \u5404\u5360 50% \u7684\u8d85\u5927\u89c4\u6a21\u573a\u666f&#xff0c;\u6700\u7ec8\u63a8\u8350\u65b9\u6848\u4e3a&#xff1a;\u4e00\u53e5\u8bdd\u7ed3\u8bba&#xff1a;\u7528 GitLab CI \u505a\\&#8221;\u6784\u5efa\u548c\u6d4b\u8bd5\\&#8221;&#xff08;CI&#xff09;&#xff0c;\u7528 ArgoCD \u505a\\&#8221;\u90e8\u7f72\u5230 3 \u4e07\u53f0\u670d\u52a1\u5668\\&#8221;&#xff08;CD&#xff09;&#xff0c;\u4e24\u8005\u901a\u8fc7\u5bb9\u5668\u955c\u50cf\u4ed3\u5e93\u8054\u52a8\u3002\u8fd9\u662f\u5f53\u524d&#xff08;2026 \u5e74&#xff09;\u8d85\u5927\u89c4\u6a21\u591a\u8bed\u8a00\u73af\u5883\u4e0b&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":[9137,597,273,120,78,44],"topic":[],"class_list":["post-92275","post","type-post","status-publish","format-standard","hentry","category-server","tag-atomgit","tag-ci-cd","tag-gitlab","tag-kubernetes","tag-78","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09 - \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\/92275.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5047\u8bbe\u4f60\u6709\u670d\u52a1\u5668\u67093 \u4e07\u53f0&#xff0c;\u4e1a\u52a1\u7c7b\u578b\u6709Python \u4e0e Java \u5404\u5360 50% \u7684\u8d85\u5927\u89c4\u6a21\u573a\u666f&#xff0c;\u6700\u7ec8\u63a8\u8350\u65b9\u6848\u4e3a&#xff1a;\u4e00\u53e5\u8bdd\u7ed3\u8bba&#xff1a;\u7528 GitLab CI \u505a&quot;\u6784\u5efa\u548c\u6d4b\u8bd5&quot;&#xff08;CI&#xff09;&#xff0c;\u7528 ArgoCD \u505a&quot;\u90e8\u7f72\u5230 3 \u4e07\u53f0\u670d\u52a1\u5668&quot;&#xff08;CD&#xff09;&#xff0c;\u4e24\u8005\u901a\u8fc7\u5bb9\u5668\u955c\u50cf\u4ed3\u5e93\u8054\u52a8\u3002\u8fd9\u662f\u5f53\u524d&#xff08;2026 \u5e74&#xff09;\u8d85\u5927\u89c4\u6a21\u591a\u8bed\u8a00\u73af\u5883\u4e0b&amp;#xff0c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/92275.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-09T14:34:07+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/92275.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/92275.html\",\"name\":\"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-09T14:34:07+00:00\",\"dateModified\":\"2026-08-09T14:34:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/92275.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/92275.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/92275.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09\"}]},{\"@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":"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09 - \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\/92275.html","og_locale":"zh_CN","og_type":"article","og_title":"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5047\u8bbe\u4f60\u6709\u670d\u52a1\u5668\u67093 \u4e07\u53f0&#xff0c;\u4e1a\u52a1\u7c7b\u578b\u6709Python \u4e0e Java \u5404\u5360 50% \u7684\u8d85\u5927\u89c4\u6a21\u573a\u666f&#xff0c;\u6700\u7ec8\u63a8\u8350\u65b9\u6848\u4e3a&#xff1a;\u4e00\u53e5\u8bdd\u7ed3\u8bba&#xff1a;\u7528 GitLab CI \u505a\"\u6784\u5efa\u548c\u6d4b\u8bd5\"&#xff08;CI&#xff09;&#xff0c;\u7528 ArgoCD \u505a\"\u90e8\u7f72\u5230 3 \u4e07\u53f0\u670d\u52a1\u5668\"&#xff08;CD&#xff09;&#xff0c;\u4e24\u8005\u901a\u8fc7\u5bb9\u5668\u955c\u50cf\u4ed3\u5e93\u8054\u52a8\u3002\u8fd9\u662f\u5f53\u524d&#xff08;2026 \u5e74&#xff09;\u8d85\u5927\u89c4\u6a21\u591a\u8bed\u8a00\u73af\u5883\u4e0b&amp;#xff0c","og_url":"https:\/\/www.wsisp.com\/helps\/92275.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-09T14:34:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/92275.html","url":"https:\/\/www.wsisp.com\/helps\/92275.html","name":"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-09T14:34:07+00:00","dateModified":"2026-08-09T14:34:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/92275.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/92275.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/92275.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"GitLab CI\/CD \u81ea\u6258\u7ba1\uff08EE \u4f01\u4e1a\u7248\uff09+ Kubernetes Runner \u96c6\u7fa4 + ArgoCD\uff08GitOps \u90e8\u7f72\uff09"}]},{"@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\/92275","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=92275"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/92275\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=92275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=92275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=92275"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=92275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}