Upgrade DxE + SQL Server Helm Deployments
Prerequisites
-
Current environment was deployed using the DH2i Helm chart.
-
Kubernetes statefulset updateStrategy spec is set to OnDelete.
Using Helm to Upgrade the Container Images
- Stage the upgrade with new image tags.
helm upgrade <helm_installation_name> dh2i/dxemssql --reuse-values --set=sqlImage.tag="2022-latest"
helm upgrade <helm_installation_name> dh2i/dxemssql
Any image that uses the latest tag will automatically be upgraded with the above commands whenever a new image is posted to the repository. If a specific image version is required, then use the --set
parameter to specify the desired tag. The DH2i Helm chart uses "sqlImage.tag" for SQL Server and "dxeImage.tag" for DxEnterprise.
For example:
helm upgrade dh2i_test dh2i/dxemssql --reuse-values --set=sqlImage.tag="2019-CU14-rhel-8.4" --set=dxeImage.tag="23.0.256.0-rhel8-arm64"
- Delete each pod individually to perform the upgrade.
It's highly recommended to upgrade the secondary pods one at a time before upgrading the primary pod. After upgrading all of the secondary pods, then move the Vhost to one of them and upgrade the final pod.