Walkthrough: Upgrading the SFMCBDE connector to version 7.0 in Kubernetes

Current version: 7.0

You can upgrade Salesforce Marketing Cloud Behavioral Data Exchange (SFMCBDE) on your Azure Kubernetes installation from 6.0 to SFMCBDE 7.0. SFMCBDE 7.0 is compatible with Sitecore 10.2.

Before you upgrade SFMCBDE for container 6.0 to SFMCBDE for container 7.0 you must:

  • Back up the mssql databases.

This walkthrough describes how to:

  • Build and push the mssql-upgrade image

  • Perform the upgrade

Build and push the mssql-upgrade image

To upgrade SFMCBDE, you must build an mssql-upgrade image.

To build and push the mssql-upgrade image:

  1. Build the images for SFMCBDE as explained in the Build the mssql-upgrade image section in Walkthrough: Upgrading the SFMCBDE connector to version 7.0 in Docker.

  2. Open the Windows console and use the docker tag command to tag the images. For example:

    RequestResponse
    docker tag sitecore-sfmcbde-xp1-cm:<imageVersionTag> $registry/sitecore-sfmcbde-xp1-cm:<newTag>
  3. In the console, use the docker push command to push the images to your Azure registry. For example:

    RequestResponse
    docker push $registry/sitecore-sfmcbde-xp1-cm:<newTag>

Perform the upgrade

To upgrade to SFMCBDE 7.0 on Sitecore 10.2:

  1. Download the Sitecore container deployment package for 10.2 from the Sitecore download page. Extract it to your local workstation with the folder structure intact.

  2. Navigate to the upgrade folder for the Windows version and topology you are using, for example, k8s\ltsc2019\upgrade\xp1. In the kustomization.yaml file, update the images section with newName and newTag attributes of custom mssql-upgrade image you created and pushed previously.

  3. 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.

  4. Download the SFMCBDE container deployment package for 7.0 package from the Sitecore download page. Extract it to your local workstation with the folder structure intact. Copy the SFMCBDE\k8s\<windows version>\overrides folder and paste it into the \k8s\<windows version>\ folder in the SXP 10.2 deployment structure.

  5. In the secrets folder in the SXP 10.2 structure, for example, k8s\ltsc2019\overrides\xp1\secrets, update the sitecore-salesforce-bde-connection-string.txt secret file.

  6. Log in to the Azure CLI and set a subscription:

    RequestResponse
    az login
    az account set --subscription "Your Subscription"
  7. Get the credentials for the Kubernetes cluster that was created with the AKS cluster by running this command:

    RequestResponse
    az aks get-credentials --resource-group <10.1 resource group>--name <10.1 cluster>
  8. Deploy the Sitecore upgrade job by moving to the folder in step 2, where the updated files are, and running this command:

    RequestResponse
    kubectl apply -k .\
  9. To check if the job has completed, run this command:

    RequestResponse
    kubectl get pod
  10. 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:

    RequestResponse
    kubectl delete -f .\
    kubectl delete -k .\
Note

Upgrading with a custom mssql-image includes cleaning up SFMCBDE items from the database because SFMCBDE 7.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.

Do you have some feedback for us?

If you have suggestions for improving this article,