-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 840 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
CLUSTER_NAME = exploring-cloud-native
CLUSTER_CONFIG_PATH = cluster-config.yaml
.PHONY: cluster cluster-rebuild port-forward clean
cluster:
kind create cluster --name $(CLUSTER_NAME) --config $(CLUSTER_CONFIG_PATH)
helm upgrade --install ingress-nginx ingress-nginx --repo https://kubernetes.github.io/ingress-nginx
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.6.3/cert-manager.yaml
sleep 10s
kubectl apply -f ./cluster/observability/namespace.yaml
kubectl create -f https://github.com/jaegertracing/jaeger-operator/releases/download/v1.47.0/jaeger-operator.yaml -n observability
sleep 10s
kubectl apply -R -f ./cluster/
cluster-rebuild: clean cluster
port-forward:
kubectl port-forward service/ingress-nginx-controller 8080:80
clean:
kind delete cluster --name $(CLUSTER_NAME)