Tutorials Overview
Learn how to deploy a simple MLOps infrastructure using deployml.
Quick Start
Once all dependencies are installed, there are six primary steps to using deployml:
- Create a project in GCP (unless you are deploying everything locally with minikube).
- Initialize a project with
deployml init. This will enable the necessary APIs in your GCP project. You can check that APIs are enabled by runningdoctor. - Generate and edit a configuration yaml file. Use
deployml generateto create the file and then open in a text editor to edit it. - Deploy your infrastructure using
deployml deploy. - Develop, deploy, and maintain your ML model. See example tutorials below for more guidance on this step.
- Destroy the infrastructure using
deployml destroy.
# Initialize GCP project
deployml init --provider gcp --project-id YOUR_PROJECT_ID
# Check APIs
deployml doctor --project-id YOUR_PROJECT_ID
# Generate a sample config
deployml generate
# Deploy your stack
deployml deploy --config-path your-config.yaml
Deployment Options
Cloud Run (Serverless)
This infrastructure will be deployed in the cloud using a serverless architecture.
- Automatic scaling
- Pay per use
- No infrastructure management
- Get Started →
GKE (Kubernetes)
This infrastructure will be deployed in the cloud, with some components running in Kubernetes rather than serverless.
- Production-ready
- Full control
- Custom configurations
- Get Started →
Cloud VM
This infrastructure is launched entirely within a VM in the cloud.
- Persistent storage
- Full control
- Cost-effective for long-running services
- Get Started →
Minikube (Local)
This infrastructure is limited to deploying MLFlow and FastAPI locally using minikube, and is only useful for practicing with Kubernetes locally before going to the cloud. This option is not for deploying a full pipeline, and still requires knowledge of minikube and kubectl commands.
- Local testing
- No cloud costs
- Fast iteration
- Get Started →