-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
50 lines (41 loc) · 986 Bytes
/
Taskfile.yml
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
## # Description: Taskfile for k3d cluster
version: "3"
env:
CLUSTER_NAME: kubepal
tasks:
###### Main Task ######
deploy:
desc: Deploy workflows
cmds:
- task: argo
- task: ui
###### Tasks ######
# K3d
create:
desc: Create a k3d cluster.
cmds:
- source ./kubernetes/cluster/scripts/k3d.sh && create
silent: true
delete:
desc: Delete the k3d cluster.
cmds:
- source ./kubernetes/cluster/scripts/k3d.sh && delete
# Argo Workflows
argo:
desc: Install Argo in the k3d cluster
dir: ./kubernetes/cluster/scripts/
cmds:
- task: create # Create a k3d cluster if not exists
- source ./argo_workflows.sh && argo_install
silent: true
ui: # Open Argo UI
desc: Get Argo and Minio UI
dir: ./kubernetes/cluster/scripts/
cmds:
- source ./argo_workflows.sh && argo_ui
silent: true
# Nix
clean:
desc: Clean up nix packages
cmds:
- nix-collect-garbage