-
Notifications
You must be signed in to change notification settings - Fork 79
/
Makefile
51 lines (35 loc) · 1.29 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
RELEASE_NAME := my-release
NAMESPACE := platform # k8s namespace for installing the chart
delete-namespace:
kubectl delete namespace $(NAMESPACE)
add-repository:
helm repo add --force-update signoz https://charts.signoz.io
update-repository:
helm repo update
dependency-update:
helm dependency update charts/signoz
setup: add-repository update-repository
local-setup: dependency-update
# print resulting manifests to console without applying them
debug:
helm install --dry-run --debug $(RELEASE_NAME) signoz/signoz
# install the chart to configured namespace
install: setup
helm upgrade -i $(RELEASE_NAME) -n $(NAMESPACE) --create-namespace signoz/signoz
# uninstall the chart and resources from configured namespace
uninstall:
helm uninstall -n $(NAMESPACE) $(RELEASE_NAME)
# delete all resources from configured namespace
delete: uninstall
kubectl delete all,pvc,cm --all -n $(NAMESPACE)
upgrade: create-namespace
helm upgrade $(RELEASE_NAME) -n $(NAMESPACE) --create-namespace
list:
kubectl get all -n $(NAMESPACE)
list-all:
kubectl get all,pvc,cm -n $(NAMESPACE)
# install the local development chart to configured namespace
dev-install: local-setup
helm upgrade -i $(RELEASE_NAME) -n $(NAMESPACE) --create-namespace charts/signoz
re-install: delete install
purge: delete delete-namespace