-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 1.27 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
create-cluster:
kind create cluster --config=kind.yaml
create-cluster-multinodes:
kind create cluster --config=kind-multinodes.yaml
deploy-ambassador:
kubectl apply -f https://github.com/datawire/ambassador-operator/releases/latest/download/ambassador-operator-crds.yaml
kubectl apply -n ambassador -f https://github.com/datawire/ambassador-operator/releases/latest/download/ambassador-operator-kind.yaml
kubectl wait --timeout=180s -n ambassador --for=condition=deployed ambassadorinstallations/ambassador
deploy-prometheus:
kubectl create ns prometheus
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/prometheus-operator -n prometheus -f .helm/prometheus-custom-values.yaml
kubectl wait -n prometheus --timeout=180s --for=condition=available deployment/prometheus-grafana
kubectl apply -n prometheus -f .\.k8s\prometheus-ingress.yaml
kubectl annotate -n prometheus ingress prometheus-operated kubernetes.io/ingress.class=ambassador
deploy-php-apache:
kubectl create ns guestbook
kubectl apply -n guestbook -f .\.k8s\php-apache.yaml
kubectl wait -n guestbook --timeout=180s --for=condition=available deployment/php-apache
kubectl apply -n guestbook -f .\.k8s\php-apache-load.yaml