-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 1.1 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
33
34
35
36
37
# Makefile for managing the project
.PHONY: minikube
stop: minikube-stop
minikube:
@echo "Starting Minikube..."
@minikube start --network-plugin=cni --cni=calico --profile=classlab --driver=docker --embed-certs --apiserver-names host.docker.internal --addons=ingress-dns,ingress,metrics-server,gvisor --install-addons=true --container-runtime=containerd --docker-opt containerd=/var/run/containerd/containerd.sock
@echo "Exporting kubeconfig..."
@kubectl config view --raw > kubeconfig
@echo "Replacing 127.0.0.1 with host.docker.internal in kubeconfig..."
@sed -i '' -e 's/127.0.0.1/host.docker.internal/g' kubeconfig
@echo "Starting Minikube tunnel..."
@minikube tunnel --profile=classlab
minikube-stop:
@echo "Stopping Minikube..."
@minikube stop --profile=classlab
@echo "Minikube stopped."
start:
docker compose up
dashboard:
@echo "Starting Kubernetes Dashboard..."
@minikube dashboard --profile=classlab
docs:
docker compose -f docker-compose.docs.yml up
helm:
helmfile --kubeconfig kubeconfig.yaml sync
kubeconfig:
cp kubeconfig.yaml kubeconfig
sed -i '' -e 's/127.0.0.1/k8s/g' kubeconfig