diff --git a/dittybopper/deploy.sh b/dittybopper/deploy.sh index eaa9d48..cbc313e 100755 --- a/dittybopper/deploy.sh +++ b/dittybopper/deploy.sh @@ -119,7 +119,7 @@ fi #FIXME: This is OCP-Specific; needs updating to support k8s echo "" echo -e "\033[32mGetting environment vars...\033[0m" -export PROMETHEUS_URL="https://$($k8s_cmd get routes -n openshift-monitoring prometheus-k8s -o jsonpath="{.spec.host}")" +export PROMETHEUS_URL="https://prometheus-k8s.openshift-monitoring.svc.cluster.local:9091" export PROMETHEUS_BEARER=$($k8s_cmd create token -n openshift-monitoring prometheus-k8s --duration 240h || $k8s_cmd sa get-token -n openshift-monitoring prometheus-k8s || $k8s_cmd sa new-token -n openshift-monitoring prometheus-k8s) echo "Prometheus URL is: ${PROMETHEUS_URL}" if [[ -n ${PROMETHEUS_BEARER} ]]; then