v0.40.0 was too old and its pod failed to become ready in time.
v0.90.1 CRDs exceed kubectl's 262144-byte annotation limit for
client-side apply, so switch to --server-side.
Signed-off-by: David Galloway <david.galloway@ibm.com>
enable_monitoring() {
echo "Enabling monitoring"
- $KUBECTL apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.40.0/bundle.yaml
+ $KUBECTL apply --server-side -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.90.1/bundle.yaml
$KUBECTL wait --for=condition=ready pod -l app.kubernetes.io/name=prometheus-operator --timeout=90s
$KUBECTL apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/monitoring/rbac.yaml
$KUBECTL apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/monitoring/service-monitor.yaml