appendix-b

appendix B  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).

B.1 Prerequisites

For this section, you’ll need a few tools installed. Most are covered in appendix A. The only new one is the Azure CLI, which you can install by following the steps here: https://mng.bz/jZNe.

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: https://mng.bz/WwQW.

Next, you’ll need a Kubernetes cluster on Azure. To set it up, follow the instructions at https://mng.bz/8XqD. 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:

az network public-ip update 
--resource-group <YOUR PUBLIC IP'S RG> 
--name <YOUR PUBLIC IP'S NAME> 
--dns-name <YOUR DESIRED PUBLIC IP'S DNS NAME> 
--query "dnsSettings.fqdn"

B.2 Preparing the cluster

B.3 Deploying the SmartCMS

B.3.1 Deploying the backend components

B.3.2 Deploying the frontend

B.3.3 Configuring Ingress