Appendix C. Deploying the SmartCMS to Azure Kubernetes Service

 

In this appendix, we’ll walk through how to deploy the SmartCMS app to Azure Kubernetes Service (AKS).

C.1 Pre-requisites

For this section, you’ll need a few tools installed. Most are covered in appendix B. The only new one is the Azure CLI, which you can install by following the steps here: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest.

You’ll also need an Azure account and an active subscription. If you don’t already have one, you can create both by following this guide:

Next, you’ll need a Kubernetes cluster on Azure. To set it up, follow the instructions here:

Follow the guide up to, but not including, the “Deploy the application” step.

Once your cluster is up and running, grab the public IP assigned to it with:

az network public-ip list --query "[?starts_with(resourceGroup, 'MC_') && ipAddress!=null].{Name:name, ResourceGroup:resourceGroup, IP:ipAddress}" -o table

You’ll get output that looks like:

Name          ResourceGroup             IP
------------  ------------------------  -----------
715a31e6-...  MC_sswasm_sswasm_westus2  4.155.90.17

Next, assign a DNS name to your cluster’s public IP:

C.2 Prepare the cluster

C.3 Deploy the SmartCMS

C.3.1 Deploy the backend components

C.3.2 Deploy the frontend

C.3.3 Configure Ingress