dvc init
dvc add data/raw/dataset.csv
dvc remote add -d s3-storage s3://mlops-bif
dvc remote modify s3-storage endpointurl https://b09595e7413d52541d55ebc0bf445b9c.r2.cloudflarestorage.com/mlops-bif
dvc remote modify --local s3-storage access_key_id 'YOUR_S3_KEY'
dvc remote modify --local s3-storage secret_access_key 'YOUR_S3_SECRET_KEY'
dvc pushFor each projects:
mise trustmise installuv pip install '.[dev]'Do it once, at the beginning of the project.
kubectl apply -k .kubectl get pods -n csgo3 | grep model-registrycat << 'EOF' | kubectl apply -f -
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: model-registry-allow
namespace: csgo3
spec:
selector:
matchLabels:
component: model-registry-server
action: ALLOW
rules:
- {}
EOFcat << 'EOF' | kubectl apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
name: model-registry-store
namespace: kubeflow
labels:
app: model-registry-store
data:
model-registry-service.csgo3: |
{
"displayName": "model-registry-service",
"description": "CS:GO model registry",
"apiAddress": "http://model-registry-service.csgo3.svc.cluster.local:8080",
"externalAPIAddress": "",
"modelRegistryNamespace": "csgo3"
}
EOFCreate a .env file in the root of the project from the .env.template file and fill in the values.
To generate the pipeline:
uv pip install '.[dev]'
uv run compileTo create a Kubernetes secret from the .env file:
kubectl create secret generic dvc-credentials -n csgo3 --from-env-file=.env