-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (14 loc) · 585 Bytes
/
Makefile
File metadata and controls
19 lines (14 loc) · 585 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: build create-configmap create-secrets deploy delete
LOG_LEVEL ?= info
create-configmap: ## Create ConfigMap with LOG_LEVEL
kubectl create configmap chatiq-config \
--from-literal=LOG_LEVEL=$(LOG_LEVEL) \
--dry-run=client -o yaml | kubectl apply -f -
create-secrets: ## Create Secrets from .env file
kubectl create secret generic chatiq-secrets \
--from-env-file=.env \
--dry-run=client -o yaml | kubectl apply -f -
deploy: ## Deploy Kubernetes resources
kubectl apply -f ./kubernetes/
delete: ## Delete Kubernetes resources
kubectl delete -f ./kubernetes/