-
Notifications
You must be signed in to change notification settings - Fork 0
/
kube.Taskfile.yaml
86 lines (74 loc) · 2.13 KB
/
kube.Taskfile.yaml
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
version: '3'
vars:
OPERATOR_CHART_FOLDER: helm
tasks:
develop:
desc: Start development process
cmds:
- task: start
- task: load-images
- task: install-triton
- task: install-operator-chart
stop-develop:
desc: Stop development process
cmds:
- task: delete-operator-chart
- task: delete-triton
- task: stop
start:
desc: Start minikube
cmds:
- minikube start --kubernetes-version=v1.29.0
load-images:
desc: Load application to minikube
cmds:
- minikube image load popovych-labs/model-deployment-operator:latest-dev
- minikube image load popovych-labs/model-deployment-operator/job/s3:latest-dev
stop:
desc: Stop minikube
cmds:
- minikube stop
install-operator-chart:
desc: Install helm chart
cmds:
- |
helm upgrade --install \
--values ./{{.OPERATOR_CHART_FOLDER}}/values.yaml \
--namespace model-deployment-operator --create-namespace \
model-deployment-operator ./{{.OPERATOR_CHART_FOLDER}} &> log.txt
render-operator-chart:
desc: Render helm chart
cmds:
- |
helm template triton ./{{.OPERATOR_CHART_FOLDER}} \
-n model-deployment-operator \
--values ./{{.OPERATOR_CHART_FOLDER}}/values.yaml
# --validate
delete-operator-chart:
desc: Render helm chart
cmds:
- |
helm delete model-deployment-operator -n model-deployment-operator
install-triton:
desc: Install helm chart
cmds:
- |
helm upgrade --install \
--values ./testing/triton-chart/values.yaml \
--values ./testing/triton-chart/triton-values.yaml \
--namespace triton --create-namespace \
triton ./testing/triton-chart
render-triton-template:
desc: Render helm chart
cmds:
- |
helm template triton ./testing/triton-chart \
-n triton \
--values ./testing/triton-chart/values.yaml \
--values ./testing/triton-chart/triton-values.yaml \
--validate
delete-triton:
desc: Delete helm release
cmds:
- |
helm delete triton -n triton