Configure Azure Kubernetes Service for SQL Server 2019 big data cluster (preview) deployments
This article describes how to configure Azure Kubernetes Service (AKS) for SQL Server 2019 big data cluster (preview) deployments.
AKS makes it simple to create, configure, and manage a cluster of virtual machines that are preconfigured with a Kubernetes cluster to run containerized applications. This enables you to use your existing skills or draw upon a large and growing body of community expertise, to deploy and manage container-based applications on Microsoft Azure.
This article describes the steps to deploy Kubernetes on AKS using Azure CLI. If you don't have an Azure subscription, create a free account before you begin.
For a sample python script that deploys both AKS and SQL Server big data cluster, see Quickstart: Deploy SQL Server big data cluster on Azure Kubernetes Service (AKS).
- Azure Data Studio
- SQL Server 2019 extension
- Azure CLI
Minimum 1.10 version for Kubernetes server. For AKS, you need to use
--kubernetes-versionparameter to specify a version different than the default.
For an AKS environment, for an optimal experience while validating basic scenarios, we recommend at least three agent VMs with at least 4 vCPUs and 32 GB of memory each. Azure infrastructure offers multiple size options for VMs, see here for selections in the region you are planning to deploy.
Create a resource group
An Azure resource group is a logical group in which Azure resources are deployed and managed. The following steps sign into Azure and create a resource group for the AKS cluster.
If you are using Windows, use PowerShell for the remainder of the steps.
At the command prompt, run the following command and follow the prompts to login to your Azure subscription:
If you have multiple subscriptions you can view all of your subscriptions by running the following command:
az account list
If you want to change to a different subscription you can run this command:
az account set --subscription <subscription id>
Create a resource group with the az group create command. The following example creates a resource group named
az group create --name sqlbigdatagroup --location westus2
Create a Kubernetes cluster
Create a Kubernetes cluster in AKS with the az aks create command. The following example creates a Kubernetes cluster named kubcluster with three Linux agent nodes. Make sure you create the AKS cluster in the same resource group that you used in the previous sections.
az aks create --name kubcluster \ --resource-group sqlbigdatagroup \ --generate-ssh-keys \ --node-vm-size Standard_L4s \ --node-count 3 \ --kubernetes-version 1.10.9
You can increase or decrease the number of Kubernetes agent nodes by changing the
<n>is the number of agent nodes you want to use. This does not include the master Kubernetes node, which is managed behind the scenes by AKS. So in the example above, there are 3 VMs of size Standard_L4s used for the agent nodes of your AKS cluster.
After several minutes, the command completes and returns JSON-formatted information about the cluster.
Save the JSON output from the previous command for later use.
Connect to the cluster
To configure kubectl to connect to your Kubernetes cluster, run the az aks get-credentials command. This step downloads credentials and configures the kubectl CLI to use them.
az aks get-credentials --resource-group=sqlbigdatagroup --name kubcluster
To verify the connection to your cluster, use the kubectl get command to return a list of the cluster nodes. The example below shows the output if you were to have 1 master and 3 agent nodes.
kubectl get nodes
The steps in this article configured a Kubernetes cluster in AKS. The next step is to deploy SQL Server 2019 big data to the cluster. For more information on how to deploy big data clusters, see the following article: