{"id":106,"date":"2026-03-08T05:24:13","date_gmt":"2026-03-08T05:24:13","guid":{"rendered":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/08\/argocd-gitops-kubernetes\/"},"modified":"2026-03-09T04:37:00","modified_gmt":"2026-03-09T04:37:00","slug":"argocd-gitops-kubernetes","status":"publish","type":"post","link":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/08\/argocd-gitops-kubernetes\/","title":{"rendered":"ArgoCD \u3067 GitOps \u3092\u59cb\u3081\u305f\u8a71\uff1a2\u9031\u9593\u3067\u5b66\u3093\u3060\u3053\u3068\u3068\u3001\u6b63\u76f4\u3061\u3087\u3063\u3068\u30cf\u30de\u3063\u305f\u7b87\u6240"},"content":{"rendered":"<p>\u91d1\u66dc\u306e\u5348\u5f8c4\u6642\u306b\u672c\u756a\u3078\u306e<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean\u3067\u30c7\u30d7\u30ed\u30a4\" rel=\"nofollow sponsored\" target=\"_blank\">\u30c7\u30d7\u30ed\u30a4<\/a>\u3092\u624b\u52d5\u3067\u5b9f\u884c\u3057\u3066\u3001\u7fcc\u9031\u6708\u66dc\u306e\u671d\u306bSlack\u3067\u300c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3068\u672c\u756a\u3067API\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u9055\u3046\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u98db\u3093\u3067\u304d\u305f\u3002<\/p>\n<p>\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3089\u3001Helm\u306evalues\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u3057\u304bapply\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u672c\u756a\u306f2\u9031\u9593\u524d\u306e\u8a2d\u5b9a\u306e\u307e\u307e\u52d5\u3044\u3066\u3044\u305f\u3002\u30c1\u30fc\u30e0\u306f\u5f53\u66424\u4eba\u3067\u3001\u300c\u8ab0\u304b\u304c<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean\u3067\u30c7\u30d7\u30ed\u30a4\" rel=\"nofollow sponsored\" target=\"_blank\">\u30c7\u30d7\u30ed\u30a4<\/a>\u3057\u305f\u306f\u305a\u300d\u3068\u3044\u3046\u6697\u9ed9\u306e\u4e86\u89e3\u3067\u904b\u7528\u3057\u3066\u3044\u305f\u3002\u307e\u305a\u3044\u3002<\/p>\n<p>\u3053\u308c\u304c\u79c1\u304cArgoCD\u3092\u672c\u683c\u7684\u306b\u8abf\u3079\u59cb\u3081\u305f\u304d\u3063\u304b\u3051\u3060\u3002\u300cGitOps\u306f\u306a\u3093\u3068\u306a\u304f\u77e5\u3063\u3066\u3044\u308b\u3001\u3044\u3064\u304b\u3084\u308b\u300d\u304f\u3089\u3044\u306e\u6e29\u5ea6\u611f\u3060\u3063\u305f\u3051\u3069\u3001\u3042\u306e\u6708\u66dc\u306e\u671d\u3067\u6c7a\u610f\u304c\u56fa\u307e\u3063\u305f\u3002<\/p>\n<h2>Flux \u304b ArgoCD \u304b \u2014 1\u9031\u9593\u89e6\u3063\u3066\u6c7a\u3081\u305f\u7406\u7531<\/h2>\n<p>GitOps\u30c4\u30fc\u30eb\u306e\u9078\u629e\u80a2\u3068\u3057\u3066\u771f\u3063\u5148\u306b\u4e0a\u304c\u308b\u306e\u306fFlux\u3068ArgoCD\u306e2\u3064\u3060\u3068\u601d\u3046\u3002\u3069\u3061\u3089\u304b\u306b\u6c7a\u3081\u308b\u524d\u306b\u3001\u4e21\u65b9\u30921\u9031\u9593\u307b\u3069\u89e6\u3063\u3066\u307f\u305f\u3002<\/p>\n<p>Flux\u306fArgoCD\u3088\u308a\u300cKubernetes\u30cd\u30a4\u30c6\u30a3\u30d6\u300d\u306a\u8a2d\u8a08\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304c\u8efd\u91cf\u3060\u3057\u3001CRD\u306e\u8a2d\u8a08\u3082\u6d17\u7df4\u3055\u308c\u3066\u3044\u308b\u3002\u7279\u306bFlux v2\uff08\u73fe\u5728\u306eFluxCD\uff09\u306fOCI\u30ec\u30b8\u30b9\u30c8\u30ea\u304b\u3089Helm\u30c1\u30e3\u30fc\u30c8\u3092\u76f4\u63a5pull\u3067\u304d\u305f\u308a\u3001Kustomize\u3068\u306e\u7d71\u5408\u304c\u6df1\u304b\u3063\u305f\u308a\u3068\u3001\u6a5f\u80fd\u9762\u3067\u306f\u5f15\u3051\u3092\u53d6\u3089\u306a\u3044\u3002\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u6280\u8853\u7684\u306a\u6d17\u7df4\u5ea6\u3067\u306fFlux\u306e\u307b\u3046\u304c\u4e0a\u304b\u3082\u3057\u308c\u306a\u3044\u3001\u3068\u601d\u3046\u3053\u3068\u3082\u3042\u3063\u305f\u3002<\/p>\n<p>\u3067\u3082\u6700\u7d42\u7684\u306bArgoCD\u306b\u3057\u305f\u3002\u7406\u7531\u306f\u30b7\u30f3\u30d7\u30eb\u3067 \u2014 UI\u304c\u3042\u308b\u3002<\/p>\n<p>\u6700\u521d\u306f\u300cUI\u306a\u3093\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u6a5f\u80fd\u3067\u3057\u3087\u300d\u3068\u601d\u3063\u3066\u3044\u305f\u3002\u3067\u30824\u4eba\u30c1\u30fc\u30e0\u3067GitOps\u3092\u59cb\u3081\u308b\u3068\u304d\u3001\u300c\u4eca\u4f55\u304c<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean\u3067\u30c7\u30d7\u30ed\u30a4\" rel=\"nofollow sponsored\" target=\"_blank\">\u30c7\u30d7\u30ed\u30a4<\/a>\u3055\u308c\u3066\u3044\u308b\u304b\u300d\u3092\u5168\u54e1\u304c\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3067\u304d\u308b\u72b6\u614b\u306f\u601d\u3063\u305f\u4ee5\u4e0a\u306b\u4fa1\u5024\u304c\u3042\u3063\u305f\u3002\u7279\u306b\u3001Kubernetes\u306b\u3042\u307e\u308a\u6163\u308c\u3066\u3044\u306a\u3044\u30e1\u30f3\u30d0\u30fc\u304c\u300c\u672c\u756a\u306ePod\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u898b\u305f\u3044\u300d\u3068\u3044\u3046\u3068\u304d\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304b\u306a\u304f\u3066\u3044\u3044\u3002<\/p>\n<p>ArgoCD\u306e\u30ea\u30bd\u30fc\u30b9\u30b0\u30e9\u30d5\u306f\u8996\u899a\u7684\u306b\u5206\u304b\u308a\u3084\u3059\u304f\u3066\u3001Sync\u304c\u5931\u6557\u3057\u305f\u3068\u304d\u306e\u30c7\u30d0\u30c3\u30b0\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u306b\u306a\u308b\u3002\u300c\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u304c OutOfSync \u304b\u300d\u300c\u30a8\u30e9\u30fc\u306e\u8a73\u7d30\u306f\u4f55\u304b\u300d\u304c\u30d6\u30e9\u30a6\u30b6\u3067\u5b8c\u7d50\u3067\u304d\u308b\u3002Kubernetes\u64cd\u4f5c\u306b\u6163\u308c\u3066\u3044\u306a\u3044\u30e1\u30f3\u30d0\u30fc\u3092\u62b1\u3048\u3066\u3044\u308b\u30c1\u30fc\u30e0\u306b\u306f\u7279\u306b\u523a\u3055\u308b\u3068\u601d\u3046\u3002<\/p>\n<p>\u3042\u3068\u3001ArgoCD\u306fv2.9\u3042\u305f\u308a\u304b\u3089App of Apps\u30d1\u30bf\u30fc\u30f3\u306e\u30b5\u30dd\u30fc\u30c8\u304c\u5b89\u5b9a\u3057\u3066\u304d\u3066\u3001\u30de\u30eb\u30c1\u30c6\u30ca\u30f3\u30c8\u69cb\u6210\u3082\u6271\u3044\u3084\u3059\u304f\u306a\u3063\u305f\u3002\u79c1\u304c\u4f7f\u3044\u59cb\u3081\u305f\u306e\u306fv2.10.3\u3067\u3001\u7279\u306b\u5927\u304d\u306a\u4e0d\u5177\u5408\u306b\u306f\u5f53\u305f\u3063\u3066\u3044\u306a\u3044\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f5\u5206\u3001\u305d\u306e\u5f8c\u306e\u8a2d\u5b9a\u30672\u6642\u9593\u6eb6\u3051\u305f<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u81ea\u4f53\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u901a\u308a\u3067\u307b\u307c\u8a70\u307e\u3089\u306a\u3044:<\/p>\n<pre><code class=\"language-bash\">kubectl create namespace argocd\nkubectl apply -n argocd \\\n  -f https:\/\/raw.githubusercontent.com\/argoproj\/argo-cd\/v2.10.3\/manifests\/install.yaml\n<\/code><\/pre>\n<p>\u6700\u521d\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u53d6\u5f97\u3082\u3059\u3050\u3067\u304d\u308b:<\/p>\n<pre><code class=\"language-bash\">kubectl -n argocd get secret argocd-initial-admin-secret \\\n  -o jsonpath=&quot;{.data.password}&quot; | base64 -d\n<\/code><\/pre>\n<p>\u554f\u984c\u306f\u3053\u3053\u304b\u3089\u5148\u3060\u3063\u305f\u3002<\/p>\n<p><strong>\u3084\u3089\u304b\u3057\u30dd\u30a4\u30f3\u30c8\u305d\u306e1\u3002<\/strong> \u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u300c\u3088\u3057\u52d5\u3044\u305f\u300d\u3068\u601d\u3063\u3066\u305d\u306e\u307e\u307e\u9032\u3081\u305f\u3093\u3060\u3051\u3069\u3001\u5f8c\u304b\u3089\u6c17\u3065\u3044\u305f\u306e\u306f \u2014 <code>argocd-initial-admin-secret<\/code> \u306f\u30ed\u30b0\u30a4\u30f3\u5f8c\u306b\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u3042\u308b\u3002\u3067\u3082\u521d\u56de\u306f\u8aad\u307f\u98db\u3070\u3057\u305f\u3002\u672c\u756a\u3067\u4f7f\u3046\u306a\u3089\u3001\u65e9\u3081\u306bSSO\u9023\u643a\u306b\u79fb\u884c\u3059\u308b\u306e\u304c\u7d76\u5bfe\u306b\u6b63\u89e3\u3067\u3001\u3046\u3061\u306fGitHub OAuth \u3092\u8a2d\u5b9a\u3057\u305f\u3002\u8a2d\u5b9a\u81ea\u4f53\u306f <code>argocd-cm<\/code> ConfigMap\u306b\u6570\u884c\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u300115\u5206\u3082\u304b\u304b\u3089\u306a\u3044\u3002<\/p>\n<p><strong>\u3084\u3089\u304b\u3057\u30dd\u30a4\u30f3\u30c8\u305d\u306e2 \u2014 Ingress\u306e\u8a2d\u5b9a\u3002<\/strong> ArgoCD\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067gRPC\u3068HTTPS\u3092\u540c\u3058\u30dd\u30fc\u30c8\u3067\u6271\u3046\u306e\u3067\u3001Nginx\u306eIngress Controller\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u304d\u306b\u4e00\u624b\u9593\u3044\u308b\u3002\u7d20\u306eIngress\u8a2d\u5b9a\u3092\u66f8\u3044\u305f\u3089\u3001WebUI\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u306bCLI\uff08<code>argocd<\/code> \u30b3\u30de\u30f3\u30c9\uff09\u304cgRPC\u63a5\u7d9a\u30a8\u30e9\u30fc\u3092\u5410\u304d\u7d9a\u3051\u305f\u3002\u8a66\u884c\u932f\u8aa4\u306e\u672b\u3001<code>nginx.ingress.kubernetes.io\/backend-protocol: \"GRPC\"<\/code> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u305f\u304c\u3001\u74b0\u5883\u306b\u3088\u3063\u3066\u306fSSL\u30d1\u30b9\u30b9\u30eb\u30fc\u306e\u69cb\u6210\u304c\u5fc5\u8981\u306b\u306a\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308b\u3002\u3053\u308c\u306730\u5206\u304f\u3089\u3044\u6eb6\u3051\u305f\u3002<\/p>\n<p>\u3082\u3046\u4e00\u70b9\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30fc\u30ea\u30f3\u30b0\u9593\u9694\u306f\u6700\u59273\u5206\u3002\u3064\u307e\u308a <code>git push<\/code> \u3057\u3066\u304b\u3089\u6700\u59273\u5206\u5f85\u305f\u306a\u3044\u3068Sync\u304c\u59cb\u307e\u3089\u306a\u3044\u3002\u300c\u3042\u308c\u3001\u53cd\u6620\u3055\u308c\u3066\u306a\u3044\uff1f\u300d\u3068\u6df7\u4e71\u3057\u305f\u306e\u3067\u3001GitHub\u306eWebhook\u3092\u65e9\u3081\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u3059\u3059\u3081\u308b\u3002ArgoCD\u306eWebhook\u7528\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f <code>\/api\/webhook<\/code> \u3067\u3001GitHub\u5074\u306eSecret\u8a2d\u5b9a\u3068\u5408\u308f\u305b\u306630\u5206\u3042\u308c\u3070\u5b8c\u4e86\u3059\u308b\u3002<\/p>\n<h2>Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u69cb\u6210 \u2014 \u30e2\u30ce\u30ec\u30dd\u3067\u59cb\u3081\u305f\u7406\u7531<\/h2>\n<p>\u300c\u30a2\u30d7\u30ea\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u30a4\u30f3\u30d5\u30e9\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5206\u3051\u308b\u3079\u304d\u304b\u300d\u3068\u3044\u3046\u554f\u984c\u3001\u3053\u3053\u304c\u6b63\u76f4\u4e00\u756a\u60a9\u3093\u3060\u30dd\u30a4\u30f3\u30c8\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>\u8abf\u3079\u308b\u3068\u300c\u5206\u3051\u308b\u3079\u304d\u300d\u3068\u3044\u3046\u610f\u898b\u304c\u591a\u3044\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u3082\u3001\u30a2\u30d7\u30ea\u306e\u5909\u66f4\u3068\u30a4\u30f3\u30d5\u30e9\u306e\u5909\u66f4\u304c\u6df7\u5728\u3057\u306a\u3044\u307b\u3046\u304c\u30ec\u30d3\u30e5\u30fc\u3057\u3084\u3059\u3044\u3002\u7406\u5c48\u306f\u5206\u304b\u308b\u3002<\/p>\n<p>\u305f\u30604\u4eba\u30c1\u30fc\u30e0\u30fb\u521d\u5c0e\u5165\u3068\u3044\u3046\u72b6\u6cc1\u3067\u3001\u6700\u521d\u304b\u3089\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5206\u3051\u308b\u3068\u300c\u3042\u306e<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean\u3067\u30c7\u30d7\u30ed\u30a4\" rel=\"nofollow sponsored\" target=\"_blank\">\u30c7\u30d7\u30ed\u30a4<\/a>\u8a2d\u5b9a\u3063\u3066\u3069\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3060\u3063\u3051\uff1f\u300d\u3068\u3044\u3046\u6df7\u4e71\u304c\u751f\u307e\u308c\u3084\u3059\u3044\u3002\u306a\u306e\u3067\u307e\u305a\u30e2\u30ce\u30ec\u30dd\u69cb\u6210\u306b\u3057\u3066\u3001\u30b9\u30b1\u30fc\u30eb\u3057\u305f\u3089\u5206\u3051\u308b\u3001\u3068\u3044\u3046\u5224\u65ad\u3092\u3057\u305f:<\/p>\n<pre><code>infra\/\n\u251c\u2500\u2500 apps\/\n\u2502   \u251c\u2500\u2500 staging\/\n\u2502   \u2502   \u251c\u2500\u2500 api-server.yaml      # ArgoCD Application CR\n\u2502   \u2502   \u2514\u2500\u2500 worker.yaml\n\u2502   \u2514\u2500\u2500 <a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean for Production Workloads\" rel=\"nofollow sponsored\" target=\"_blank\">production<\/a>\/\n\u2502       \u251c\u2500\u2500 api-server.yaml\n\u2502       \u2514\u2500\u2500 worker.yaml\n\u2514\u2500\u2500 manifests\/\n    \u251c\u2500\u2500 api-server\/\n    \u2502   \u251c\u2500\u2500 Chart.yaml\n    \u2502   \u251c\u2500\u2500 values.yaml           # \u5171\u901a\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\n    \u2502   \u251c\u2500\u2500 values-staging.yaml\n    \u2502   \u2514\u2500\u2500 values-<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean for Production Workloads\" rel=\"nofollow sponsored\" target=\"_blank\">production<\/a>.yaml\n    \u2514\u2500\u2500 worker\/\n        \u2514\u2500\u2500 ...\n<\/code><\/pre>\n<p>ArgoCD\u306eApplication\u5b9a\u7fa9\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u3063\u305f:<\/p>\n<pre><code class=\"language-yaml\">apiVersion: argoproj.io\/v1alpha1\nkind: Application\nmetadata:\n  name: api-server-staging\n  namespace: argocd\n  finalizers:\n    - resources-finalizer.argocd.argoproj.io  # \u524a\u9664\u6642\u306bKubernetes\u30ea\u30bd\u30fc\u30b9\u3082\u6d88\u3059\nspec:\n  project: default\n  source:\n    repoURL: https:\/\/github.com\/myorg\/infra\n    targetRevision: main\n    path: manifests\/api-server\n    helm:\n      valueFiles:\n        - values.yaml\n        - values-staging.yaml\n  destination:\n    server: https:\/\/kubernetes.default.svc\n    namespace: staging\n  syncPolicy:\n    automated:\n      prune: true       # Git \u304b\u3089\u6d88\u3048\u305f\u30ea\u30bd\u30fc\u30b9\u3092\u81ea\u52d5\u524a\u9664\n      selfHeal: true    # \u624b\u52d5\u5909\u66f4\u3092\u691c\u77e5\u3057\u3066Git\u306e\u72b6\u614b\u306b\u623b\u3059\n    syncOptions:\n      - CreateNamespace=true\n<\/code><\/pre>\n<p><code>finalizers<\/code> \u306e\u884c\u3001\u6700\u521d\u306f\u5165\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3002Application CR\u3092\u524a\u9664\u3057\u305f\u3068\u304d\u3001Kubernetes\u5074\u306eDeployment\u3084Service\u304c\u6b8b\u308a\u7d9a\u3051\u3066\u624b\u52d5\u3067\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u306f\u3081\u306b\u306a\u3063\u305f\u3002\u5730\u5473\u3060\u3051\u3069\u3053\u308c\u306f\u91cd\u8981\u3002<\/p>\n<h2>selfHeal \u3068 HPA \u304c\u7af6\u5408\u3057\u305f\u8a71\uff08\u4e00\u756a\u30cf\u30de\u3063\u305f\uff09<\/h2>\n<p>\u6b63\u76f4\u3001\u3053\u3053\u304c\u6700\u5927\u306e\u843d\u3068\u3057\u7a74\u3060\u3063\u305f\u3002<\/p>\n<p><code>selfHeal: true<\/code> \u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u8ab0\u304b\u304c\u624b\u52d5\u3067 <code>kubectl edit<\/code> \u3057\u3066\u3082ArgoCD\u304c\u300cGit\u3068\u9055\u3046\u300d\u3068\u5224\u65ad\u3057\u3066\u5143\u306b\u623b\u3059\u3002GitOps\u306e\u672c\u8cea\u7684\u306a\u6319\u52d5\u3067\u3001\u610f\u56f3\u901a\u308a\u3060\u3057\u3001\u76ee\u7684\u3067\u3082\u3042\u308b\u3002\u3067\u3082 \u2014 HorizontalPodAutoscaler\uff08HPA\uff09\u3092\u5c0e\u5165\u3057\u305f\u3068\u304d\u3001\u554f\u984c\u304c\u8d77\u304d\u305f\u3002<\/p>\n<p>HPA\u306f\u81ea\u52d5\u7684\u306b <code>spec.replicas<\/code> \u3092\u5909\u66f4\u3059\u308b\u3002ArgoCD\u306f\u305d\u308c\u3092\u300c\u30c9\u30ea\u30d5\u30c8\u300d\u3068\u898b\u306a\u3057\u3066Sync\u3057\u3088\u3046\u3068\u3059\u308b\u3002\u7d50\u679c\u3001HPA\u304c\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u5897\u52a0\u3092\u53d7\u3051\u3066replicas=5\u306b\u30b9\u30b1\u30fc\u30eb\u30a2\u30c3\u30d7\u3057\u305f\u76f4\u5f8c\u306b\u3001ArgoCD\u304cGit\u306e\u5b9a\u7fa9\uff08replicas=2\uff09\u306b\u623b\u3059\u3001\u3068\u3044\u3046\u30ab\u30aa\u30b9\u306a\u72b6\u6cc1\u306b\u306a\u3063\u305f\u3002\u6c34\u66dc\u306e\u671d\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u5897\u3048\u3066\u3044\u308b\u6700\u4e2d\u306b\u8d77\u304d\u3066\u3061\u3087\u3063\u3068\u7126\u3063\u305f\u3002<\/p>\n<p>\u89e3\u6c7a\u7b56\u306f <code>ignoreDifferences<\/code> \u3092\u4f7f\u3046\u3053\u3068:<\/p>\n<pre><code class=\"language-yaml\">spec:\n  ignoreDifferences:\n    - group: apps\n      kind: Deployment\n      jsonPointers:\n        - \/spec\/replicas   # HPA \u304c\u7ba1\u7406\u3059\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u306a\u306e\u3067 ArgoCD \u306f\u7121\u8996\u3059\u308b\n<\/code><\/pre>\n<p>\u305f\u3060\u3057\u3053\u3053\u3067\u4e00\u3064\u7f60\u304c\u3042\u308b\u3002\u3053\u306ejsonPointer\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001Git\u3067 <code>replicas<\/code> \u306e\u5024\u3092\u5909\u66f4\u3057\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u304f\u306a\u308b\uff08\u7121\u8996\u3055\u308c\u308b\u304b\u3089\uff09\u3002\u672c\u5f53\u306breplicas\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u5909\u3048\u305f\u3044\u3068\u304d\u306f\u3001HPA\u5074\u306e <code>minReplicas<\/code> \u3092\u5909\u66f4\u3059\u308b\u304b\u3001\u4e00\u6642\u7684\u306b\u3053\u306e\u8a2d\u5b9a\u3092\u5916\u3059\u304b\u3001\u3068\u3044\u3046\u904b\u7528\u306b\u306a\u308b\u3002\u5c11\u3057\u4e0d\u683c\u597d\u3060\u3051\u3069\u3001\u4eca\u306e\u3068\u3053\u308d\u3053\u308c\u3067\u5b89\u5b9a\u3057\u3066\u3044\u308b\u3002<\/p>\n<p><code>prune: true<\/code> \u3082\u672c\u5f53\u306b\u614e\u91cd\u306b\u6271\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002Git\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3068\u3001\u672c\u756a\u306eKubernetes\u30ea\u30bd\u30fc\u30b9\u3082\u6d88\u3048\u308b\u3002ConfigMap\u3092\u524a\u9664\u3057\u305f\u3068\u304d\u3001\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3067\u304d\u306a\u304f\u306a\u3063\u3066 \u2014 \u3053\u308c\u3092\u672c\u756a\u3067\u8e0f\u3093\u3060\u306e\u306f\u3072\u3069\u304b\u3063\u305f\u3002\u4eca\u306fPR\u306e\u30ec\u30d3\u30e5\u30fc\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u306b\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\/\u30ea\u30bd\u30fc\u30b9\u3001\u524a\u9664\u3057\u3066\u672c\u5f53\u306b\u5927\u4e08\u592b\u304b\uff1f\u300d\u3068\u3044\u3046\u9805\u76ee\u3092\u8ffd\u52a0\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u3042\u3068\u3001ArgoCD\u306eSync\u3067\u5931\u6557\u3057\u305f\u3068\u304d\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u300cresource already exists\u300d\u3060\u3051\u3067\u539f\u56e0\u304c\u5206\u304b\u308a\u306b\u304f\u3044\u3053\u3068\u304c\u3042\u308b\u3002\u3053\u308c\u306f\u305f\u3044\u3066\u3044Helm\u306e\u30ea\u30ea\u30fc\u30b9\u540d\u3068ArgoCD\u7ba1\u7406\u30ea\u30bd\u30fc\u30b9\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\u5834\u5408\u3067\u3001\u65e2\u5b58\u306eHelm\u30ea\u30ea\u30fc\u30b9\u3092ArgoCD\u306b\u79fb\u884c\u3059\u308b\u3068\u304d\u306b\u8d77\u304d\u3084\u3059\u3044\u3002<code>argocd app sync --prune<\/code> \u3067\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3051\u3069\u3001\u6016\u304f\u3066\u306a\u304b\u306a\u304b\u5b9f\u884c\u3067\u304d\u306a\u3044\u3084\u3064\u3002<\/p>\n<h2>2\u9031\u9593\u4f7f\u3063\u3066\u307f\u3066\u306e\u7387\u76f4\u306a\u8a55\u4fa1<\/h2>\n<p>\u8a2d\u5b9a\u304c\u5b89\u5b9a\u3057\u3066\u304b\u30892\u9031\u9593\u3001<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean\u3067\u30c7\u30d7\u30ed\u30a4\" rel=\"nofollow sponsored\" target=\"_blank\">\u30c7\u30d7\u30ed\u30a4<\/a>\u5468\u308a\u306eSlack\u306e\u8b70\u8ad6\u304c\u307b\u307c\u306a\u304f\u306a\u3063\u305f\u3002\u300c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u53cd\u6620\u3057\u305f\uff1f\u300d\u300c\u672c\u756a\u306f\u3044\u3064\uff1f\u300d\u300c\u8ab0\u304c<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean\u3067\u30c7\u30d7\u30ed\u30a4\" rel=\"nofollow sponsored\" target=\"_blank\">\u30c7\u30d7\u30ed\u30a4<\/a>\u3059\u308b\uff1f\u300d\u3068\u3044\u3046\u3084\u308a\u53d6\u308a\u304c\u6d88\u3048\u3066\u3001PR\u3092\u30de\u30fc\u30b8\u3059\u308c\u3070\u305d\u308c\u3067\u7d42\u308f\u308a\u3001\u3068\u3044\u3046\u72b6\u614b\u306b\u306a\u3063\u305f\u3002\u3053\u308c\u306f\u304b\u306a\u308a\u52b9\u3044\u305f\u3002<\/p>\n<p>\u4f53\u611f\u3068\u3057\u3066\u4e00\u756a\u3088\u304b\u3063\u305f\u306e\u306f\u3001\u672c\u756a\u3068\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306e\u8a2d\u5b9a\u30c9\u30ea\u30d5\u30c8\u304c\u5b8c\u5168\u306b\u306a\u304f\u306a\u3063\u305f\u3053\u3068\u3002Git\u304c\u552f\u4e00\u306e\u771f\u5b9f\u306e\u6e90\u6cc9\u306b\u306a\u308b\u306e\u3067\u3001\u300c\u306a\u3093\u304b\u672c\u756a\u3060\u3051\u6319\u52d5\u304c\u9055\u3046\u300d\u3068\u3044\u3046\u8abf\u67fb\u306b\u4f7f\u3046\u6642\u9593\u304c\u30bc\u30ed\u306b\u306a\u3063\u305f\u3002\u3042\u306e\u6708\u66dc\u306e\u671d\u306e\u7d4c\u9a13\u304c\u306a\u304f\u306a\u3063\u305f\u3001\u3068\u3044\u3046\u306e\u304c\u4f55\u3088\u308a\u5927\u304d\u3044\u3002<\/p>\n<p>\u4e0d\u6e80\u70b9\u3082\u6b63\u76f4\u306b\u66f8\u304f\u3002ArgoCD\u306eUI\u306f\u30ea\u30bd\u30fc\u30b9\u30b0\u30e9\u30d5\u304c\u304d\u308c\u3044\u306a\u3093\u3060\u3051\u3069\u3001Application\u304c\u5897\u3048\u308b\u3068\u30d6\u30e9\u30a6\u30b6\u304c\u91cd\u304f\u306a\u308b\u300250\u500b\u4ee5\u4e0a\u306eApplication\u304c\u5165\u3063\u3066\u3044\u308b\u74b0\u5883\u3067\u8a66\u3057\u305f\u3068\u304d\u3001\u30bf\u30d6\u304c\u660e\u3089\u304b\u306b\u91cd\u304b\u3063\u305f\u3002\u79c1\u306e\u4eca\u306e\u74b0\u5883\u306f15\u500b\u7a0b\u5ea6\u306a\u306e\u3067\u554f\u984c\u306a\u3044\u3051\u3069\u3001\u5927\u898f\u6a21\u306b\u306a\u308b\u3068\u53b3\u3057\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002100\u500b\u3092\u8d85\u3048\u305f\u3089ArgoCD\u306e<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean <a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean <a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean <a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean <a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean <a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean \u30af\u30e9\u30a6\u30c9\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\" rel=\"nofollow sponsored\" target=\"_blank\">\u30af\u30e9\u30a6\u30c9<\/a>\u30db\u30b9\u30c6\u30a3\u30f3\u30b0&#8221; rel=&#8221;nofollow sponsored&#8221; target=&#8221;_blank&#8221;>\u30af\u30e9\u30a6\u30c9<\/a>\u30db\u30b9\u30c6\u30a3\u30f3\u30b0&#8221; rel=&#8221;nofollow sponsored&#8221; target=&#8221;_blank&#8221;>\u30af\u30e9\u30a6\u30c9<\/a>\u30db\u30b9\u30c6\u30a3\u30f3\u30b0&#8221; rel=&#8221;nofollow sponsored&#8221; target=&#8221;_blank&#8221;>\u30af\u30e9\u30a6\u30c9<\/a>\u30db\u30b9\u30c6\u30a3\u30f3\u30b0&#8221; rel=&#8221;nofollow sponsored&#8221; target=&#8221;_blank&#8221;>\u30af\u30e9\u30a6\u30c9<\/a>\u30b5\u30fc\u30d0\u30fc&#8221; rel=&#8221;nofollow sponsored&#8221; target=&#8221;_blank&#8221;>\u30b5\u30fc\u30d0\u30fc<\/a>\u30ea\u30bd\u30fc\u30b9\u3068UI\u8a2d\u8a08\u3092\u3061\u3083\u3093\u3068\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u601d\u3046 \u2014 \u305d\u3053\u307e\u3067\u30b9\u30b1\u30fc\u30eb\u3057\u305f\u7d4c\u9a13\u306f\u307e\u3060\u306a\u3044\u306e\u3067\u6b63\u76f4\u306a\u3068\u3053\u308d\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n<p>Flux\u3068ArgoCD\u3067\u8ff7\u3063\u3066\u3044\u308b\u306a\u3089\u3001\u5224\u65ad\u8ef8\u306f\u30b7\u30f3\u30d7\u30eb\u3060\u3068\u601d\u3046\u3002\u30c1\u30fc\u30e0\u306eKubernetes\u7fd2\u719f\u5ea6\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u3001\u307e\u305f\u306f\u53ef\u8996\u5316\u3092\u91cd\u8996\u3059\u308b\u306a\u3089ArgoCD\u304b\u3089\u59cb\u3081\u308b\u306e\u304c\u7121\u96e3\u3002CLI\u3067\u5b8c\u7d50\u3067\u304d\u3066\u30ea\u30bd\u30fc\u30b9\u52b9\u7387\u3092\u512a\u5148\u3057\u305f\u3044\u306a\u3089Flux\u3067\u3082\u5168\u7136\u3044\u3044\u3002\u3069\u3061\u3089\u3082\u6210\u719f\u3057\u305f\u30c4\u30fc\u30eb\u3067\u3001\u300c\u3069\u3061\u3089\u304c\u6b63\u89e3\u304b\u300d\u3068\u3044\u3046\u554f\u3044\u81ea\u4f53\u306b\u610f\u5473\u306f\u306a\u3044\u3002<\/p>\n<p>\u3044\u304d\u306a\u308a\u3059\u3079\u3066\u306e\u74b0\u5883\u306bArgoCD\u3092\u5165\u308c\u308b\u3088\u308a\u3001\u307e\u305a\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u306e1\u30b5\u30fc\u30d3\u30b9\u3060\u3051\u3092\u5bfe\u8c61\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u30662\u9031\u9593\u904b\u7528\u3057\u3066\u307f\u308b\u3053\u3068\u3092\u3059\u3059\u3081\u308b\u3002HPA\u3068\u306e\u7af6\u5408\u3068\u304b\u3001prune\u306e\u6319\u52d5\u3068\u304b\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u521d\u3081\u3066\u7406\u89e3\u3067\u304d\u308b\u3053\u3068\u304c\u591a\u3044\u3002\u79c1\u3082\u305d\u3046\u3060\u3063\u305f\u3002<\/p>\n<p>ArgoCD\u306eSync\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u5168\u74b0\u5883\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u4e00\u6589\u306b\u63c3\u3063\u3066\u3044\u304f\u306e\u3092\u773a\u3081\u308b\u77ac\u9593 \u2014 \u3042\u308c\u306f\u3061\u3087\u3063\u3068\u6c17\u6301\u3061\u3044\u3044\u3002<\/p>\n<p><!-- Reviewed: 2026-03-08 | Status: ready_to_publish | Changes: removed English AI-tell phrases (\"One thing I noticed:\", \"So\u3001\", \"Right, so \u2014\"); softened nginx ingress annotation claim to reflect it as one solution rather than the definitive fix (fact-check found SSL passthrough is the other documented approach); removed redundant sentence about \"Helm\u306evalues\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u305f\u306e\u306b\" (implied by context); made recommendation section more conversational, less listy; added bold to \"\u3084\u3089\u304b\u3057\u30dd\u30a4\u30f3\u30c8\" callouts for scannability; tightened conclusion by ~80 words; technical facts verified correct except nginx annotation (softened) --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u91d1\u66dc\u306e\u5348\u5f8c4\u6642\u306b\u672c\u756a\u3078\u306e \u30c7\u30d7\u30ed\u30a4 \u3092\u624b\u52d5\u3067\u5b9f\u884c\u3057\u3066\u3001\u7fcc\u9031\u6708\u66dc\u306e\u671d\u306bSlack\u3067\u300c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3068\u672c\u756a\u3067API\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u9055\u3046\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u98db\u3093\u3067\u304d\u305f\u3002 \u78ba\u8a8d\u3057\u3066\u307f\u305f\u3089\u3001Helm\u306evalues\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u3057\u304bapply\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u672c\u756a\u306f2\u9031\u9593\u524d\u306e\u8a2d\u5b9a\u306e\u307e\u307e\u52d5\u3044\u3066\u3044\u305f\u3002\u30c1\u30fc\u30e0\u306f\u5f53\u66424\u4eba\u3067\u3001<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":7,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/106\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}