-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (48 loc) · 1.58 KB
/
Makefile
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
.PHONY: build
build:
go mod tidy
.PHONY: cluster-preview
cluster-preview:
cd stacks/cluster && pulumi stack select "cluster" -c && pulumi preview
.PHONY: cluster-up
cluster-up:
cd stacks/cluster && pulumi stack select "cluster" -c && pulumi up
.PHONY: cluster-down
cluster-down:
cd stacks/cluster && pulumi stack select "cluster" -c && pulumi destroy -y
.PHONY: mesh-preview
mesh-preview:
cd stacks/mesh && pulumi stack select "mesh" -c && pulumi preview
.PHONY: mesh-up
mesh-up:
cd stacks/mesh && pulumi stack select "mesh" -c && pulumi up
.PHONY: mesh-down
mesh-down:
cd stacks/mesh && pulumi stack select "mesh" -c && pulumi destroy -y
.PHONY: apps-preview
apps-preview:
cd stacks/applications && pulumi stack select "applications" -c && pulumi preview
.PHONY: apps-up
apps-up:
cd stacks/applications && pulumi stack select "applications" -c && pulumi up
.PHONY: apps-down
apps-down:
cd stacks/applications && pulumi stack select "applications" -c && pulumi destroy -y
.PHONY: monitoring-preview
monitoring-preview:
cd stacks/monitoring && pulumi stack select "monitoring" -c && pulumi preview
.PHONY: monitoring-up
monitoring-up:
cd stacks/monitoring && pulumi stack select "monitoring" -c && pulumi up
.PHONY: monitoring-down
monitoring-down:
cd stacks/monitoring && pulumi stack select "monitoring" -c && pulumi destroy -y
.PHONY: load-config
load-config:
cd stacks/cluster && pulumi stack output kubeconfig --show-secrets > $$HOME/.kube/config
.PHONY: grafana
grafana:
kubectl port-forward -n monitoring svc/grafana 3000:3000
.PHONY: nuke
nuke:
./kubernetes/resources/nuke.sh