Install DxE + SQL Server Helm Chart Using Rancher
This quick start guide describes how to deploy the DxEMSSQL Helm Chart using Rancher by SUSE. Using this guide, you will create a DxEnterprise cluster and SQL Server availability group in Kubernetes using the Rancher web UI, then connect to the DxEnterprise cluster using DxAdmin.
Prerequisites
-
A machine running Rancher v2 and access to Rancher's web UI. Rancher can be run on a Windows or Linux machine as long as you have access to the web UI.
-
DxAdmin and SSMS installed on a Windows machine. For more information about installing DxAdmin, view the DxAdmin Installation Guide. See Microsoft documentation for information about installing SSMS.
-
A Kubernetes cluster managed by Rancher with at least two nodes. The Kubernetes cluster must have the ability to provision dynamic persistent volume claims.
- At least three external IPs available to the Kubernetes cluster for provisioning load balancer resource types. How these IPs are assigned will depend on your load balancer implementation (i.e., Azure, AWS, MetalLB, etc.).
-
A valid DxEnterprise license with availability group management features and tunnels enabled. A fully featured Developer Edition is available free for non-production use. To purchase DxEnterprise software for production workloads, visit the DH2i Store.
Install the Helm Chart
-
Log into Rancher via the web UI.
-
Select the top-left hamburger menu, then select the managed cluster you want to install the Helm chart to.
-
Add the DH2i Helm chart repository.
-
In the left-hand menu, select Apps > Repositories
-
Select Create in the top-right corner.
-
Enter any name for the repository.
-
Under Target select the "Git repository..." option.
-
Paste the URL below into the Git Repo URL box.
https://github.com/dh2i/dxe
-
In the Git Branch box enter "main".
-
Near the bottom-right corner, select Create.
-
-
Add Kubernetes secrets for SQL Server and the DxEnterprise cluster passkey.
-
In the left-hand menu, select Storage > Secrets.
-
Select Create in the top-right corner.
-
Select the Opaque option.
-
Name the secret dxe.
-
Enter a key name as DX_PASSKEY with the value of your DxEnterprise cluster passkey.
-
Select Add.
-
Enter a key name as MSSQL_SA_PASSWORD with the value of a strong SA password.
cautionYour password must meet SQL Server password requirements, or the container deployment will fail. See the SQL Server Password Policy for more details.
-
Select Create in the bottom-right corner.
-
-
In the left-hand menu, select Apps > Charts.
-
In the list of available charts, select DxEnterprise for Microsoft SQL AG.
-
Install the chart.
-
Select Install in the top-right corner.
-
Enter a name for the StatefulSet deployment, then select Next.
-
Under the General tab enter the dxe Kubernetes secret.
-
Under the DxEnterprise tab, enter your DxEnterprise license key and accept the EULA by inputting a Y.
-
Under the SQL Server tab, select the edition of SQL Server and accept the EULA by inputting a Y.
-
Select Install.
-
Wait for the installation to complete before proceeding.
-
-
Find the load balancer IP address for the primary.
-
In the top-right corner, select Kubectl Shell to open a new shell.
-
Run the command
kubectl get service
, then note the EXTERNAL-IP for the load balancer ending in*-lb-0
(the primary replica).
-
Connect Via SSMS and DxAdmin
After the installation is complete, you can connect to your availability group and the DxEnterprise cluster using SQL Server Management Studio (SSMS) and DxAdmin.
View the Availability Group Using SSMS
-
Launch SSMS.
-
Connect to the SQL Server instance using the external IP address of the primary pod (the load balancer IP) and your SQL Server SA password.
-
In the SSMS Object Explorer, expand Always On High Availability > Availability Groups.
-
Right-click on AG1 and select Show Dashboard.
-
You can now browse the AG details pane.
View the DxEnterprise Cluster and AG Using DxAdmin
-
Launch DxAdmin.
-
In the login dialog, enter the external IP address of the primary pod (the load balancer IP) for the Server.
-
In the Passkey field, enter your DxEnterprise cluster passkey.
-
Select Connect Server.
-
After logging in, you will have an overview of the entire DxEnterprise cluster including the availability group. You can show more details by selecting them in the tree view on the left-hand side of the window.
tipYou can use DxAdmin to manage the availability group databases. Simply right-click on the availability group in the tree view and select Manage availability databases.