-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (31 loc) · 1.36 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
38
39
# Default target
all: install-helm init-helm-repo install-python-packages
# Target for installing dependencies
deps: install-helm init-helm-repo install-python-packages
# Add other dependency installation commands here
# Target for installing HELM
install-helm:
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm
# Target for initializing Helm chart repository and installing Fluent Bit
init-helm-repo:
helm repo add fluent https://fluent.github.io/helm-charts
helm upgrade --install fluent-bit fluent/fluent-bit
# Target for installing Python packages
install-python-packages:
pip install requests
pip install kubernetes
# Target for installing the metrics-server
install-metrics-server:
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
# Target for starting kubectl proxy
start-kubectl-proxy:
kubectl proxy &
# Target for cleaning up
clean:
rm -f $(OBJS) $(TARGET)
# Phony targets
.PHONY: all deps install-helm init-helm-repo install-python-packages clean