-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
64 lines (46 loc) · 1.43 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
build-sample-app:
docker build sampleapp -t pnyak/grafana-loki-test
push-sample-app: build-sample-app
docker push pnyak/grafana-loki-test
deploy-sample-app:
kubectl apply -f manifests/sample-app.yaml
delete-sample-app:
kubectl delete -f manifests/sample-app.yaml
deploy-logging-app:
kubectl apply -f manifests/logging-app.yaml
delete-logging-app:
kubectl delete -f manifests/logging-app.yaml
deploy-loki:
kubectl apply -f manifests/loki.yaml
delete-loki:
kubectl delete -f manifests/loki.yaml
deploy-promtail:
kubectl apply -f manifests/promtail.yaml
delete-promtail:
kubectl delete -f manifests/promtail.yaml
deploy-grafana:
kubectl apply -f manifests/grafana.yaml
delete-grafana:
kubectl delete -f manifests/grafana.yaml
deploy-prom:
kubectl apply -f manifests/prometheus.yaml
delete-prom:
kubectl delete -f manifests/prometheus.yaml
port-forward-prom:
kubectl --namespace kube-system port-forward $$(kubectl get pods --namespace kube-system -l "app=prometheus,group=prometheus" -o jsonpath="{.items[0].metadata.name}") 9090
deploy-all-loki: deploy-loki deploy-promtail deploy-grafana deploy-prom
delete-all-loki: delete-grafana delete-promtail delete-loki delete-prom
.PHONY: build-sample-app \
push-sample-app \
deploy-sample-app \
delete-sample-app \
deploy-logging-app \
delete-logging-app \
deploy-loki \
delete-loki \
deploy-promtail \
delete-promtail \
deploy-grafana \
delete-grafana \
deploy-all-loki \
delete-all-loki