/mlops-skills:complete-mlops-platform-deployment-self-hosted-k8s-from-scratchfrom mlops-skills
Sequences a complete self-hosted MLOps platform on any Kubernetes cluster from bare cluster to production: GPU node pools, Kubeflow-vs-Ray orchestration, self-hosted MLflow tracking/registry on object storage and Postgres, on-cluster serving, and drift monitoring. Explicit about operational tradeoffs vs managed cloud.
Ships in mlops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every cloud-specific MLOps platform in this family (AWS, Azure, GCP) leans on at least one managed service somewhere in the stack — a managed Kubernetes control plane, a managed model registry, a managed drift- monitoring product, or all three. This skill is the path for teams that cannot or choose not to depend on any vendor-managed ML service at all: running on any Kubernetes cluster (a cloud-provisioned one used purely for raw compute, an on-prem cluster, or a bare-metal lab cluster), with every layer — GPU scheduling, experiment tracking, model registry, serving, and monitoring — operated by the team itself. The tradeoff is real and this skill is explicit about it: full control and zero managed-service lock-in, at the cost of also owning every durability, upgrade, and on-call concern a managed service would otherwise absorb. Getting the sequence wrong here is more consequential than on a managed cloud platform, because there is no vendor safety net catching a skipped step — e.g. standing up experiment tracking before its backing object storage has any durability plan means losing runs permanently, not just inconveniently.
helm ≥ 3.14 and kubectl, plus the NVIDIA GPU Operator's
prerequisites (a supported host OS, Node Feature Discovery) if GPU
nodes exist in the cluster.This is the phase sequence. Each phase links to the skill that covers its full depth; the text here covers only the self-hosted, cloud-agnostic sequencing and the operational burden each phase adds versus a managed alternative.
Phase 1 — cluster foundation. Confirm the cluster is healthy and self-operated durability basics are in place: an HA control plane and a verified, tested etcd backup if this is a kubeadm-provisioned cluster (see etcd-backup-restore-and-cluster-health), since — unlike every managed-cloud skill in this family — there is no provider-side control-plane durability guarantee here at all.
Phase 2 — GPU node pools. Install the NVIDIA GPU Operator and design separate training vs. serving GPU node pools per gpu-accelerator-infrastructure-for-ml-training:
helm install gpu-operator nvidia/gpu-operator \
--namespace gpu-operator --create-namespace --set mig.strategy=mixed
kubectl taint nodes -l gpu-pool=training workload=training:NoSchedule
kubectl taint nodes -l gpu-pool=serving workload=serving:NoSchedule
This must exist before Phase 5's training pipeline is authored — identical to every other skill in this family, a GPU-requesting job against a cluster with no GPU node pool yet queues silently.
Phase 3 — orchestration engine decision: Kubeflow Pipelines vs. Ray. Both run self-hosted on this cluster with no managed-service equivalent required; pick based on workload shape, not habit:
Phase 4 — self-hosted experiment tracking and model registry. Deploy MLflow on the cluster, backed by the Phase 1/prerequisite MinIO (S3-compatible artifact store) and self-operated Postgres (backend store), applying the run-logging discipline from experiment-tracking and the registry/promotion-gate discipline from model-packaging-and-versioning:
helm install mlflow community-charts/mlflow \
--namespace mlflow --create-namespace \
--set backendStore.postgres.host=postgres.mlflow.svc.cluster.local \
--set artifactRoot=s3://mlflow-artifacts/ \
--set artifactRoot.s3.endpoint=http://minio.storage.svc.cluster.local:9000
This is the phase with the sharpest self-hosted-specific risk in the whole sequence: unlike a managed model registry (SageMaker/Azure ML/ Vertex AI Model Registry), this MLflow instance's durability is entirely this team's responsibility. Stand up and verify automated Postgres backups and MinIO bucket versioning/replication before any real experiment or registered model exists here — a node loss with no backup verified means losing both the experiment history and the model registry, including the currently-serving production model's only record, simultaneously.
Phase 5 — training pipeline orchestration. Author the retraining DAG on the Phase 3 engine, applying the vendor-neutral gate/ reproducibility principles from training-pipeline-orchestration, targeting the Phase 2 training node pool and logging to the Phase 4 MLflow instance:
train_task = train(processed=preprocess_task.outputs["processed"], epochs=20)
train_task.set_accelerator_type("nvidia.com/gpu").set_accelerator_limit(1)
train_task.set_caching_options(enable_caching=False)
Confirm the pipeline's logged MLflow tracking URI resolves to the
in-cluster service (mlflow.mlflow.svc.cluster.local), not a
development-time localhost placeholder left over from local testing
— a common source of "the pipeline ran successfully but nothing shows
up in the tracker" reports specific to self-hosted setups where the
service DNS name is easy to get wrong.
Phase 6 — feature store (if needed). For use cases with reusable features across models, stand up Feast against the Phase 4 MinIO instance for the offline store and a self-hosted Redis for the online store, per feature-store-design. Optional — skip for a single model with no feature-reuse need.
Phase 7 — on-cluster serving and scaling. Deploy KServe (or Seldon Core, or a hand-rolled vLLM/Triton Deployment) on the Phase 2 serving GPU node pool, referencing the Phase 4 registry's exact model version, applying the canary/shadow rollout discipline from model-serving-and-scaling:
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata: { name: fraud-scorer }
spec:
predictor:
nodeSelector: { gpu-pool: serving }
model:
modelFormat: { name: mlflow }
storageUri: "s3://mlflow-artifacts/models/fraud-scorer/14"
Confirm the serving pods' MinIO credentials are scoped read-only to this artifact prefix — there is no IRSA-equivalent keyless federation here, so this is a plain Kubernetes Secret that must be rotated on the same deliberate cadence as any other production credential, unlike the managed-cloud skills in this family where workload identity removes that burden entirely.
Phase 8 — monitoring and drift detection. Run a self-hosted Evidently (or equivalent) job on a schedule, reading logged inference requests/responses and writing drift metrics to a self-hosted Prometheus/Grafana stack, applying the reference-baseline and alerting discipline from model-monitoring-and-drift-detection. As on every other cloud in this family, this must be live and confirmed collecting data before Phase 7's canary is ramped past its first traffic stage.
Symptom: A node hosting the Phase 4 MLflow Postgres/MinIO pods is lost (hardware failure, a bad node drain), and both experiment history and the model registry — including the currently-serving production model's record — disappear with them. Fix: Phase 4 was stood up without a verified, tested backup and restore procedure for its backing Postgres and MinIO, unlike a managed cloud registry which has this durability built in. Treat backup verification for this phase as a blocking prerequisite before any real model is registered here, exactly as etcd backup verification is treated in Phase 1.
Symptom: A GPU-requesting training pipeline step in Phase 5 sits
Pending/Unschedulable indefinitely on first run.
Fix: Phase 2's GPU node pool was skipped, under-sized, or not yet
scaled when Phase 5 went live. Confirm real nvidia.com/gpu capacity
with kubectl get nodes -o json | jq '.items[].status.capacity["nvidia.com/gpu"]'
before assuming the pipeline definition is broken.
Symptom: A long-running batch training job on the Phase 2 training
pool evicts pods from a live serving deployment on what was assumed to
be a separate pool.
Fix: Node pool taints/tolerations from Phase 2 weren't actually
applied (or a node was relabeled without the matching taint), so
training and serving workloads are competing for the same physical GPU
nodes — re-verify kubectl describe node shows the expected taint on
every node in each pool, not just that the node pool was named
correctly.
Symptom: A model promoted through Phase 4's registry and deployed via Phase 7 has a real regression that goes unnoticed for weeks. Fix: Phase 8's monitoring was stood up after, not before, Phase 7's canary went live — identical sequencing risk to every managed-cloud skill in this family, but with no vendor-provided default dashboard to fall back on if the self-hosted monitoring job's cron schedule was never actually verified to be running.
Symptom: Months into operating this platform, the team is spending more engineering time on Postgres/MinIO/KServe upgrades and incident response than on actual ML work, and morale/velocity suffers. Fix: This is the operational-burden tradeoff this skill exists to flag honestly before commitment, not a problem to engineer around after the fact — if the team's actual capacity doesn't match what Phases 4, 7, and 8 require to run reliably, re-evaluate one of the managed-cloud alternatives in this skill family rather than continuing to absorb the cost of full self-hosting.
Scenario: A regulated healthcare analytics company must run its ML platform with no dependency on any cloud-managed ML service (data residency and audit requirements), on a Kubernetes cluster provisioned via kubeadm on their own hardware, to retrain and serve a readmission-risk model.
# Phase 1 — cluster confirmed HA, etcd snapshot schedule verified with a
# real test restore in a non-prod environment
# Phase 2 — GPU node pools
helm install gpu-operator nvidia/gpu-operator --namespace gpu-operator --create-namespace
kubectl taint nodes gpu-node-01 gpu-node-02 workload=training:NoSchedule
kubectl taint nodes gpu-node-03 workload=serving:NoSchedule
# Phase 3 — decision: Kubeflow Pipelines (team wants an inspectable,
# versioned pipeline graph over Ray's dynamic task model)
# Phase 4 — self-hosted MLflow, backed by in-cluster MinIO + Postgres,
# both with automated backups VERIFIED via a real test restore first
helm install minio bitnami/minio --namespace storage --create-namespace \
--set persistence.size=500Gi --set replicas=4
helm install postgres bitnami/postgresql --namespace mlflow --create-namespace \
--set primary.persistence.size=100Gi
helm install mlflow community-charts/mlflow --namespace mlflow \
--set backendStore.postgres.host=postgres.mlflow.svc.cluster.local \
--set artifactRoot=s3://mlflow-artifacts/
# Phase 5 — Kubeflow retrain pipeline, GPU-backed, logs to in-cluster MLflow
kfp_client.create_recurring_run(
job_name="readmission-weekly-retrain",
pipeline_package_path="readmission_pipeline.yaml",
cron_expression="0 3 * * 1",
)
# Phase 6 — skipped: single-model use case for now
# Phase 7 — KServe on the serving GPU pool, referencing the exact
# registered MLflow model version, Secret-based read-only MinIO credential
kubectl apply -f readmission-model-inferenceservice.yaml
# Phase 8 — self-hosted Evidently CronJob + Prometheus/Grafana, baseline
# frozen at first production request, confirmed running BEFORE canary
# ramps past 5%
Six weeks in, a node hosting the MinIO/Postgres pods fails unexpectedly. Because Phase 4's backup-and-restore procedure was verified with a real test restore before go-live (not just configured and assumed to work), on-call restores both the model registry and experiment history from the previous night's snapshot within 40 minutes, with no permanent loss of the currently-serving model's lineage — the exact scenario this skill's Common pitfalls section warns is otherwise catastrophic on a fully self-hosted platform with no managed-service durability guarantee behind it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/complete-mlops-platform-deployment-on-aws-from-scratchSequences a complete, end-to-end MLOps platform deployment on AWS from a bare AWS Organization to a production-ready platform serving a first retrained model — AWS landing zone, the SageMaker-vs-EKS+Kubeflow platform decision (EKS+Kubeflow is the worked path here), GPU node pools via the NVIDIA GPU Operator, MLflow experiment tracking on S3, a Kubeflow Pipelines retraining DAG, model registry/packaging with gated promotion, KServe canary/shadow serving, and drift monitoring. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on AWS from scratch," "build the full ML training-to-serving pipeline on EKS/SageMaker," "give me the end-to-end sequence from AWS account to a retrained, monitored production model," or "decide between SageMaker and EKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-azure-from-scratchSequences a complete, end-to-end MLOps platform deployment on Azure from a bare tenant to a production-ready platform serving a first retrained model — Azure landing zone, the Azure-ML-vs-AKS+Kubeflow platform decision (Azure ML is the worked path), GPU compute clusters/quota, MLflow-compatible experiment tracking, an Azure ML pipeline retraining DAG, Model Registry with gated promotion, managed online endpoints with traffic-split canary rollout, and data-drift monitoring. An integration/ orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on Azure from scratch," "build the full ML training-to-serving pipeline on Azure ML/AKS," "give me the end-to-end sequence from Azure tenant to a retrained, monitored production model," or "decide between Azure ML and AKS+Kubeflow for our ML platform."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin mlops-skillsOther plugins' skills for the same job