/mlops-skills:complete-mlops-platform-deployment-on-gcp-from-scratchfrom mlops-skills
Sequences end-to-end MLOps platform deployment on GCP from bare org to production model: landing zone, Vertex AI vs GKE+Kubeflow decision, GPU quota, custom training, experiments, pipelines, model registry, canary rollout, and drift monitoring. Orchestrates existing skills in correct order.
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.
An MLOps platform on GCP is a chain of dependent phases — organization guardrails, a compute platform, GPU accelerator quota, experiment tracking, pipeline orchestration, a model registry, a serving layer, and drift monitoring — each of which assumes the previous phase exists in a working state before it can function correctly. Get the sequence wrong and the failure surfaces in the wrong place: a Vertex AI custom training job authored before GPU accelerator quota is approved queues indefinitely with a message easy to mistake for a code bug, or a model deployed to a Vertex endpoint before monitoring is configured means a regression is invisible until someone notices degraded outcomes. Every individual piece is covered in depth by an existing skill; this skill is the GCP-specific sequencing across all of them, worked through the managed Vertex AI platform end to end, with the self-managed GKE+Kubeflow alternative noted briefly at the point where the choice actually diverges.
gcloud ≥ 470.0.0 with the aiplatform component, and Terraform ≥ 1.5
with the google/google-beta providers ≥ 5.x if managing Vertex AI
resources as IaC.NVIDIA_A100_80GB or NVIDIA_TESLA_T4) for
the specific region requested and approved before the training
pipeline phase — GCP accelerator quota is granted per region per
project, and a request filed late is one of the most common causes of a
stalled first training run.roles/aiplatform.user, and configure Workload Identity Federation if
the GKE+Kubeflow alternative is chosen instead.This is the phase sequence. Each phase links to the skill that covers its full depth; the text here covers only GCP-specific sequencing and integration decisions between phases.
Phase 1 — GCP landing zone. Confirm (or stand up) the folder
hierarchy, Organization Policy constraints, Shared VPC, and aggregated
log sink per
gcp-landing-zone-setup.
Specifically confirm iam.disableServiceAccountKeyCreation is enforced
at the Organization node — this platform's every service-to-service
call (Vertex AI to Cloud Storage, a training job to BigQuery) should
use attached service accounts or Workload Identity Federation from the
start, never a downloaded service account key, consistent with that
policy rather than working around it later.
Phase 2 — platform decision: Vertex AI (worked path) vs. GKE+Kubeflow. Pick one deliberately:
Phase 3 — Vertex AI setup and GPU-backed custom training. Enable
the aiplatform API, create the service account Vertex AI jobs will
run as, and confirm accelerator quota with a real (not just requested)
training job before building the pipeline around it:
gcloud services enable aiplatform.googleapis.com --project=prj-ml-platform-prod
gcloud iam service-accounts create vertex-training-sa \
--project=prj-ml-platform-prod
gcloud ai custom-jobs create \
--region=us-central1 --display-name=quota-check \
--worker-pool-spec=machine-type=a2-highgpu-1g,accelerator-type=NVIDIA_TESLA_A100,accelerator-count=1,replica-count=1,container-image-uri=<IMAGE>
A CustomJob submitted against unapproved or wrong-region accelerator
quota fails at run time with a resource-exhaustion message, not at
service-enablement time — confirm this succeeds before Phase 6
builds a pipeline around it. (GKE+Kubeflow alternative: provision GPU
node pools via
gpu-accelerator-infrastructure-for-ml-training
instead of a Vertex CustomJob worker pool.)
Phase 4 — experiment tracking. Use Vertex AI Experiments, applying the logging discipline from experiment-tracking, rather than standing up a separate MLflow server:
from google.cloud import aiplatform
aiplatform.init(project="prj-ml-platform-prod", location="us-central1",
experiment="fraud-scorer")
with aiplatform.start_run(run="run-8841"):
aiplatform.log_params({"max_depth": 6, "learning_rate": 0.05})
aiplatform.log_metrics({"auc": 0.912})
Wire this before the Phase 3 quota-check job or any real training run executes — runs that ran before tracking existed have no recoverable lineage.
Phase 5 — feature store (if needed). For use cases needing point-in-time-correct, reusable features, use Vertex AI Feature Store (or a self-managed Feast deployment against BigQuery/Bigtable) per feature-store-design. Optional — skip for a single model with no feature-reuse need.
Phase 6 — training pipeline orchestration. Author the retraining DAG with Vertex AI Pipelines (KFP SDK compiled and submitted to the Vertex AI Pipelines backend), applying the vendor-neutral gate/ reproducibility principles from training-pipeline-orchestration and the KFP authoring patterns from kubeflow-ml-pipeline-orchestration (Vertex AI Pipelines uses the same KFP SDK, targeting a different backend):
from kfp import dsl, compiler
from google.cloud import aiplatform
@dsl.pipeline(name="fraud-model-retraining")
def fraud_retraining_pipeline(raw_data_uri: str, min_accuracy: float = 0.90):
train_task = train(processed=..., epochs=20)
train_task.set_accelerator_type("NVIDIA_TESLA_A100").set_accelerator_limit(1)
...
compiler.Compiler().compile(fraud_retraining_pipeline, package_path="pipeline.yaml")
job = aiplatform.PipelineJob(
display_name="fraud-weekly-retrain", template_path="pipeline.yaml",
parameter_values={"raw_data_uri": "gs://ml-platform-data/fraud/latest/"},
)
job.submit(service_account="[email protected]")
Confirm the pipeline's accelerator type string matches exactly what
Phase 3 validated quota for — a mismatched accelerator string (a
common copy-paste error between NVIDIA_TESLA_A100 and
NVIDIA_A100_80GB-style names across GCP documentation versions) fails
the job with a resource error that looks identical to a genuine quota
shortfall.
Phase 7 — model registry and packaging. Register the pipeline's output model to the Vertex AI Model Registry, applying the promotion- gate discipline from model-packaging-and-versioning:
gcloud ai models upload --region=us-central1 \
--display-name=fraud-scorer --version-aliases=default \
--artifact-uri=gs://ml-platform-data/models/fraud-scorer/run-8841/ \
--container-image-uri=<SERVING_CONTAINER_IMAGE>
Never deploy an endpoint against a raw GCS artifact path directly — always deploy referencing the registered model resource, so Phase 8's endpoint stays traceable back to this registry entry.
Phase 8 — serving and scaling. Deploy the Phase 7 registered model to a Vertex AI endpoint with a traffic split, applying the canary rollout discipline from model-serving-and-scaling:
gcloud ai endpoints deploy-model <ENDPOINT_ID> \
--region=us-central1 --model=<MODEL_ID> \
--display-name=fraud-scorer-v14 --machine-type=n1-standard-4 \
--accelerator=type=NVIDIA_TESLA_T4,count=1 \
--traffic-split=0=5,<EXISTING_DEPLOYED_MODEL_ID>=95
Do not shift the traffic split past this initial 5% until Phase 9's
monitoring is confirmed collecting data. (GKE+Kubeflow alternative:
KServe InferenceService per
model-serving-and-scaling.)
Phase 9 — monitoring and drift detection. Enable Vertex AI Model Monitoring on the endpoint (or a self-managed Evidently job reading logged prediction requests from BigQuery), applying the reference- baseline and alerting discipline from model-monitoring-and-drift-detection, with the baseline frozen against the training dataset's feature distribution from Phase 6, not a post-cutover rolling window.
CustomJob before Phase 6's full pipeline is
built around that accelerator type and region.Symptom: A Vertex AI CustomJob in Phase 3 fails immediately with a
resource-exhaustion error even though the team believes GPU quota was
requested.
Fix: GCP accelerator quota is granted per region per project — a
quota increase approved for us-east1 does nothing for a job submitted
in us-central1. Confirm quota with gcloud compute regions describe
for the exact region the job targets, not just that a quota request was
approved somewhere.
Symptom: A training pipeline's GPU-requesting step in Phase 6 fails
with a resource error that looks identical to a quota shortfall, but
quota was already confirmed available in Phase 3.
Fix: The pipeline's accelerator type string doesn't exactly match
the string quota was validated against (e.g. NVIDIA_TESLA_A100 vs. a
differently-formatted accelerator name copied from an older doc
example) — accelerator type strings are exact-match; verify the
pipeline's literal string against the Phase 3 quota-check job's, not
just that "an A100" was requested in both.
Symptom: Experiment tracking or model registry writes to Cloud Storage that worked fine during initial development suddenly start failing with access-denied errors after a security team change. Fix: A VPC Service Controls perimeter was tightened around the project (or a sibling data project) after Phases 4/7 were already writing to buckets that hadn't been deliberately included inside or excluded from that perimeter. Decide the perimeter boundary explicitly during Phase 1 landing-zone design, including the ML platform's buckets by name, rather than discovering the boundary reactively.
Symptom: A model deployed to a Vertex AI endpoint in Phase 8 can't
be traced back to which pipeline run produced it during an incident
investigation.
Fix: The endpoint was deployed against a raw GCS artifact path
instead of the Phase 7 registered model resource — always register
first (gcloud ai models upload), then deploy referencing the
resulting model ID, so the endpoint-to-lineage chain stays intact.
Symptom: A team that started on the GKE+Kubeflow alternative switches to the Vertex AI worked path partway through the build-out, and pipeline components still reference GKE-specific Workload Identity Federation bindings that have no equivalent in Vertex AI's attached-service-account model. Fix: Treat the Phase 2 platform decision as effectively irreversible without a full re-plan of Phases 3–9's identity and storage wiring for the newly-chosen platform.
Scenario: A media company stands up an MLOps platform on GCP from a freshly-governed Organization, choosing the managed Vertex AI path over GKE+Kubeflow to minimize infrastructure ownership, to retrain and serve a content-recommendation ranking model.
# Phase 1 — confirm landing zone: project "prj-streaming-ml-prod" sits in
# fldr-production; iam.disableServiceAccountKeyCreation enforced org-wide
# Phase 2 — decision: Vertex AI (worked path), documented once
# Phase 3 — enable API, service account, quota-check job
gcloud services enable aiplatform.googleapis.com --project=prj-streaming-ml-prod
gcloud iam service-accounts create vertex-training-sa --project=prj-streaming-ml-prod
gcloud ai custom-jobs create --region=us-central1 --display-name=quota-check \
--worker-pool-spec=machine-type=a2-highgpu-1g,accelerator-type=NVIDIA_TESLA_A100,accelerator-count=1,replica-count=1,container-image-uri=gcr.io/prj-streaming-ml-prod/quota-check:1.0
# Phase 4 — Vertex AI Experiments tracking, wired before any real training
aiplatform.init(project="prj-streaming-ml-prod", location="us-central1", experiment="ranking-model")
# Phase 5 — skipped: no shared feature reuse need yet
# Phase 6 — Vertex AI Pipelines retrain DAG, GPU-backed training step
job = aiplatform.PipelineJob(display_name="ranking-weekly-retrain",
template_path="ranking_pipeline.yaml",
parameter_values={"raw_data_uri": "gs://streaming-ml-data/ranking/latest/"})
job.submit(service_account="[email protected]")
# Phase 7 — register the winning run's model
gcloud ai models upload --region=us-central1 --display-name=ranking-model \
--artifact-uri=gs://streaming-ml-data/models/ranking-model/run-214/ \
--container-image-uri=gcr.io/prj-streaming-ml-prod/ranking-serve:2.0
# Phase 8 — endpoint, 5% traffic split
gcloud ai endpoints deploy-model ENDPOINT_ID --region=us-central1 --model=MODEL_ID \
--display-name=ranking-model-v9 --machine-type=n1-standard-4 \
--accelerator=type=NVIDIA_TESLA_T4,count=1 --traffic-split=0=5,PREV_MODEL_ID=95
# Phase 9 — Vertex AI Model Monitoring, baseline frozen at v9's first
# production request, confirmed collecting data BEFORE ramping past 5%
The Phase 9 monitoring job confirms stable drift metrics over 48 hours at 5% traffic; the team ramps to 100% and keeps the previous model version deployed at a minimal instance count for a two-week rollback window, mirroring the soak-period discipline in model-serving-and-scaling.
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