-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (34 loc) · 1.88 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
K8S_NAMESPACE=kafkloud
#
# NOTE: the "-new-" targets always build from scratch
#
help:
@fgrep -h "##" $(MAKEFILE_LIST) | grep -v fgrep | sed 's/\(.*\):.*## \(.*\)/\1 - \2/' | sort
query-k8s: ## queries the status of the components present in Kubernetes
kubectl get all -n $(K8S_NAMESPACE)
apply-k8s-kafkloud: ## applies the base Kubernetes manifests needed by kafkloud
kubectl apply -f k8s
apply-k8s-seer: ## applies the Kubernetes manifests for seer
(cd seer; make apply-k8s)
apply-k8s-streamer: ## applies the Kubernetes manifests for streamer
(cd streamer; make apply-k8s)
apply-k8s-producer: ## applies the Kubernetes manifests for producer
(cd producer; make apply-k8s)
apply-k8s-consumer: ## applies the Kubernetes manifests for consumer
(cd consumer; make apply-k8s)
apply-k8s-portal: ## applies the Kubernetes manifests for portal
(cd portal; make apply-k8s)
apply-k8s: apply-k8s-kafkloud apply-k8s-streamer apply-k8s-seer apply-k8s-producer apply-k8s-consumer apply-k8s-portal ## applies the Kubernetes manifests for all the Kafkloud components
delete-k8s: ## deletes all components present in Kubernetes
kubectl delete namespace $(K8S_NAMESPACE)
deploy-new-k8s-streamer: ## rebuilds and re-deploys streamer into Kubernetes
(cd streamer; make recreate-new-k8s)
deploy-new-k8s-seer: ## rebuilds and re-deploys seer into Kubernetes
(cd seer; make recreate-new-k8s)
deploy-new-k8s-producer: ## rebuilds and re-deploys producer into Kubernetes
(cd producer; make recreate-new-k8s)
deploy-new-k8s-consumer: ## rebuilds and re-deploys consumer into Kubernetes
(cd consumer; make recreate-new-k8s)
deploy-new-k8s-portal: ## rebuilds and re-deploys portal into Kubernetes
(cd portal; make recreate-new-k8s)
deploy-new-k8s: deploy-new-k8s-streamer deploy-new-k8s-seer deploy-new-k8s-producer deploy-new-k8s-consumer deploy-new-k8s-portal ## rebuilds and redeploys kafkloud into Kubernetes