DxOperator OpenShift Quick-Start Guide
This guide walks you through deploying a Microsoft SQL Server Availability Group using DxOperator on Red Hat OpenShift. By following the steps, you will:
- Install DxOperator on your OpenShift cluster using the administration console.
- Deploy a SQL Server Availability Group (AG) within that cluster.
Prerequisites
- A Red Hat OpenShift cluster with access to OperatorHub.
- 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, please contact us.
Install DxOperator using the OpenShift DxOperator bundle
- Log into RedHat Openshift via the UI.
- In the left-hand menu, select Ecosystem > Software Catalog.
- Search for DxOperator.
- Install DxOperator.
Deploy a new SQL Server AG cluster by creating a DxSqlAg
- Create a secret to store
DX_PASSKEY,DX_LICENSE, andMSSQL_SA_PASSWORD.- In the menu, select Workloads > Secrets.
- Select Create > Key/value Secret.
- For Secret name, enter
dxe. - For Key, enter
DX_PASSKEY, and for Value, enter your desired DxEnterprise cluster passkey. This value will be set as the cluster passkey for the DxEnterprise component to be deployed. - Select Add key/value.
- For Key, enter
DX_LICENSE, and for Value, enter your DxEnterprise license code. - Select Add key/value.
- For Key, enter
MSSQL_SA_PASSWORD, and for Value, enter your desired password for the SQL Serversaaccount.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.
- Navigate to Ecosystem > Installed Operators
- At the top, select the Project: drop-down and choose or create the project to contain the SQL Server Availability Group
- Select DxOperator from the list of operators
- In the box labeled DxSqlAg, click on Create instance.
- Enter a name for the deployment.
- Open the sqlAgConfiguration collapsible box
- Fill in the desired number of Synchronous Replicas, Asynchronous Replicas, and Configuration Only Replicas.
- Set the availabilityGroupName.
- Set the availabilityGroupListenerPort to
14033.
- Open the statefulSetSpec collapsible box dropdown, and within it, podSpec. Then open each of the following:
- dxEnterpriseContainer:
- For DxEnterprise Secret, select the secret
dxeas created in step (1). - Accept the DxEnterprise EULA
- Set VHOST name
- For DxEnterprise Secret, select the secret
- mssqlServerContainer
- For SQL Server Secret, select the secret
dxeas created in step (1). - Select the Product ID or a license key
- Accept the SQL Server EULA
- For SQL Server Secret, select the secret
- dxEnterpriseContainer:
- Click Create.
- Wait for the installation to complete before proceeding.
- Verify that your Availability Group is successfully created.
- In the menu, select Ecosystem > Installed Operators > DxOperator.
- Click on the DxSqlAg tab, followed by the item with the name chosen in the previous step
- Click on the Resources tab and verify the pods and load balancers were created
What You Accomplished
You've successfully deployed a production-ready SQL Server Availability Group on OpenShift using DxOperator. With this setup, you now have:
- Enterprise-grade high availability for your SQL Server workloads running in containers
- Automatic failover that keeps your applications running even during node or instance failures
- A foundation for production-ready database deployments that scale with your organization
Next Steps
- Read about available options in the DxOperator DxSqlAg API Reference
- Explore advanced configurations in the DxEnterprise Admin Guide.
- Ready to take the next step? Contact DH2i to discuss production deployments or request a personalized demo.