#!/usr/bin/env bash ## tested on macosx using minikube 1.17.0 and k8s v1.20.2 on Docker 20.10.2 set -ex minikube start --cpus 4 --memory 4GiB --vm minikube addons enable metrics-server minikube addons enable ingress kubectl patch deployments.apps --namespace kube-system ingress-nginx-controller --patch ' spec: template: metadata: annotations: prometheus.io/port: "10254" prometheus.io/scrape: "true" ' helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo add grafana https://grafana.github.io/helm-charts helm repo add kedacore https://kedacore.github.io/charts helm repo update cat > /tmp/demo.keda.grafana.values.yaml < /tmp/demo.keda.scaledobject.yaml <