/
Makefile
102 lines (75 loc) · 2.53 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.ONESHELL:
SHELL := /bin/bash
### Without istio
create-namespace:
kubectl apply -f tools/namespaces
delete-namespace:
kubectl delete tools/namespaces -f .
install-local: create-namespace install-strimzi
install-flux-dry-run:
cd tools
helm init --client-only
helm repo add fluxcd https://fluxcd.github.io/flux
helm repo update
kubectl apply --dry-run -f rbac-flux.yaml
kubectl apply --dry-run -f flux.yaml
install-flux:
cd tools
helm init --client-only
helm repo add fluxcd https://fluxcd.github.io/flux
helm repo update
kubectl apply -f rbac-flux.yaml
kubectl apply -f flux.yaml
delete-flux:
cd tools
kubectl delete -f flux.yaml
kubectl delete -f rbac-flux.yaml
install: create-namespace install-flux install-strimzi
install-dry-run: install-flux-dry-run
delete: delete-strimzi delete-flux delete-namespace
install-strimzi:
helm repo add strimzi https://strimzi.io/charts/
helm repo update
kubectl apply -f tools/strimzi.yaml
delete-strimzi:
kubectl delete -f tools/strimzi.yaml
### With Istio
create-namespace-istio:
kubectl apply tools-istio/namespaces -f .
delete-namespace-istio:
kubectl delete tools-istio/namespaces -f .
install-local-istio:
create-namespace-istio
kubectl apply tools-istio/secrets -f .
kubectl apply -f tools-istio/external-dns.yaml
install-flux-dry-run-istio:
helm init --client-only
helm repo add fluxcd https://fluxcd.github.io/flux
helm repo update
kubectl apply --dry-run -f tools-istio/rbac-flux.yaml
kubectl apply --dry-run -f tools-istio/flux.yaml
install-flux-istio:
helm init --client-only
helm repo add fluxcd https://fluxcd.github.io/flux
helm repo update
kubectl apply -f tools-istio/rbac-flux.yaml
kubectl apply -f tools-istio/flux.yaml
delete-flux-istio:
kubectl delete -f tools-istio/flux.yaml
kubectl delete -f tools-istio/rbac-flux.yaml
install-external-dns:
kubectl apply -f tools-istio/secrets/secret-external-dns.yaml
kubectl apply -f tools-istio/external-dns.yaml
delete-external-dns:
kubectl delete -f tools-istio/secrets/secret-external-dns.yaml
kubectl delete -f tools-istio/external-dns.yaml
install-strimzi-istio:
helm repo add strimzi https://strimzi.io/charts/
helm repo update
kubectl apply -f tools-istio/strimzi.yaml
delete-strimzi-istio:
kubectl delete -f tools-istio/strimzi.yaml
install-istio: create-namespace-istio install-flux-istio install-strimzi-istio install-external-dns
install-dry-run-istio: install-flux-dry-run-istio
delete-istio: delete-flux-istio delete-external-dns delete-strimzi-istio delete-namespace-istio
.PHONY: install install-dry-run