-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
87 lines (65 loc) · 2.75 KB
/
Copy pathMakefile
File metadata and controls
87 lines (65 loc) · 2.75 KB
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
84
85
86
87
all-seldon: build-seldon start-seldon load-seldon install-kubeflow helm-seldon
all-tfserve: build-tfserve start-tfserve load-tfserve install-kubeflow
start-seldon:
minikube start --driver=docker --kubernetes-version=v1.21.6
start-tfserve:
minikube start
install-kubeflow:
export PIPELINE_VERSION=1.8.2
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$$PIPELINE_VERSION"
kubectl wait --for condition=established --timeout=60s crd/applications.app.k8s.io
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/env/platform-agnostic-pns?ref=$$PIPELINE_VERSION"
port-emissary:
kubectl port-forward svc/emissary-ingress -n emissary 8080:80
port-kubeflow:
kubectl port-forward svc/ml-pipeline-ui -n kubeflow 8081:80
port:
kubectl port-forward svc/ambassador -n ambassador 8080:80
port-admin:
kubectl port-forward svc/ambassador-admin -n ambassador 8877:8877
helm-seldon:
helmfile --file helmfile-seldon.yaml sync
helm-tfserve:
helmfile --file helmfile-tfserve.yaml sync
delete:
minikube delete --all
deploy-seldon:
kubectl create ns seldon
kubectl apply -f ./seldon
deploy-tensorflow:
kubectl apply -f ./tensorflow
build-tfserve:
docker pull tensorflow/serving
docker tag tensorflow/serving tfserve:minikube
docker build -t trainmodel:minikube --build-arg CONFIG="KUBERNETES" --file Dockerfile.train .
docker build -t streamlit:minikube --build-arg CONFIG="TENSORFLOW" --file Dockerfile.streamlit .
load-tfserve:
minikube image load tfserve:minikube
minikube image load trainmodel:minikube
minikube image load streamlit:minikube
load-seldon:
minikube image load dogbreed:minikube
minikube image load trainmodel:minikube
minikube image load streamlit:minikube
build-seldon:
docker build -t dogbreed:minikube .
docker build -t trainmodel:minikube --build-arg CONFIG="KUBERNETES" --file Dockerfile.train .
docker build -t streamlit:minikube --file Dockerfile.streamlit .
compose-seldon:
docker compose -f docker-compose-seldon.yaml up --build
compose-tfserve:
docker compose -f docker-compose-tfserve.yaml up --build
local-train:
python3 train_model.py
run:
python3 kubeflow_pipeline.py
requirements:
pip install -r requirements.txt
install-emissary:
helm repo add datawire https://app.getambassador.io
helm repo update
kubectl create namespace emissary && \
kubectl apply -f https://app.getambassador.io/yaml/emissary/3.1.0/emissary-crds.yaml
kubectl wait --timeout=90s --for=condition=available deployment emissary-apiext -n emissary-system
helm install emissary-ingress --namespace emissary datawire/emissary-ingress --values=./charts/emissary/values.emissary.local.yaml && \
kubectl -n emissary wait --for condition=available --timeout=90s deploy -lapp.kubernetes.io/instance=emissary-ingress