-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 1.08 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
.PHONY: cluster kind metallb
cluster: kind metallb
kind: conf/kind-config.yaml
kind create cluster --config conf/kind-config.yaml
metallb: kind
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/namespace.yaml
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/metallb.yaml
kubectl create -f conf/metallb-config.yaml
# metrics layer
.PHONY: metrics prometheus grafana
metrics: prometheus grafana
prometheus: helm-stable
helm install prometheus stable/prometheus
grafana: helm-grafana
helm install \
-f conf/grafana-values.yml \
--set sidecar.dashboards.enabled=true \
grafana grafana/grafana
# helm repos
.PHONY: helms-stable helm-grafana helm-bitnami
helm-stable:
helm repo add stable https://charts.helm.sh/stable
helm-grafana:
helm repo add grafana https://grafana.github.io/helm-charts
helm-bitnami:
helm repo add bitnami https://charts.bitnami.com/bitnami
.PHONY: clean
clean:
kind delete cluster