Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating prometheus-kube version to fix the issue with deprecated resources #1122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions scripts/prometheus_on_minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ non_interactive=0
# Call setup by default (and not terminate)
setup=1

# Prometheus release default
tag="v0.8.0"

function install_prometheus() {
echo
echo "Info: Checking pre requisites for prometheus..."
Expand Down Expand Up @@ -62,16 +59,13 @@ function install_prometheus() {
popd >/dev/null
echo
echo "Info: Downloading prometheus git release - ${tag}"
# Commenting the below lines as the latest prometheus requires more than 2 CPUs and the PR checks fail on github hosted runners
# as they have only 2 CPUs on the host. Hence switching back to prometheus release 0.8.0 (Apr 2021)
# git clone https://github.com/coreos/kube-prometheus.git 2>/dev/null
git clone -b ${tag} https://github.com/coreos/kube-prometheus.git 2>/dev/null
git clone https://github.com/coreos/kube-prometheus.git 2>/dev/null
pushd kube-prometheus/manifests >/dev/null
echo
echo "Info: Installing prometheus"
kubectl apply -f setup
kubectl create -f setup
check_err "Error: Unable to setup prometheus"
kubectl apply -f .
kubectl create -f .
check_err "Error: Unable to install prometheus"
popd >/dev/null
popd >/dev/null
Expand Down
Loading