-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (48 loc) · 1.6 KB
/
Makefile
File metadata and controls
65 lines (48 loc) · 1.6 KB
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
.PHONY:
# ==============================================================================
# Docker
local:
@echo Starting local docker compose
docker-compose -f docker-compose.local.yaml up -d --build
develop:
mvn clean package -Dmaven.test.skip
@echo Starting docker compose
docker-compose -f docker-compose.yaml up -d --build
# ==============================================================================
# Docker and k8s support grafana - prom-operator
FILES := $(shell docker ps -aq)
down-local:
docker stop $(FILES)
docker rm $(FILES)
clean:
docker system prune -f
logs-local:
docker logs -f $(FILES)
upload:
mvn clean package -Dmaven.test.skip
docker build -t alexanderbryksin/kotlin_spring_microservice:latest --platform=linux/arm64 -f ./Dockerfile .
docker push alexanderbryksin/kotlin_spring_microservice:latest
k8s_apply:
kubectl apply -f k8s/microservice/templates
k8s_delete:
kubectl delete -f k8s/microservice/templates
helm_install:
kubens default
helm install -f k8s/microservice/values.yaml microservices k8s/microservice
helm_uninstall:
kubens default
helm uninstall microservices
helm_install_all:
helm repo update
kubectl create namespace monitoring
helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring
kubens default
helm install -f k8s/microservice/values.yaml microservices k8s/microservice
helm_uninstall_all:
kubens monitoring
helm uninstall monitoring
kubens default
helm uninstall microservices
kubectl delete namespace monitoring
wrk:
wrk -t8 -c200 -d60s --latency http://localhost:8000/api/v1/bank/4f3fe50e-3156-4e27-988e-93155cc878e8