-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
77 lines (66 loc) · 2.39 KB
/
Copy pathTaskfile.yaml
File metadata and controls
77 lines (66 loc) · 2.39 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
version: '3'
# kx — top-level Taskfile
#
# Daily-driver entry points:
# task up create cluster + install core stack
# task down delete cluster
# task reset down + up
# task status nodes + pods + slice install status
# task stack:<slice>:enable install an opt-in slice
# task stack:<slice>:disable uninstall an opt-in slice
# task stack:all:enable install every opt-in slice (skips druid)
# task port-forward:argocd expose ArgoCD UI on localhost:30080
# task port-forward:grafana expose Grafana UI on localhost:30030 (after observability is enabled)
includes:
cluster:
taskfile: ./cluster/Taskfile.yaml
dir: ./cluster
stack:
taskfile: ./stack/Taskfile.yaml
dir: ./stack
tasks:
default:
cmds:
- task --list
up:
desc: Create cluster + install core stack
cmds:
- task: cluster:up
- task: stack:core
down:
desc: Delete the cluster
cmds:
- task: cluster:down
reset:
desc: Delete + recreate cluster, then reinstall core stack
cmds:
- task: cluster:reset
- task: stack:core
status:
desc: Cluster + stack status
cmds:
- task: cluster:status
- task: stack:status
port-forward:argocd:
desc: ArgoCD UI on http://localhost:30080
cmds:
- kubectl -n argocd port-forward svc/argocd-server 30080:443
port-forward:grafana:
desc: Grafana UI on http://localhost:30030 (requires observability slice)
cmds:
- kubectl -n monitoring port-forward svc/kube-prometheus-stack-grafana 30030:80
# A tenant's model gateway is a Service in that tenant's own namespace, not a
# shared one — envoy-gateway runs in GatewayNamespace mode, so there is no
# single address to forward. Name the Platform to reach its gateway:
# task port-forward:model-gateway PLATFORM=slack-knowledge-bot
port-forward:model-gateway:
desc: A Platform's model gateway on http://localhost:8080 (PLATFORM=<name>, requires ai-platform slice)
cmds:
- kubectl -n tenants-{{.PLATFORM}} port-forward svc/{{.PLATFORM}}-gateway 8080:8080
requires:
vars: [PLATFORM]
argocd:initial-password:
desc: Print the ArgoCD admin password
cmds:
- kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d
- echo