Walkthrough: Adding the SFCRM connector module to Sitecore in Azure Kubernetes Service
You can add the Sitecore Connect for Salesforce CRM (SFCRM) connector to a Sitecore container environment in Azure Kubernetes Service (AKS).
This walkthrough describes how to:
-
Build the SFCRM images and push them to Azure.
-
Prepare files and folders for deployment.
-
Deploy the containers using kubectl commands.
-
Update your search indexes.
Build images and push them to Azure
To build the images for SFCRM and push them to Azure:
-
Build the images for SFCRM as explained in Walkthrough: Preparing to install the SFCRM connector in a container environment.
NoteThe Kubernetes deployment requires an
mssql-initimage. You must ensure that you includemssql-initin yourdocker-compose-override.ymlfile. -
Open the Windows console, and use the
docker tagcommand to tag the images. For example:RequestResponsedocker tag sitecore-sfcrm-xp1-cm:10.1.0.005207.643-10.0.17763.1757-ltsc2019 $registry/sitecore-sfcrm-xp1-cm:<tag version> -
In the console, use the
docker pushcommand to push the images to your Azure registry. For example:RequestResponsedocker push $registry/sitecore-sfcrm-xp1-cm:<tag version>
Prepare files and folders for deployment
To prepare files and folders in your installation for deployment:
-
Download the Sitecore SFCRM container deployment package from the Sitecore download page and extract it to a folder on your local workstation.
-
Open the folder that you extracted the Sitecore SFCRM container deployment package to.
-
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 the xp1 folder). -
In the SXP container deployment package, in each of the
overrides,overrides\xp1\init, andoverrides\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-init,cm,xdbcollection,xdbsearchandxdbsearchworkerimages you pushed to the Azure Registry. -
In the
overrides\xp1\secretsfolder, in thesitecore-salesforce-crm-connection-string.txtfile , replace the content with the connection string you prepared in ???.
Deploy the containers
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:
RequestResponsekubectl apply -k ./overrides/xp1/secrets/ -
Run the
externalfolder. Use this command:RequestResponsekubectl apply -k ./xp1/external/ -
Wait for all containers to have the status Ok/Running. You can check the status with this command:
RequestResponsekubectl get pods -o wide -
Run the
initfolder. Use this command:RequestResponsekubectl apply -k ./overrides/xp1/init/ -
Wait for all containers to have the status Completed. You can check the status with this command:
RequestResponsekubectl get pods -
To create persistent volumes, run this command:
RequestResponsekubectl apply -f ./xp1/volumes/azurefile -
Run the Sitecore containers with the SFCRM changes. Use this command:
RequestResponsekubectl apply -k ./overrides/xp1/ -
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, which is available on the Sitecore download page.