logzio/logzio-helm

UPGRADE FAILED: CANNOT PATCH

Closed this issue · 3 comments

The customer uses OpenTelemetry chart and gets the following error when he tried to upgrade:

Error: UPGRADE FAILED: cannot patch "logzio-otel-k8s-metrics-prometheus-pushgateway" with kind Service: Service "logzio-otel-k8s-metrics-prometheus-pushgateway" is invalid: spec.clusterIP: Invalid value: "": field is immutable && cannot patch "logzio-otel-k8s-metrics-kube-state-metrics" with kind Deployment: Deployment.apps "logzio-otel-k8s-metrics-kube-state-metrics" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"logzio-otel-k8s-metrics", "app.kubernetes.io/name":"kube-state-metrics"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

We need to change the way we define use the clusterIp fields:
helm/helm#6378 (comment)

Are we better off uninstalling the chart and installing fresh?

Hi @csmithfwi,
You can either delete the kube-state-metrics, node-exporter & push-gateway sub charts and perform helm upgrade action or just reinstall the chart.
We recently documented these steps as this occurred in the breaking changes of our latest chart versions.

https://github.com/logzio/logzio-helm/tree/master/charts/logzio-telemetry#upgrade-logzio-telemetry-to-v200
https://github.com/logzio/logzio-helm/tree/master/charts/logzio-monitoring#upgrade-logzio-monitoring-to-v300