Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Upgrade prometheus-operator #20

Merged
merged 8 commits into from
Dec 13, 2019
Merged

Upgrade prometheus-operator #20

merged 8 commits into from
Dec 13, 2019

Conversation

branden
Copy link
Contributor

@branden branden commented Dec 12, 2019

This corresponds to the kubeaddons-configs PR at mesosphere-backup/kubeaddons-configs#368.

Testing

See the testing section in the description for mesosphere/charts#309.

@branden
Copy link
Contributor Author

branden commented Dec 12, 2019

CI is failing, and this appears to be the error:

[Step 1/1] error: unable to read URL "https://raw.githubusercontent.com/mesosphere/kubernetes-base-addons/master/addons/kudo/kudo.yaml", server reported 404 Not Found, status code=404

I wonder if that's caused by #18, which renamed kudo.yaml. to kudo-1.yaml.

@branden branden marked this pull request as ready for review December 12, 2019 19:29
@branden branden requested a review from joejulian as a code owner December 12, 2019 19:29
Copy link
Contributor

@samvantran samvantran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @branden. My comments are mostly questions for better understanding but one more thing: it looks like m/charts points to v0.34.0 of the prom-operator now. Should we add a new folder in this repo for v0.34.x/ with the updated prometheus-1.yaml?

@@ -105,11 +105,6 @@ spec:
targetPort: 5601
interval: 30s
prometheusSpec:
image:
tag: v2.9.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what prevented your change in mesosphere/charts#309 from taking effect I'm guessing?

But rather than delete entirely, should we still pin to a much more recent stable image? Or is that already covered since we're pointing to the chart 8.3.3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this was causing prometheus-operator to deploy an older version of Prometheus that couldn't handle some of the updates to the chart.

The chart's default images have been updated as part of the chart upgrade, so using defaults means we're getting the new versions. I decided to remove the tag override rather than update it, since AFAIK we no longer need to pin a specific version, and using the defaults should be easier to maintain.

@branden
Copy link
Contributor Author

branden commented Dec 12, 2019

@samvantran

it looks like m/charts points to v0.34.0 of the prom-operator now. Should we add a new folder in this repo for v0.34.x/ with the updated prometheus-1.yaml?

Oh good catch. I wonder if we need to keep the addon for the older Prometheus version, since it won't end up in a GA release. I'll just rename the dir to 0.34.x to be accurate and see if that breaks anything.

@samvantran
Copy link
Contributor

I'll just rename the dir to 0.34.x to be accurate and see if that breaks anything.

Sounds good. Hopefully no issues 🤞

I wonder if in the future we'll want to provide multiple versions in case users want to use an older chart (for eg bc they can't upgrade to the latest one yet). mesosphere/universe already has a pretty good system for this.

@alejandroEsc
Copy link
Contributor

please rebase, should help with the test.

@branden branden force-pushed the branden/prom-upgrade branch from ac32c96 to dbce7a6 Compare December 13, 2019 04:48
shaneutt
shaneutt previously approved these changes Dec 13, 2019
Copy link
Contributor

@shaneutt shaneutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once CI is happy, ✔️

As a non-blocker, I did want to point out that this is probably one of the last times before all the lights are on with this repo that we'll be able to make significant updates to an addon like this in place. In the future it will be expected that we make a new revision as per the documentation but that's waiting on the first end-user of this repo (konvoy) to fully integrate this repo. Just context, no action needed.

@branden
Copy link
Contributor Author

branden commented Dec 13, 2019

There's a remaining issue with mesosphere-backup/kubeaddons-configs#368, so I'll put the WIP label back on this PR until that's ironed out.

@branden branden added wip and removed ready labels Dec 13, 2019
@branden
Copy link
Contributor Author

branden commented Dec 13, 2019

The plan is to merge mesosphere-backup/kubeaddons-configs#368 as it is and then follow up with another PR to fix the bug it introduces.

@branden branden added ready and removed wip labels Dec 13, 2019
@branden branden merged commit a10d6ff into master Dec 13, 2019
@branden branden deleted the branden/prom-upgrade branch December 13, 2019 23:36
jkoelker added a commit that referenced this pull request Dec 16, 2019
jkoelker added a commit that referenced this pull request Dec 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants