-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
executable file
·72 lines (63 loc) · 1.81 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: 3
# Global Properties
silent: true
dotenv:
- .env
includes:
ingress:
taskfile: ./ingress/tasks.yml
dir: ./ingress
gitops:
taskfile: ./gitops/tasks.yml
dir: ./gitops
observability:
taskfile: ./observability/tasks.yml
dir: ./observability
security:
taskfile: ./security/tasks.yml
dir: ./security
control-plane:
taskfile: ./control-plane/tasks.yml
dir: ./control-plane
serverless:
taskfile: ./serverless/tasks.yml
dir: ./serverless
gateway:
taskfile: ./gateway/tasks.yml
dir: ./gateway
discovery:
taskfile: ./discovery/tasks.yml
dir: ./discovery
tasks:
default:
desc: List Tasks.
cmd: task -l
cluster-kind-deploy:
desc: Create kubernetes cluster with Kind.
cmds:
- kind delete cluster --name kubernetes-stack || true
- kind create cluster --config kind.yml
- kubectl cluster-info --context kind-kubernetes-stack || exit 1
preconditions:
- sh: test -f kind.yml
msg: Kind's manisfest not provided
cluster-kind-undeploy:
desc: Delete Kind kubernetes cluster.
cmd: kind delete cluster --name kubernetes-stack
pre-commit-install:
desc: Install pre-commit
cmd: pre-commit install
platform-install:
desc: Install all the components required for the kubernetes platform.
deps:
- task: ingress:nginx-install
- task: gateway:nginx-install
- task: security:cert-manager-install
cmd: kubectl apply -f security/cert-manager/issuers/self.clusterissuer.yml
platform-install-with-gitops-mode:
desc: Install all the components required for the kubernetes platform, with GitOps Mode.
deps:
- task: gitops:argocd-install
cmds:
- kubectl apply -f gitops/argocd/platform/project.yml
- kubectl apply -f gitops/argocd/platform/apps.yml