-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
102 lines (85 loc) · 2.57 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
service_cats := cats
service_dogs := dogs
service_fishes := fishes
service_birds := birds
service_pets := pets
service_gui := gui
services := $(service_cats) $(service_dogs) $(service_fishes) $(service_birds) $(service_pets) $(service_gui)
deploy-kapp:
for d in $(services); \
do \
$(MAKE) --directory=$$d deploy-kapp; \
done
undeploy-kapp:
for d in $(services); \
do \
$(MAKE) --directory=$$d undeploy-kapp; \
done
cnb-image:
for d in $(services); \
do \
$(MAKE) --directory=$$d cnb-image; \
done
deploy-cnb:
for d in $(services); \
do \
$(MAKE) --directory=$$d deploy-cnb; \
done
undeploy-cnb:
for d in $(services); \
do \
$(MAKE) --directory=$$d undeploy-cnb; \
done
docker-build:
for d in $(services); \
do \
$(MAKE) --directory=$$d docker-build; \
done
docker-push:
for d in $(services); \
do \
$(MAKE) --directory=$$d docker-push; \
done
k8s-deploy:
for d in $(services); \
do \
$(MAKE) --directory=$$d k8s-deploy; \
done
workload:
for d in $(services); \
do \
$(MAKE) --directory=$$d workload; \
done
unworkload:
for d in $(services); \
do \
$(MAKE) --directory=$$d unworkload; \
done
deliverable:
for d in $(services); \
do \
$(MAKE) --directory=$$d deliverable; \
done
undeliverable:
for d in $(services); \
do \
$(MAKE) --directory=$$d undeliverable; \
done
deploy-front:
kubectx aws-front
kustomize build kustomize/aws/front | kapp -y deploy -a micropets -f -
kapp inspect -a micropets
deploy-back:
kubectx aws-back-admin@aws-back
kustomize build kustomize/aws/back | kapp -y deploy -a micropets -f -
kapp inspect -a micropets
kill-front-services:
kubectx aws-front
kubectl delete svc cats-service -n micropet-test
kubectl delete svc dogs-service -n micropet-test
kubectl delete svc fishes-service -n micropet-test
kubectl delete deployment front-cats-app -n micropet-test
kubectl delete deployment front-dogs-app -n micropet-test
kubectl delete deployment front-fishes-app -n micropet-test
undeploy-app:
kapp -y delete -a micropets