-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (14 loc) · 880 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CLUSTER_ENV := $(shell kubectl -n kube-system get configmap cluster-info -o jsonpath='{.data.environment_short}' --ignore-not-found)
ifndef CLUSTER_ENV
CLUSTER_ENV := local
endif
# kubectl get cm -n kube-system cluster-info
deploy: deploy_cluster-info deploy_traefik-ingress-controller
display_cluster-info: ## build image pymetrics/games with latest and dev tags
kubectl kustomize cluster-info/overlays/$(CLUSTER_ENV)
deploy_cluster-info: ## build image pymetrics/games with latest and dev tags
kubectl apply -k cluster-info/overlays/$(CLUSTER_ENV)
display_traefik-ingress-controller: ## build image pymetrics/games with latest and dev tags
kubectl kustomize traefik-ingress-controller/overlays/$(CLUSTER_ENV)
deploy_traefik-ingress-controller: ## build image pymetrics/games with latest and dev tags
kubectl apply -k traefik-ingress-controller/overlays/$(CLUSTER_ENV)