Upgrade Notes¶
insight server¶
Upgrade from v0.15.x (or lower) to v0.16.x¶
Since the new feature parameter disableRouteContinueEnforce of vmalertmanagers CRD is used in 0.16.x, the following commands need to be manually executed before upgrading the insight server.
kubectl apply --server-side -f https://raw.githubusercontent.com/VictoriaMetrics/operator/v0.33.0/config/crd/bases/operator.victoriametrics.com_vmalertmanagers.yaml --force-conflicts
Note
If you are installing offline, you can run the following command to update the CRD after decompressing the insight offline package.
```shell kubectl apply --server-side -f insight/dependency-crds --force-conflicts ````
insight-agent¶
Upgrade from v0.16.x (or lower) to v0.17.x¶
In v0.17.x, the kube-prometheus-stack chart version was upgraded from 41.9.1 to 45.28.1, and there were also some field upgrades in the CRD used, such as the attachMetadata
field of servicemonitor. Therefore, the following command needs to be executed before upgrading the insight agent:
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.65.1/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml --force-conflicts
If you are performing an offline installation, you can find the yaml for the above CRD in insight-agent/dependency-crds after extracting the insight-agent offline package.
Upgrade from v0.11.x (or earlier) to v0.12.x¶
v0.12.x upgrades kube-prometheus-stack chart from 39.6.0 to 41.9.1, including prometheus-operator to v0.60.1, prometheus-node-exporter chart to 4.3.0, etc. Prometheus-node-exporter uses Kubernetes recommended label after upgrading, so you need to delete node- exporter
s daemonset. prometheus-operator has updated the CRD, so you need to run the following command before upgrading the insight agent:
Note
If you are installing offline, you can run the following command to update the CRD after decompressing the insight-agent offline package.