Skip to content

Commit

Permalink
Merge pull request rook#13617 from Nordix/update-prometheus-operator-…
Browse files Browse the repository at this point in the history
…version-sunnat

Bump Prometheus operator version to v0.71.1
  • Loading branch information
subhamkrai authored Feb 28, 2024
2 parents 019c751 + 3ad456c commit 5892648
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ First the Prometheus operator needs to be started in the cluster so it can watch
A full explanation can be found in the [Prometheus operator repository on GitHub](https://github.com/prometheus-operator/prometheus-operator), but the quick instructions can be found here:

```console
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.40.0/bundle.yaml
kubectl create -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.71.1/bundle.yaml
```
!!! note
If the Prometheus Operator is already present in your cluster, the command provided above may fail. For a detailed explanation of the issue and a workaround, please refer to [this issue](https://github.com/rook/rook/issues/13459).


This will start the Prometheus operator, but before moving on, wait until the operator is in the `Running` state:

Expand Down Expand Up @@ -247,7 +250,7 @@ To clean up all the artifacts created by the monitoring walk-through, copy/paste
kubectl delete -f service-monitor.yaml
kubectl delete -f prometheus.yaml
kubectl delete -f prometheus-service.yaml
kubectl delete -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.40.0/bundle.yaml
kubectl delete -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.71.1/bundle.yaml
```

Then the rest of the instructions in the [Prometheus Operator docs](https://github.com/prometheus-operator/prometheus-operator#removal) can be followed to finish cleaning up.
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/installer/ceph_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ func (h *CephInstaller) InstallRook() (bool, error) {

if h.settings.UseHelm {
// Install Prometheus so we can create the prometheus rules
args := []string{"apply", "-f", "https://raw.githubusercontent.com/coreos/prometheus-operator/v0.40.0/bundle.yaml"}
args := []string{"create", "-f", "https://raw.githubusercontent.com/coreos/prometheus-operator/v0.71.1/bundle.yaml"}
_, err = h.k8shelper.MakeContext().Executor.ExecuteCommandWithOutput("kubectl", args...)
if err != nil {
return false, errors.Wrap(err, "failed to install prometheus")
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/auto-grow-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function growOSD(){
function creatingPrerequisites(){
echo "creating Prerequisites deployments - Prometheus Operator and Prometheus Instances"
# creating Prometheus operator
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.40.0/bundle.yaml
kubectl create -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.71.1/bundle.yaml
# waiting for Prometheus operator to get ready
timeout 30 sh -c "until [ $(kubectl get pod -l app.kubernetes.'io/name'=prometheus-operator -o json | jq -r '.items[0].status.phase') = Running ]; do echo 'waiting for prometheus-operator to get created' && sleep 1; done"
# creating a service monitor that will watch the Rook cluster and collect metrics regularly
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/create-dev-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ enable_rook_orchestrator() {

enable_monitoring() {
echo "Enabling monitoring"
$KUBECTL apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.40.0/bundle.yaml
$KUBECTL create -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.71.1/bundle.yaml
$KUBECTL wait --for=condition=ready pod -l app.kubernetes.io/name=prometheus-operator --timeout=30s
$KUBECTL apply -f monitoring/rbac.yaml
$KUBECTL apply -f monitoring/service-monitor.yaml
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/github-action-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function deploy_cluster() {
fi
# enable monitoring
yq w -i -d0 cluster-test.yaml spec.monitoring.enabled true
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.40.0/bundle.yaml
kubectl create -f https://raw.githubusercontent.com/coreos/prometheus-operator/v0.71.1/bundle.yaml
kubectl create -f monitoring/rbac.yaml

# create the cluster resources
Expand Down

0 comments on commit 5892648

Please sign in to comment.