{"id":87014,"date":"2026-07-29T16:48:52","date_gmt":"2026-07-29T08:48:52","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/87014.html"},"modified":"2026-07-29T16:48:52","modified_gmt":"2026-07-29T08:48:52","slug":"%e6%8c%81%e7%bb%ad%e4%ba%a4%e4%bb%98%e5%b7%a5%e5%85%b7argo-cd%e7%9a%84%e9%83%a8%e7%bd%b2%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/87014.html","title":{"rendered":"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528"},"content":{"rendered":"<h2>\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528<\/h2>\n<p>ArgoCD \u662f Kubernetes \u751f\u6001\u4e2d\u6700\u53d7\u6b22\u8fce\u7684 GitOps \u6301\u7eed\u4ea4\u4ed8\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u5c06\u5e94\u7528\u58f0\u660e\u5f0f\u914d\u7f6e\u5b58\u50a8\u5728 Git \u4ed3\u5e93\u4e2d&#xff0c;\u5e76\u81ea\u52a8\u540c\u6b65\u5230\u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u4e86\u201cGit \u4f5c\u4e3a\u5355\u4e00\u4e8b\u5b9e\u6765\u6e90\u201d\u7684\u4ea4\u4ed8\u6a21\u5f0f\u3002<\/p>\n<p>\u6838\u5fc3\u903b\u8f91&#xff1a;<\/p>\n<li>\u6240\u6709 K8s \u8d44\u6e90&#xff08;Deployment\/Service\/Ingress \u7b49&#xff09;\u90fd\u5b58 Git&#xff08;GitLab\/GitHub\/Gitee&#xff09;&#xff1b;<\/li>\n<li>ArgoCD \u6301\u7eed\u76d1\u542c Git \u4ed3\u5e93&#xff1b;<\/li>\n<li>Git \u91cc\u6539\u4e86 YAML&#xff0c;ArgoCD \u81ea\u52a8\u5bf9\u6bd4\u96c6\u7fa4\u73b0\u72b6&#xff0c;\u540c\u6b65\u66f4\u65b0 Pod\u3001\u914d\u7f6e&#xff1b;<\/li>\n<li>\u4fdd\u8bc1\u96c6\u7fa4\u72b6\u6001\u6c38\u8fdc\u548c Git \u4ed3\u5e93\u4e00\u81f4&#xff0c;Git \u662f\u552f\u4e00\u53ef\u4fe1\u6e90\u3002<\/li>\n<p>\u67b6\u6784\u56fe <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084842-6a69be6aa6cfc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u4e00\u3001\u521b\u5efa\u547d\u540d\u7a7a\u95f4<\/h4>\n<p>kubectl create ns argocd<\/p>\n<h4>\u4e8c\u3001\u90e8\u7f72ArgoCD<\/h4>\n<p>\u53c2\u8003\u5b98\u65b9\u90e8\u7f72\u6587\u6863&#xff1a;Argo CD \u4e2d\u6587\u6587\u6863 \u5e73\u53f0\u5de5\u7a0b Devops<\/p>\n<h5>1\u3001YAML\u6587\u4ef6\u90e8\u7f72<\/h5>\n<p>kubectl apply <span class=\"token parameter variable\">-n<\/span> argocd <span class=\"token parameter variable\">-f<\/span> https:\/\/raw.githubusercontent.com\/argoproj\/argo-cd\/stable\/manifests\/install.yaml<\/p>\n<p>\u5b89\u88c5\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u62a5\u9519&#xff1a;<\/p>\n<p>The CustomResourceDefinition <span class=\"token string\">&#034;applicationsets.argoproj.io&#034;<\/span> is invalid: metadata.annotations: Too long: may not be <span class=\"token function\">more<\/span> than <span class=\"token number\">262144<\/span> bytes<\/p>\n<p>\u8fd9\u901a\u5e38\u662f\u56e0\u4e3a CRD \u7684\u6ce8\u89e3&#xff08;annotation&#xff09;\u5185\u5bb9\u8d85\u51fa\u4e86 Kubernetes 262144 \u5b57\u8282\u7684\u9650\u5236\u3002\u89e3\u51b3\u6b64\u95ee\u9898\u7684\u65b9\u6cd5\u662f\u6539\u7528\u670d\u52a1\u7aef\u5e94\u7528&#xff08;server-side apply&#xff09;\u7b56\u7565&#xff0c;\u5e76\u5f3a\u5236\u89e3\u51b3\u51b2\u7a81\u3002<\/p>\n<p>kubectl apply <span class=\"token parameter variable\">-n<\/span> argocd &#8211;server-side &#8211;force-conflicts <span class=\"token parameter variable\">-f<\/span> https:\/\/raw.githubusercontent.com\/argoproj\/argo-cd\/stable\/manifests\/install.yaml<\/p>\n<p>\u547d\u4ee4\u8bf4\u660e<\/p>\n<ul>\n<li>&#8211;server-side: \u542f\u7528\u670d\u52a1\u7aef\u5e94\u7528&#xff0c;\u7531 Kubernetes \u670d\u52a1\u5668\u7aef\u5904\u7406\u5408\u5e76\u903b\u8f91&#xff0c;\u53ef\u4ee5\u6709\u6548\u89c4\u907f\u90e8\u5206\u5ba2\u6237\u7aef\u7684\u9650\u5236\u3002<\/li>\n<li>&#8211;force-conflicts: \u5f3a\u5236\u89e3\u51b3\u5e94\u7528\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u5b57\u6bb5\u7ba1\u7406\u51b2\u7a81&#xff0c;\u786e\u4fdd\u64cd\u4f5c\u80fd\u591f\u7ee7\u7eed\u6267\u884c\u3002<\/li>\n<\/ul>\n<h5>2\u3001\u67e5\u770bpod\u542f\u52a8\u72b6\u6001<\/h5>\n<p>kubectl get pod <span class=\"token parameter variable\">-n<\/span> argocd <span class=\"token parameter variable\">-w<\/span><\/p>\n<p>\u7b49\u5f85\u6240\u6709Pod\u53d8\u6210running\u72b6\u6001<\/p>\n<h5>3\u3001\u4fee\u6539ArgoCD Server \u670d\u52a1\u7c7b\u578b\u4e3a NodePort<\/h5>\n<p>kubectl patch svc argocd-server <span class=\"token parameter variable\">-n<\/span> argocd <span class=\"token parameter variable\">-p<\/span> <span class=\"token string\">&#039;{&#034;spec&#034;: {&#034;type&#034;: &#034;NodePort&#034;}}&#039;<\/span><\/p>\n<h5>4\u3001\u67e5\u770bNodePort\u7aef\u53e3\u53f7<\/h5>\n<p>kubectl get svc argocd-server <span class=\"token parameter variable\">-n<\/span> argocd<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084842-6a69be6aca655.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd9\u91cc\u53ef\u4ee5\u5f97\u5230\u6211\u4eec\u7684argocd-server\u5f97\u5230\u7684\u7aef\u53e3\u53f7\u662f32234\u548c30188<\/p>\n<h5>5\u3001\u83b7\u53d6\u521d\u59cb\u7ba1\u7406\u5458\u5bc6\u7801<\/h5>\n<p>\u96c6\u7fa4\u90e8\u7f72 ArgoCD \u5b8c\u6210\u540e&#xff0c;\u547d\u540d\u7a7a\u95f4\u5185\u4f1a\u81ea\u52a8\u521b\u5efa Secret&#xff1a;argocd-initial-admin-secret&#xff0c;\u7ba1\u7406\u5458\u7528\u6237\u540d\u56fa\u5b9a\u4e3a admin&#xff0c;\u521d\u59cb\u5bc6\u7801\u4fdd\u5b58\u4e8e\u6b64 Secret \u4e2d&#xff0c;\u6267\u884c base64 \u89e3\u7801\u547d\u4ee4\u5373\u53ef\u67e5\u770b\u3002<\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token parameter variable\">-e<\/span> <span class=\"token string\">&#034;\u7528\u6237\u540d&#xff1a;admin<span class=\"token entity\" title=\"\\\\n\">\\\\n<\/span>\u5bc6\u7801&#xff1a;<span class=\"token variable\"><span class=\"token variable\">$(<\/span>kubectl <span class=\"token parameter variable\">-n<\/span> argocd get secret argocd-initial-admin-secret <span class=\"token parameter variable\">-o<\/span> <span class=\"token assign-left variable\">jsonpath<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;{.data.password}&#034;<\/span> <span class=\"token operator\">|<\/span> base64 <span class=\"token parameter variable\">-d<\/span><span class=\"token variable\">)<\/span><\/span>&#034;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084842-6a69be6ae13ed.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>6\u3001\u4fee\u6539\u521d\u59cb\u5bc6\u7801<\/h5>\n<p>\u8bbf\u95eeArgoCD Web\u9875\u9762 \u2192 \u5de6\u4fa7\u83dc\u5355\u680f\u3010User Info\u3011 \u2192 \u3010UPDATE PASSWORD\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084843-6a69be6b0db00.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u81f3\u6b64&#xff0c;ArgoCD \u5df2\u5b89\u88c5\u5b8c\u6210 &#x1f389;<\/p>\n<h4>\u4e09\u3001\u4f7f\u7528 ArgoCD\u90e8\u7f72\u5e94\u7528<\/h4>\n<p>\u9996\u5148&#xff0c;\u6211\u4eec\u6765\u8ba4\u8bc6\u4e00\u4e0bArgoCD\u754c\u9762\u7684\u4e00\u4e9b\u529f\u80fd<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084843-6a69be6b68733.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>1\u3001\u51c6\u5907\u4e00\u4e2aGit\u4ed3\u5e93<\/h5>\n<p>\u6211\u4eec\u4f7f\u7528Gitlab\u8fdb\u884c\u6f14\u793a&#xff0c;\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Git\u4ed3\u5e93&#xff0c;\u5e76\u628a\u90e8\u7f72\u8d44\u6e90\u6587\u4ef6Push\u5230\u6211\u4eec\u7684Gitlab\u4ed3\u5e93<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084844-6a69be6c8a219.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4ee3\u7801\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token comment\">#deployment.yaml <\/span><br \/>\n<span class=\"token key atrule\">apiVersion<\/span><span class=\"token punctuation\">:<\/span> apps\/v1<br \/>\n<span class=\"token key atrule\">kind<\/span><span class=\"token punctuation\">:<\/span> Deployment<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> argocd<span class=\"token punctuation\">&#8211;<\/span>test<span class=\"token punctuation\">&#8211;<\/span>nginx<br \/>\n<span class=\"token key atrule\">spec<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">replicas<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">1<\/span><br \/>\n  <span class=\"token key atrule\">selector<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">matchLabels<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">app<\/span><span class=\"token punctuation\">:<\/span> test<span class=\"token punctuation\">&#8211;<\/span>nginx<br \/>\n  <span class=\"token key atrule\">template<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">metadata<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">labels<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token key atrule\">app<\/span><span class=\"token punctuation\">:<\/span> test<span class=\"token punctuation\">&#8211;<\/span>nginx<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> nginx<br \/>\n        <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> nginx<span class=\"token punctuation\">:<\/span>alpine<br \/>\n        <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">containerPort<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">80<\/span><\/p>\n<p><span class=\"token comment\">#svc.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> Service<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> argocd<span class=\"token punctuation\">&#8211;<\/span>test<span class=\"token punctuation\">&#8211;<\/span>svc<br \/>\n<span class=\"token key atrule\">spec<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">selector<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">app<\/span><span class=\"token punctuation\">:<\/span> test<span class=\"token punctuation\">&#8211;<\/span>nginx<br \/>\n  <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">80<\/span><br \/>\n    <span class=\"token key atrule\">targetPort<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">80<\/span><br \/>\n    <span class=\"token key atrule\">nodePort<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">30088<\/span><br \/>\n  <span class=\"token key atrule\">type<\/span><span class=\"token punctuation\">:<\/span> NodePort<\/p>\n<h5>2\u3001ArgoCD\u914d\u7f6eGit\u4ed3\u5e93<\/h5>\n<p>\u3010Setting\u3011\u2014\u2014\u3010Repositories\u3011\u2014\u2014\u3010CONNECT REPO\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084844-6a69be6cd41a0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u53c2\u8003\u4ee5\u4e0a\u65b9\u5f0f\u914d\u7f6e&#xff0c;\u7136\u540e\u70b9\u51fb\u4e0a\u65b9\u3010CONNECT\u3011\u8fdb\u884c\u8fde\u63a5&#xff0c;\u51fa\u73b0 \u3010\u2705\ufe0fSuccessful\u3011\u4ee3\u8868\u8fde\u63a5\u6210\u529f\u4e86&#xff01;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084846-6a69be6e0b62d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>3\u3001\u521b\u5efa\u5e94\u7528<\/h5>\n<p>\u73b0\u5728\u6211\u4eec\u5728ArgoCD\u91cc\u521b\u5efa\u5e94\u7528&#xff0c;\u6b65\u9aa4\u5982\u4e0b<\/p>\n<p>\u3010Applications\u3011\u2014\u2014\u3010NEW APP\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084846-6a69be6e30a2e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084846-6a69be6eee36d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u521b\u5efa\u5b8c\u6210\u540e\u5982\u4e0b\u6240\u793a&#xff1a;\u53ef\u4ee5\u770b\u5230\u72b6\u6001\u90fd\u53d8\u6210\u6b63\u5e38 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084847-6a69be6fab301.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>4\u3001\u67e5\u770b\u8d44\u6e90\u90e8\u7f72\u60c5\u51b5<\/h5>\n<p><span class=\"token comment\"># \u67e5\u770bdemo\u547d\u540d\u7a7a\u95f4\u4e0b\u6240\u6709\u8d44\u6e90<\/span><br \/>\nkubectl get all <span class=\"token parameter variable\">-n<\/span> demo<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084848-6a69be7026495.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u8d44\u6e90\u6b63\u5e38\u521b\u5efa\u5e76\u8fd0\u884c&#xff0c;\u6d4f\u89c8\u5668\u6253\u5f00 http:\/\/\u96c6\u7fa4\u4efb\u610f\u8282\u70b9IP:30088&#xff0c;\u80fd\u770b\u5230 Nginx \u6b22\u8fce\u9875\u3002<\/p>\n<h4>\u56db\u3001\u4f7f\u7528ArgoCD\u66f4\u65b0\u5e94\u7528<\/h4>\n<h5>1\u3001\u4fee\u6539\u4ee3\u7801<\/h5>\n<p>\u6211\u4eec\u5bf9\u4ee3\u7801\u8fdb\u884c\u4fee\u6539&#xff0c;\u5e76\u63d0\u4ea4\u5230\u4ed3\u5e93<\/p>\n<p>replicas: <span class=\"token number\">1<\/span> \u2192 replicas: <span class=\"token number\">3<\/span><\/p>\n<p>nodePort: <span class=\"token number\">30088<\/span> \u2192 nodePort: <span class=\"token number\">30888<\/span><\/p>\n<h5>2\u3001ArgoCD\u540c\u6b65<\/h5>\n<p>\u7b49\u5f85\u51e0\u5206\u949f&#xff0c;\u53ef\u4ee5\u770b\u5230ArgoCD\u68c0\u6d4b\u5230Git\u4ee3\u7801\u66f4\u65b0\u540e&#xff0c;\u89e6\u53d1Auto-Sync\u81ea\u52a8\u66f4\u65b0&#xff0c;pod\u6570\u91cf\u53d8\u62103\u4e2a&#xff0c;nodeport\u7aef\u53e3\u4e5f\u53d8\u6210\u4e8630888<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084848-6a69be7050708.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u4e94\u3001\u4f7f\u7528ArgoCD\u56de\u6eda\u7248\u672c<\/h4>\n<p>\u6211\u4eec\u70b9\u51fb\u4e0a\u65b9\u3010HISTORY AND ROLLBACK\u3011&#xff0c;\u53ef\u4ee5\u770b\u5230\u5e94\u7528\u90e8\u7f72\u7684\u5386\u53f2\u7248\u672c&#xff0c;\u627e\u5230\u6700\u521d\u7248\u672c\u70b9\u51fb\u3010Roolback\u3011 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084849-6a69be7122f4e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7b49\u5f85\u540c\u6b65\u5b8c\u6210\u540e\u5373\u53ef\u6210\u529f\u56de\u6eda\u7248\u672c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084850-6a69be7255435.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 ArgoCD \u662f Kubernetes \u751f\u6001\u4e2d\u6700\u53d7\u6b22\u8fce\u7684 GitOps \u6301\u7eed\u4ea4\u4ed8\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u5c06\u5e94\u7528\u58f0\u660e\u5f0f\u914d\u7f6e\u5b58\u50a8\u5728 Git \u4ed3\u5e93\u4e2d&#xff0c;\u5e76\u81ea\u52a8\u540c\u6b65\u5230\u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u4e86\u201cGit \u4f5c\u4e3a\u5355\u4e00\u4e8b\u5b9e\u6765\u6e90\u201d\u7684\u4ea4\u4ed8\u6a21\u5f0f\u3002 \u6838\u5fc3\u903b\u8f91&#xff1a; \u6240\u6709 K8s \u8d44\u6e90&#xff08;Deployment\/Service\/Ingress \u7b49&#xff09;\u90fd\u5b58 Git&#xff08;GitLab\/GitHub\/Gitee&amp;#<\/p>\n","protected":false},"author":2,"featured_media":86999,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9829,58,43,395,44],"topic":[],"class_list":["post-87014","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-argocd","tag-linux","tag-43","tag-395","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 - \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\/87014.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 ArgoCD \u662f Kubernetes \u751f\u6001\u4e2d\u6700\u53d7\u6b22\u8fce\u7684 GitOps \u6301\u7eed\u4ea4\u4ed8\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u5c06\u5e94\u7528\u58f0\u660e\u5f0f\u914d\u7f6e\u5b58\u50a8\u5728 Git \u4ed3\u5e93\u4e2d&#xff0c;\u5e76\u81ea\u52a8\u540c\u6b65\u5230\u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u4e86\u201cGit \u4f5c\u4e3a\u5355\u4e00\u4e8b\u5b9e\u6765\u6e90\u201d\u7684\u4ea4\u4ed8\u6a21\u5f0f\u3002 \u6838\u5fc3\u903b\u8f91&#xff1a; \u6240\u6709 K8s \u8d44\u6e90&#xff08;Deployment\/Service\/Ingress \u7b49&#xff09;\u90fd\u5b58 Git&#xff08;GitLab\/GitHub\/Gitee&amp;#\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/87014.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-29T08:48:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084842-6a69be6aa6cfc.png\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87014.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/87014.html\",\"name\":\"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-29T08:48:52+00:00\",\"dateModified\":\"2026-07-29T08:48:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/87014.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/87014.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87014.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528\"}]},{\"@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":"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 - \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\/87014.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 ArgoCD \u662f Kubernetes \u751f\u6001\u4e2d\u6700\u53d7\u6b22\u8fce\u7684 GitOps \u6301\u7eed\u4ea4\u4ed8\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u5c06\u5e94\u7528\u58f0\u660e\u5f0f\u914d\u7f6e\u5b58\u50a8\u5728 Git \u4ed3\u5e93\u4e2d&#xff0c;\u5e76\u81ea\u52a8\u540c\u6b65\u5230\u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u4e86\u201cGit \u4f5c\u4e3a\u5355\u4e00\u4e8b\u5b9e\u6765\u6e90\u201d\u7684\u4ea4\u4ed8\u6a21\u5f0f\u3002 \u6838\u5fc3\u903b\u8f91&#xff1a; \u6240\u6709 K8s \u8d44\u6e90&#xff08;Deployment\/Service\/Ingress \u7b49&#xff09;\u90fd\u5b58 Git&#xff08;GitLab\/GitHub\/Gitee&amp;#","og_url":"https:\/\/www.wsisp.com\/helps\/87014.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-29T08:48:52+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729084842-6a69be6aa6cfc.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/87014.html","url":"https:\/\/www.wsisp.com\/helps\/87014.html","name":"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-29T08:48:52+00:00","dateModified":"2026-07-29T08:48:52+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/87014.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/87014.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/87014.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6301\u7eed\u4ea4\u4ed8\u5de5\u5177Argo CD\u7684\u90e8\u7f72\u4f7f\u7528"}]},{"@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\/87014","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=87014"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87014\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/86999"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=87014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=87014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=87014"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=87014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}