-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
83 lines (71 loc) · 3.75 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
env:
echo "---- Creating Conda Env ----"
conda env create -f platform/infra/conda/environment.yaml
delete-env:
echo "---- Deleting Conda Env ----"
conda env delete --name realtime-mlops
delete:
echo "---- Deleting Kind Cluster ----"
kind delete cluster --name realtime-mlops
cluster:
echo "---- Installing Kind Cluster ----"
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl fs.inotify.max_user_instances=512
kind create cluster --name realtime-mlops --config platform/infra/kind/kind.yaml
kubectl wait deployment -n kube-system coredns --for condition=Available=True --timeout=180s
connect:
echo "---- Installing Telepresence ----"
telepresence helm install
telepresence connect
feature-store:
echo "---- Installing Feature Store ----"
kubectl kustomize --enable-helm platform/feature-store/ | kubectl apply -n feast -f -
kubectl rollout status -n feast --watch --timeout=180s statefulsets/online-store-redis-master
kubectl rollout status -n feast --watch --timeout=180s statefulsets/offline-store-postgresql
kubectl wait deployment -n feast feature-store-feast-feature-server --for condition=Available=True --timeout=180s
echo "---- Loading Data into offline Store ----"
python scripts/fill_offlinestore.py
echo "---- Creating Feature Store tables ----"
(cd platform/feature-store/feature_store/feature_repo ;feast apply)
kubectl rollout restart deployment/feature-store-feast-feature-server -n feast
streaming-system:
echo "---- Installing Streaming System ----"
kubectl kustomize platform/streaming-system/ | kubectl create -f -
kubectl wait deployment -n strimzi strimzi-cluster-operator --for condition=Available=True --timeout=180s
kubectl create -f platform/streaming-system/strimzi/cluster.yaml
sleep 5s
kubectl wait pods -n kafka -l strimzi.io/name=streaming-system-zookeeper --for condition=Ready --timeout=180s
sleep 5s
kubectl wait pods -n kafka -l strimzi.io/name=streaming-system-kafka --for condition=Ready --timeout=180s
sleep 5s
kubectl wait deployment -n kafka streaming-system-entity-operator --for condition=Available=True --timeout=180s
kubectl apply -f demonstration/realtime-feature-engineering/data-service/deployment
kubectl wait deployment data-service --for condition=Available=True --timeout=180s
kubectl apply -f demonstration/realtime-feature-engineering/data-pipeline/deployment
training:
echo "---- Installing Training Components ----"
kubectl kustomize --enable-helm platform/training | kubectl create -f -
kubectl rollout status -n mlflow --watch --timeout=180s statefulsets/postgres-postgresql
kubectl wait deployment -n mlflow mlflow-minio --for condition=Available=True --timeout=180s
kubectl wait deployment -n mlflow mlflow --for condition=Available=True --timeout=180s
echo "---- Train a basic model ----"
python scripts/train_basic.py
inference:
echo "---- Installing Inference Components ----"
kubectl kustomize platform/inference/ | kubectl create -f -
kubectl wait deployment -n kserve kserve-controller-manager --for condition=Available=True --timeout=300s
kubectl apply -f demonstration/online-inference/deployment
sleep 5
kubectl apply -f demonstration/realtime-monitoring/deployment
sleep 5
kubectl wait deployment bitcoin-forecast-predictor-default-00001-deployment --for condition=Available=True --timeout=600s
online-learning:
echo "---- Installing ML Pipeline Components ----"
kubectl apply -f demonstration/continual-learning/trigger/deployment
kubectl apply -f demonstration/continual-learning/tasks
kubectl apply -f demonstration/continual-learning/pipelines
kubectl apply -f demonstration/continual-learning/eventlistener
webapp:
kubectl apply -f demonstration/webapp/deployment
install:
make cluster connect feature-store streaming-system training inference online-learning webapp