This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
58 lines (41 loc) · 1.84 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
VERSION := $(shell cat VERSION)
readme:
jupyter nbconvert README.ipynb --to markdown
make train_model: install_dev
(cd src && python train_model.py)
make test:
(cd src && \
pytest -s --verbose -W ignore --log-level=INFO 2>&1)
make install_dev:
pip install -r src/requirements.txt
# INTEGRATION TESTS
install_integration_dev:
pip install -r integration/requirements-dev.txt
test_integration:
(cd integration && \
pytest -s --verbose -W ignore --log-level=INFO 2>&1)
deploy_model:
helm install charts/seldon-model-server --namespace seldon --name seldon-model-server
kubectl rollout status -n seldon deploy/seldon-model-server-default-cbb4caa
delete_model:
helm delete seldon-model-server
helm del --purge seldon-model-server || echo "Model deleted"
install_helm:
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl rollout status deploy/tiller-deploy -n kube-system
install_ambassador:
helm install stable/ambassador -f integration/ambassador_values.yaml --name ambassador --set crds.keep=false --namespace seldon --set replicaCount=1
kubectl rollout status deployment.apps/ambassador --namespace seldon
install_seldon:
helm install seldon-core-operator --name seldon-core-operator --repo https://storage.googleapis.com/seldon-charts --namespace seldon
kubectl rollout status -n seldon deployment/seldon-controller-manager
create_namespaces:
kubectl create namespace seldon || echo "Namespace seldon already exists"
kubectl config set-context $$(kubectl config current-context) --namespace=seldon
kind_setup: install_helm install_ambassador install_seldon create_namespaces deploy_model
kind_create_cluster:
kind create cluster --config integration/kind_config.yaml
kind_delete_cluster:
kind delete cluster