-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yaml
41 lines (37 loc) · 955 Bytes
/
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
---
version: "3"
vars:
dir: '{{.dir | default .USER_WORKING_DIR}}'
app: '{{.app | default (base .dir)}}'
namespace: '{{.namespace | default (base .dir)}}'
ts: '{{now | date "150405"}}'
includes:
a: .taskfiles/ansible
k: .taskfiles/k8s
t: .taskfiles/terraform
m: .taskfiles/misc
r: .taskfiles/restic
v: .taskfiles/volumes
ac: .taskfiles/argocd
pg: .taskfiles/postgres
tasks:
default:
silent: true
cmds: ["task -l"]
bootstrap:
desc: Bootstrap the K3s cluster
silent: true
cmds:
- task: a:deps
- task: a:k3s
- task: k:create-namespace
vars:
namespace: argocd
- task: k:apply
vars:
dir: k8s/bootstrap/argocd
- kubectl -n argocd wait --timeout=60s --for condition=Established crd/applications.argoproj.io crd/applicationsets.argoproj.io
- task: k:apply
vars:
dir: k8s/bootstrap/app-of-apps
namespace: argocd