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

Upgrading from Gloe EE 1.6.31 to 1.7.12 fails #5068

Open
willowmck opened this issue Jul 26, 2021 · 2 comments
Open

Upgrading from Gloe EE 1.6.31 to 1.7.12 fails #5068

willowmck opened this issue Jul 26, 2021 · 2 comments
Labels
Type: Bug Something isn't working

Comments

@willowmck
Copy link
Contributor

Describe the bug
Upgrading via helm with no values results in the following error =>
Error: UPGRADE FAILED: cannot patch "glooe-prometheus-kube-state-metrics" with kind Service: Service "glooe-prometheus-kube-state-metrics" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset && cannot patch "glooe-prometheus-kube-state-metrics" with kind Deployment: Deployment.apps "glooe-prometheus-kube-state-metrics" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/name":"kube-state-metrics"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

To Reproduce
Steps to reproduce the behavior:

  1. Install Gloo Edge Enterprise v1.6.31 with Helm
  2. Upgrade to Gloo Edge Enterprise v1.7.12 with Helm
  3. See error

Expected behavior
Upgrade should succeed.

Additional context
N/A

@willowmck willowmck added the Type: Bug Something isn't working label Jul 26, 2021
@chrisgaun
Copy link

@sam-heilbron put an explanation of workaround and close out.

@ably77
Copy link

ably77 commented Nov 9, 2021

I worked around this by disabling the default prometheus install in a helm values file called values-override.yaml like this:

prometheus:
  enabled: false
<omitted other existing helm values>

then run upgrades

helm upgrade gloo glooe/gloo-ee --namespace gloo-system --version $VERSION --set license_key=$LICENSE_KEY --values=values-override.yaml

After upgrading, you can then re-enable prometheus which will redeploy the chart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants