{"id":25669,"date":"2018-12-10T09:00:52","date_gmt":"2018-12-10T17:00:52","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/sql-server\/blog\/?p=25669"},"modified":"2022-09-26T09:49:14","modified_gmt":"2022-09-26T16:49:14","slug":"availability-groups-on-kubernetes-in-sql-server-2019-preview","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/sql-server\/blog\/2018\/12\/10\/availability-groups-on-kubernetes-in-sql-server-2019-preview\/","title":{"rendered":"Availability Groups on Kubernetes in SQL Server 2019 preview"},"content":{"rendered":"
Starting with SQL Server 2017, Microsoft embarked on a journey to support SQL Server deployments on Linux and containers, in order to provide a choice of deployment platform for our customers and partners. With the preview of SQL Server 2019<\/a>, we announced new capabilities for deploying SQL Server with High Availability and Disaster Recovery on containers in Kubernetes. The capability is provided through the new SQL Server Operator for Kubernetes, which provides mechanisms for Always On Availability Groups, adding high availability and disaster recovery capabilities for container deployments of SQL Server.<\/p>\n Customers today are gravitating towards adopting SQL Server on containers for a plethora of deployment scenarios, including local application development testing for DevOps pipelines and in some cases production deployment. SQL Server containers, orchestrated through container frameworks like Kubernetes, provide a consistent, isolated and reliable behavior alongside providing the ease of usage, deployment, and management. The ability to deploy a SQL Server container with Availability Groups, provides an Enterprise-class HA and DR for these deployments.<\/p>\n The Kubernetes operator for SQL Server is the key component which provides the functionality to deploy, manage and maintain the SQL Server HA deployment. The operator implements and registers the custom resource definition for SQL Server and the Availability Group resources. When the operator is deployed, it registers itself as a listener for notifications about SQL Server resources being deployed in the Kubernetes cluster. When a user creates or updates a SQL Server resource in the cluster a notification is sent to the operator, which then interprets and creates\/updates the corresponding SQL Server object as needed.<\/p>\n The Docker container image implements the code for the operator and the following additional important binaries:<\/p>\n Additional details on the other binaries implements in the HA container image can be found in the Always On availability groups for SQL Server containers documentation<\/a>.<\/p>\n The diagram below shows the high-level architecture of the SQL Server HA on Kubernetes.<\/p>\n The diagram\u00a0above includes the following components:<\/p>\n Steps and samples for deployment a SQL Server HA solution in Azure Kubernetes Services (AKS) are documented under\u00a0Deploy a SQL Server Always On availability group on a Kubernetes cluster<\/a> documentation.<\/p>\n Deployment consists of the following steps:<\/p>\n Starting with SQL Server 2017, Microsoft embarked on a journey to support SQL Server deployments on Linux and containers, in order to provide a choice of deployment platform for our customers and partners. With the preview of SQL Server 2019, we announced new capabilities for deploying SQL Server with High Availability and Disaster Recovery on<\/p>\n","protected":false},"author":5562,"featured_media":25774,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_classifai_error":"","footnotes":""},"post_tag":[],"product":[2536],"content-type":[2448],"topic":[2466],"coauthors":[2569],"class_list":["post-25669","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","product-sql-server-2019","content-type-updates","topic-developer","review-flag-1593580427-503","review-flag-alway-1593580309-407","review-flag-new-1593580247-437"],"yoast_head":"\nSQL Server 2019 HA Operator<\/h2>\n
\n
Deployment Architecture<\/h2>\n
\n
Deployment<\/h2>\n
\n
Getting started<\/h2>\n
\n