ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਬਲੌਗ

Kubeflow + Argo CD: Kubernetes ਉੱਤੇ GitOps MLOps

Kubeflow ਨਾਲ train ਕਰੋ, Argo CD ਨਾਲ deliver ਕਰੋ — pipelines, Model Registry, KServe, ਅਤੇ git revert ਨਾਲ rollback

  • Balinder Walia
  • 2 ਮਿੰਟ ਦੀ ਪੜ੍ਹਤ
  • Updated

Kubeflow (train / evaluate / register) ਨੂੰ Argo CD (GitOps deliver / rollback) ਨਾਲ ਜੋੜਨ ਦੀ ਅਮਲੀ ਗਾਈਡ. ਪੂਰੀ architecture, manifests ਅਤੇ anti-patterns ਲਈ ਪੜ੍ਹੋ ਲੰਮਾ article.

Kubernetes ਉੱਤੇ Kubeflow ਅਤੇ Argo CD GitOps MLOps

ਇੱਕ-ਪੈਰਾਗ੍ਰਾਫ਼ ਸੰਸਕਰਣ. Kubeflow Kubernetes ਉੱਤੇ ML lifecycle ਦਾ ਮਾਲਕ ਹੈ — pipelines, training jobs, model registry ਅਤੇ KServe. Argo CD delivery ਦਾ ਮਾਲਕ ਹੈ: ਹਰ InferenceService, pipeline definition ਅਤੇ platform component Git ਤੋਂ reconcile ਹੁੰਦਾ ਹੈ. Kubeflow ਵਿੱਚ train ਤੇ evaluate ਕਰੋ; Git manifest ਅੱਪਡੇਟ ਕਰਕੇ promote ਕਰੋ; roll back ਕਰੋ git revert. Models ਨੂੰ object storage ਵਿੱਚ ਰੱਖੋ — Git URIs ਅਤੇ config ਸਟੋਰ ਕਰਦਾ ਹੈ, weights ਨਹੀਂ.

ਦੋਵੇਂ tools ਕਿਉਂ?

Kubeflow ਜਵਾਬ ਦਿੰਦਾ ਹੈ: GPUs ਉੱਤੇ reproducible training ਅਤੇ evaluation ਕਿਵੇਂ ਚਲਾਈਏ? Argo CD ਜਵਾਬ ਦਿੰਦਾ ਹੈ: resulting model ਨੂੰ snowflake clusters ਤੋਂ ਬਿਨਾਂ production ਵਿੱਚ ਕਿਵੇਂ ਭੇਜੀਏ? ਸਿਰਫ਼ Kubeflow ਵਰਤਣਾ ਅਕਸਰ manual ਉੱਤੇ ਖਤਮ ਹੁੰਦਾ ਹੈ kubectl apply serving ਲਈ. ਸਿਰਫ਼ Argo CD ਵਰਤਣ ਨਾਲ ਤੁਹਾਡੇ ਕੋਲ first-class ML pipeline ਅਤੇ experiment system ਨਹੀਂ ਰਹਿੰਦਾ. ਇਕੱਠੇ ਉਹ ਇੱਕ ਬੰਦ MLOps loop ਬਣਾਉਂਦੇ ਹਨ.

ਮਿਹਨਤ ਦੀ ਵੰਡ

ਚਿੰਤਾ ਟੂਲ Git ਵਿੱਚ ਕੀ ਰਹਿੰਦਾ ਹੈ
Pipeline DAGs, TrainJobs, experimentsKubeflow Pipelines / TrainerPipeline YAML / component specs
Model artifacts ਅਤੇ lineageModel Registry + object storageURI + metadata — weights file ਨਹੀਂ
Serving, canaries, rollbacksKServe + Argo CDInferenceService overlays
Platform install ਅਤੇ upgradesArgo CD ApplicationsKubeflow ਖੁਦ ਲਈ Helm/Kustomize

End-to-end loop (ਚੰਗਾ ਕਿਵੇਂ ਲੱਗਦਾ ਹੈ)

  1. Data scientist pipeline ਬਦਲਾਅ merge ਕਰਦਾ ਹੈ → Argo CD pipeline CRDs sync ਕਰਦਾ ਹੈ.
  2. Kubeflow GPU nodes ਉੱਤੇ training ਚਲਾਉਂਦਾ ਹੈ (ਵਿਕਲਪਿਕ ਤੌਰ ਤੇ Kueue ਨਾਲ queued).
  3. Evaluation gates ਪਾਸ → model URI registered; ਇੱਕ PR prod ਅੱਪਡੇਟ ਕਰਦਾ ਹੈ InferenceService storageUri.
  4. Argo CD OutOfSync ਪਛਾਣਦਾ ਹੈ ਅਤੇ rollout ਕਰਦਾ ਹੈ (ਪਹਿਲਾਂ canary traffic).
  5. Drift ਜਾਂ ਖਰਾਬ metrics → git revert ਪਿਛਲਾ URI restore ਕਰਦਾ ਹੈ; Argo CD reconcile ਕਰਦਾ ਹੈ.

ਪੰਜ practices ਜੋ ਦਰਦ ਬਚਾਉਂਦੀਆਂ ਹਨ

  • ਵੱਖਰੇ repos ਜਾਂ folders: platform (Kubeflow install) ਬਨਾਮ apps (pipelines + InferenceServices).
  • Model binaries ਕਦੇ commit ਨਾ ਕਰੋ — ਹਵਾਲਾ s3:// / gs:// / PVC URIs.
  • Sync waves: KFP components ਤੋਂ ਪਹਿਲਾਂ MySQL/MinIO (ਜਾਂ managed equivalents).
  • ਹਰ step ਉੱਤੇ resource limits — ਬਿਨਾਂ limits ਦੇ training jobs cluster ਨੂੰ ਭੁੱਖਾ ਛੱਡ ਦੇਣਗੀਆਂ.
  • Promotion = PR, notebook ਵਿੱਚ ਬਟਨ ਨਹੀਂ. Audit trail ਮੁਫ਼ਤ ਮਿਲਦਾ ਹੈ.

ਜਦੋਂ ਇਹ stack overkill ਹੋਵੇ

SME chatbot ਲਈ Ollama ਚਲਾਉਂਦਾ ਇੱਕਲਾ Mac Studio Kubeflow + Argo CD ਨਹੀਂ ਚਾਹੁੰਦਾ. ਇਸ pattern ਨੂੰ ਉਦੋਂ ਅਪਣਾਓ ਜਦੋਂ ਕਈ models ਹੋਣ, GPU contention ਹੋਵੇ, compliance ਲੋੜਾਂ ਹੋਣ, ਜਾਂ ਇੱਕ ਤੋਂ ਵੱਧ environments (dev/staging/prod) ਜੋ ਇੱਕੋ ਜਿਹੇ ਰਹਿਣੇ ਚਾਹੀਦੇ ਹਨ.

ਸੰਬੰਧਿਤ ਪੜ੍ਹਾਈ. ਅਸੀਂ ਪਹਿਲਾਂ ਹੀ Argo CD ਅਤੇ Flux ਉੱਤੇ ਕੇਂਦਰਿਤ ਇੱਕ GitOps overview ਪ੍ਰਕਾਸ਼ਿਤ ਕਰ ਚੁੱਕੇ ਹਾਂ: Kubernetes Continuous Delivery: ArgoCD & Flux ਨਾਲ GitOps Pipelines. ਇਹ ਪੋਸਟ ML-specific ਸਾਥੀ ਹੈ — ਲੂਪ ਵਿੱਚ Kubeflow.

ਲੰਮਾ ਸੰਸਕਰਣ ਪੜ੍ਹੋ

The ਲੰਮਾ article 2026 Kubernetes MLOps map (KFP v2, Trainer, KServe, Kueue), Argo CD Application patterns, promotion gates, canary serving, GPU FinOps ਅਤੇ rollout checklist ਕਵਰ ਕਰਦਾ ਹੈ. ਪ੍ਰਕਾਸ਼ਿਤ TenthMatrix.