Walkthrough: Upgrading SCCH 4.0 to 5.0 on Kubernetes
This section explains how you upgrade Sitecore Connect for Content Hub (SCCH) container in Kubernetes to 5.0.
Before you perform the upgrade for Container SCCH Container to version 5.0, you must have a Sitecore AKS 10.1 deployment with SCCH 4.0 and an up to date backup of the 10.1 database.
This walkthrough describes how to:
-
Build and push the mssql-upgrade image
-
Perform the upgrade
Build and push the mssql-upgrade image
To upgrade SCCH you must build an mssql-upgrade image. To do so:
-
Build the images for SCCH as explained in the Build the mssql-upgrade image section in Walkthrough: Upgrading SCCH 4.0 to 5.0 on Docker.
-
In a PowerShell window, navigate to the folder containing the Dockerfile and build and tag the image. For example:
RequestResponseshelldocker build . -t sitecore-scch-xp1-cm:<imageVersionTag> $registry/sitecore-scch-xp1-cm:<newTag>
-
Check that Docker has created the image.
-
Push the created image to your Azure registry. For example:
RequestResponseshelldocker push $registry/sitecore-scch-xp1-cm:<newTag>
Perform upgrade
When you have built the container images, you can upgrade SCCH.
To upgrade to SCCH 5.0 on Sitecore 10.2:
-
Download and extract Sitecore 10.2 Sitecore Container Deployment Package from the Sitecore download page. Extract it to your local workstation with the folder structure intact.
-
Navigate to the upgrade folder for the Windows version and topology you are using, for example,
k8s\ltsc2019\upgrade\xp1
. In thekustomization.yaml
file, update the images section withnewName
andnewTag
of the custom mssql-upgrade image you created and pushed previously. -
In the
configuration
folder, update the secrets files. For more information on the secrets files, please refer to the Installation Guide for Production Environment with Kubernetes guide available on the Sitecore download page. -
Download the SCCH container deployment 5.0 package from the Sitecore download page. Extract it to your local workstation with the folder structure intact. Copy the
SCCH\k8s\<windows version>\overrides
folder and paste it into the\k8s\<windows version>\
folder in the SXP 10.2 deployment structure. -
In the
secrets
folder in the SXP 10.2 structure, for example,k8s\ltsc2019\overrides\xp1\secrets
, update these secrets files:-
sitecore-cmp-content-hub.txt
-
sitecore-cmp-service-bus-entity-path-in.txt
-
sitecore-cmp-service-bus-entity-path-out.txt
-
sitecore-cmp-service-bus-subscription.txt
-
sitecore-dam-content-hub.txt
-
sitecore-dam-external-redirect-key.txt
-
sitecore-dam-search-page.txt
-
-
Log in to the Azure CLI and set a subscription.
RequestResponseshellaz login az account set --subscription "Your Subscription"
-
Get the credentials for the Kubernetes cluster that was created with the AKS cluster.
RequestResponseshellzaks get-credentials --resource-group <10.1 resource group>--name <10.1 cluster>
-
To deploy the Sitecore upgrade job, go to the folder where the updated files are, for example
k8s\ltsc2019\upgrade\xp1
, and run this command:RequestResponseshellkubectl apply -k .\
-
To check if the job has completed, run this command:
RequestResponseshellkubectl get pod
-
When the upgrade process is completed, you can delete the Kubernetes upgrade job and upgrade secrets. In the console, go to the upgrade folder from step 2, and run these commands:
RequestResponseshellkubectl delete -f .\ kubectl delete -k .\
Upgrading with a custom mssql-image includes cleaning up SCCH items from the database since SCCH 5.0 has moved to using resources files. This requires rebuilding and upgrading the Sitecore role instances cm, xconnect, and xdbsearchworker.
For detailed instructions on how to build and deploy the Sitecore role instances please refer to the Sitecore Upgrade Container Deployment Guide on the Sitecore download page.