Walkthrough: Adding the SFMCCE connector module to Sitecore in Azure Kubernetes Service
To add the Sitecore Connect for Salesforce Marketing Cloud - Content Exchange (SFMCCE) connector in Azure Kubernetes Service (AKS):
- Build the SFMCCE images and push them to Azure.
- Prepare files and folders for deployment.
- Deploy the containers using kubectl commands.
Build the SFMCCE images and push them to Azure
To build the images for SFMCCE and push them to Azure:
-
Build the images for SFMCCE as explained in Add the SFMCCE connector module to Sitecore in Docker.
-
Tag the images with the
docker tagcommand. For example: -
Push the images to your Azure registry with the
docker pushcommand. For example
Prepare files and folders for deployment
To prepare files and folders in your installation for deployment:
-
Download the SFMCCE container deployment package from the Sitecore download page and extract it to a folder on your local workstation.
-
Open the folder into which you extracted the SFMCCE container deployment package.
-
Navigate to the
k8s\<version>\<topology>folder, for example,k8s\ltsc2019\xp1. Copy theoverridessubfolder to the Sitecore Experience Platform (SXP) container deployment package folderk8s\<version>(on the same level as thexp1folder). -
In the SXP container deployment package, in each of the
overridesandoverrides\xp1\secretsfolders, locate thekustomization.yamlfile. In each file, update thebasesparameter with the appropriate folder names for your installation, for example,../../xp1.NoteThe
basesparameter contains the placement of the original Sitecore container deployment files that thekustomization.yamlfiles override. -
In each of the
kustomization.yamlfiles, in theimages:section, update thenewNameandnewTagparameters with the values for themssql-initandcmimages you pushed to the Azure Registry. -
In the
overrides\xp1\secretsfolder, in thesitecore-salesforce-content-exchange-connection-string.txtfile , replace the content with the connection string you prepared in Walkthrough: Preparing to install an SFMC Content Exchange connector.
Deploy the containers using kubectl commands
To deploy the containers and the necessary Kubernetes components:
-
Prepare the AKS cluster configuration and deploy the ingress controller. For information on how to do this, see the Installation Guide for Production Environment for Kubernetes, which is available on the Sitecore download page.
-
Open the Windows console, and navigate to the folder containing the
xp1andoverridesfolders. -
Deploy the secrets. Use this command:
-
Run the
externalfolder. Use this command: -
Wait for all containers to have the status Ok/Running. You can check the status with this command:
-
Run the
initfolder. Use this command: -
Wait for all containers to have the status Completed. You can check the status with this command:
-
To create persistent volumes, run this command:
-
Run the Sitecore containers with the SFMCCE changes. Use this command:
-
Wait for all containers to have the status Ok/Running. You can check the status with the
kubectl get podscommand. -
Update the local host file. For information on how to do this, see the Installation Guide for Production Environment for Kubernetes.
When the containers have been deployed, rebuild your search indexes.