Skip to content

4.0.0

Latest
Compare
Choose a tag to compare
@Monska85 Monska85 released this 31 May 13:44
0a744af

Compare with previous version

⚠️ BREAKING CHANGES ⚠️

In the previous version, if the prometheus_adapter_chart_version variable was set, the module enabled the Prometheus Adapter installation. This behavior has been changed. Now, to enable the Prometheus Adapter installation, you must set the prometheus_adapter_enabled variable to true. The prometheus_adapter_chart_version variable is now optional and is used if you want to specify a different chart version from the default one. Remember that the shipped chart values are specific to the default chart version.

If you are not using the Prometheus Adapter (you do not specify the prometheus_adapter_chart_version variable in your configuration), you can safely ignore this breaking change.

If you receive the following error message during the upgrade:

cannot patch "kube-prometheus-stack-prometheus-node-exporter" with kind DaemonSet: DaemonSet.apps "kube-prometheus-stack-prometheus-node-exporter" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"kube-prometheus-stack", "app.kubernetes.io/name":"prometheus-node-exporter"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

you can delete the DaemonSet (kubectl delete daemonsets kube-prometheus-stack-prometheus-node-exporter) resource and apply the changes again. The helm release will recreate the DaemonSet resource with the correct selector. The only drawback is that you will lose the metrics collected by the DaemonSet during the downtime.

Added

  • Add the default versions for prometheus_stack_chart_version and prometheus_adapter_chart_version variables. These values indicate the default chart version to use and the reference to the shipped chart values.
  • Add the prometheus_adapter_enabled variable to enable or disable the Prometheus Adapter installation.