If the thanos version is updated in the jsonnet file and new manifests are generated, those cannot be used to upgrade to a new version as the thanos-receive-router uses the version as one of the labels in the selector. Those labels are inmutable so applying the deployment manifest will fail.
Workaround: delete the thanos-receive-router deployment before upgrading.
Fix: do not include the app.kubernetes.io/version label in the selector matchLabels.
If the thanos version is updated in the jsonnet file and new manifests are generated, those cannot be used to upgrade to a new version as the
thanos-receive-router
uses the version as one of the labels in the selector. Those labels are inmutable so applying the deployment manifest will fail.Workaround: delete the
thanos-receive-router
deployment before upgrading.Fix: do not include the
app.kubernetes.io/version
label in the selectormatchLabels
.