forked from ops-club/traffic_pod_autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (22 loc) · 803 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
.PHONY: build_app
build_app:
docker build traffic_pod_autoscaler -t ops-club/traffic_pod_autoscaler:latest --no-cache
.PHONY: k_apply
k_apply:
kubectl apply -f example --recursive
.PHONY: k_delete
k_delete:
kubectl delete deploy frontend -n webapp
kubectl delete deploy traffic-pod-autoscaler -n webapp
kubectl delete deploy redis-replica -n webapp
kubectl delete deploy redis-master -n webapp
kubectl delete ingress webapp-ingress -n webapp
.PHONY: k_namespace
k_namespace:
kubectl config set-context --current --namespace=webapp
.PHONY: k_ingress_logs
k_ingress_logs:
kubectl logs -n ingress-nginx -f ingress-nginx-controller-AAAAAAA
.PHONY: k_ingress_forward
k_ingress_forward:
kubectl port-forward --namespace=ingress-nginx service/ingress-nginx-controller --address 0.0.0.0 9000:80