-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtaskfile.yaml
More file actions
87 lines (70 loc) · 2.44 KB
/
taskfile.yaml
File metadata and controls
87 lines (70 loc) · 2.44 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
version: "3"
description: Main Taskfile for managing the otel-audit-log-poc project. This file references other Taskfiles for specific functionalities.
# set your OPENSEARCH_INITIAL_ADMIN_PASSWORD in .env file
dotenv: [".env", "{{.HOME}}/.env"]
includes:
tools:
desc: Install required tools (k3d, kubectl, kind).
taskfile: ./tasks/tools.yaml
garden:
desc: Gardener tasks.
taskfile: ./tasks/garden.yaml
cluster:
desc: Create cluster resources (Namespaces, Role‑Based Access Control - RBAC) for all tiers.
taskfile: ./tasks/cluster.yaml
otelcol-agent:
desc: Deploy and manage the OTel Collector agent setup with local filesystem-based persistence.
taskfile: ./tasks/otelcol-agent.yaml
monitoring:
desc: Install and manage Prometheus and Grafana monitoring stack with authentication.
taskfile: ./tasks/monitoring.yaml
helm:
desc: Helm tasks.
taskfile: ./tasks/helm.yaml
ocm:
desc: OCM tasks.
taskfile: ./tasks/ocm.yaml
flux:
desc: Flux GitOps tasks for tier-1 and tier-2.
taskfile: ./tasks/flux.yaml
dice:
desc: Install and manage the sample application (dice-java).
taskfile: ./tasks/tier-1.yaml
secrets:
desc: Apply workload secrets from kubectl/secrets.env.
taskfile: ./tasks/secrets.yaml
tasks:
default:
desc: Create and start local kubernetes cluster and install otel-demo.
ignore_error: true
cmds:
- task: garden:set-kubeconfig
- task -a
show-env:
desc: Show loaded environment variables from .env files.
cmds:
- cat {{ .ROOT_DIR }}/.env && echo ""
deploy:
desc: Install the complete setup, monitoring stack (tier-3), OTel Collector agent (tier-2) and some client applications (tier-1).
cmds:
- task: garden:set-kubeconfig
- task: cluster:install
- task: secrets:apply
- task: monitoring:install
- task: otelcol-agent:install
- task: dice:install
deploy-gitops:
desc: Install setup and let Flux reconcile tier-1 and tier-2 from git.
cmds:
- task: garden:set-kubeconfig
- task: cluster:install
- task: secrets:apply
- task: monitoring:install
- task: flux:install
clean:
desc: Uninstall the complete setup, client applications (tier-1), OTel Collector agent (tier-2) and monitoring stack (tier-3)
deps:
- task: dice:uninstall
- task: otelcol-agent:uninstall
- task: monitoring:uninstall
- task: cluster:uninstall