forked from AlexsJones/kubernetes-observability-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 1.67 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
40
.PHONY: up down deploy
up:
kind create cluster --config=resources/cluster.yaml
helm-repos:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add stable https://charts.helm.sh/stable
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo add jetstack https://charts.jetstack.io
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
install: support-install helm-repos helm-install install-certs
helm-install:
helm install ms bitnami/metrics-server -n kube-system
helm install prom prometheus-community/kube-prometheus-stack -n kube-system
helm install weave stable/weave-scope -n kube-system
helm install cert-manager --namespace cert-manager --version v1.0.2 jetstack/cert-manager
support-install:
kubectl create namespace cert-manager
kubectl create namespace ingress-nginx
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.0.2/cert-manager.crds.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
kubectl rollout status deployment ingress-nginx-controller -n ingress-nginx -w
kubectl apply -f resources/ingress.yaml -n kube-system
kubectl apply -f resources/metrics-server-api.yaml
get-grafana-pass:
kubectl get secret --namespace kube-system prom-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
install-certs:
kubectl rollout status deployment cert-manager-webhook -n cert-manager -w
sleep 60
kubectl apply -f resources/issuer.yaml -n kube-system
kubectl apply -f resources/local-certificate.yaml -n kube-system
down:
kind delete cluster