Closed davidg-datascene closed 1 year ago
Upgrading Cortex helm chart from v1.7.0 to v2.1.0 that includes Cortex docker image v1.14.1 fails to upgrade. Using chart 2.1.0 with cortex image: v1.13.0/1/2 works as expected.
error loading config from /etc/cortex/cortex.yaml: Error parsing config file: yaml: unmarshal errors: line 4: field storage not found in type alertmanager.MultitenantAlertmanagerConfig line 72: field storage not found in type ruler.Config line 88: field index_queries_cache_config not found in type storage.Config
Yeah your config is wrong. The error is coming from cortex not the helm-chart. Make sure your config matches https://cortexmetrics.io/docs/configuration/configuration-file/
But shouldn't the helm chart be providing the correct values following the change from Cortex 1.13 to 1.14 and the helm chart builds out the /etc/cortex/cortex.yaml file. The upgrade guide doesn't show steps to go from 1.7 (Cortex 1.13.x) of the chart to 2.1.0 (Cortex 1.14.x) and changes required.
https://github.com/cortexproject/cortex-helm-chart/blob/v2.1.0/templates/secret.yaml#L10
I'll close this as no changes required yourside. Thanks for taking a look.
But shouldn't the helm chart be providing the correct values following the change from Cortex 1.13 to 1.14 and the helm chart builds out the /etc/cortex/cortex.yaml file. The upgrade guide doesn't show steps to go from 1.7 (Cortex 1.13.x) of the chart to 2.1.0 (Cortex 1.14.x) and changes required.
https://github.com/cortexproject/cortex-helm-chart/blob/v2.1.0/templates/secret.yaml#L10
Yes it does however you need to use --reset-values
otherwise old values persist between upgrades.
Upgrading Cortex helm chart from v1.7.0 to v2.1.0 that includes Cortex docker image v1.14.1 fails to upgrade. Using chart 2.1.0 with cortex image: v1.13.0/1/2 works as expected.
To Reproduce
my-cortex-values.yaml
/etc/cortex/cortex.yaml
Expected behavior Upgrades to v1.14.1 of Cortex image
Environment: Azure AKS version v1.23.15 Cortex helm chart v1.7.0 --> v2.1.0 Docker image v1.13.0 --> v1.14.1