-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 995 Bytes
/
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
# Makefile`
# Run the application
run:
@echo "Setting up the stateful infrastructures..."
@echo "Running the Kubernetes cluster..."
@kubectl apply -k ./k8s
shutdown:
@echo "Shutting down the Kubernetes cluster..."
@kubectl scale --replicas=0 deployment blabber-hive
# @kubectl scale --replicas=0 statefulset broker
@kubectl scale --replicas=0 deployment fastapi
@kubectl scale --replicas=0 deployment grafana
@kubectl scale --replicas=0 deployment nginx
@kubectl scale --replicas=0 statefulset postgres
@kubectl scale --replicas=0 deployment prometheus
@kubectl scale --replicas=0 deployment redis
# @kubectl scale --replicas=0 deployment zookeeper
# @echo "Shutting down the stateful infrastructures..."
# @docker compose -f ./docker-compose-k8s.yml down
clean:
@echo "Deleting all Kubernetes resources..."
@kubectl delete all --all
stop-cluster:
@echo "Disabling Kubernetes in Docker Desktop..."
@osascript -e 'tell application "Docker" to set kubernetes enabled to false'