contrib/kube-prometheus: Add sample-app for showing custom metrics with HPA

Use interval in ServiceMonitor endpoint

Reintroduce updated dpeloy.sh & teardown.sh
This commit is contained in:
Matthias Loibl
2018-11-13 14:43:53 +01:00
parent a240909326
commit d4089d7125
3 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
kubectl apply -n monitoring custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml
kubectl apply -n monitoring custom-metrics-apiservice.yaml
kubectl apply -n monitoring custom-metrics-cluster-role.yaml
kubectl apply -n monitoring custom-metrics-configmap.yaml
kubectl apply -n monitoring hpa-custom-metrics-cluster-role-binding.yaml