This is the source code for spotlight.o11y.cool, the quick and easy comparism site for AWS spot prices for the last couple of years.
Deploy the following YAML spaghetti to the Kubernetes cluster of your choice.
We utilize envsubst as our poor mans templating engine:
cat <<EOF > secrets.envaws_access_key="..."aws_secret_access_key="..."grafana_domain=spotlight.o11y.coolgrafana_admin_password="..."grafana_secret_key="..."EOFkubectl create namespace o11y-cool
kubectl create configmap spotlight-dashboard \
--namespace=o11y-cool \
--from-file=aws-spot-price-dashboard.json \
--dry-run=client -o yaml | kubectl apply -f -set -a;source secrets.env;set +a;
envsubst < manifests/configuration.yaml | kubectl apply -f -
envsubst < manifests/deployment.yaml | kubectl apply -f -