Last active
February 5, 2019 16:35
-
-
Save iocanel/bd5f428c4b12a82992f553678c6cd0a5 to your computer and use it in GitHub Desktop.
Install prometheus operator locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oc cluster up | |
# Tried with both coreos repo and its openshfit fork | |
git clone [email protected]:openshift/prometheus-operator.git | |
cd prometheus-operator | |
# Remove all RunAsUser: 65543 as they don't work on openshift | |
ls contrib/kube-prometheus/manifests/* | while read manifest; do echo "Removing RunUser from $manifest"; sed -i '/65543/d' $manifest;done | |
# This suffers from a race condition so lets install resources one by one and add some sleep | |
ls contrib/kube-prometheus/manifests/* | while read manifest; do echo "Installing $manifest"; oc create -f $manifest; sleep 1;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that the project to be used is now -> https://github.com/coreos/prometheus-operator