From MSSQL Server 2017, it is possible to host it in a Linux Docker container. As our application requires MSSQL Server for data persistence, we are going to deploy the latest version—MSSQL Server 2019—to our Kubernetes cluster. Currently, it is possible to deploy MSSQL Server to Kubernetes in two modes, as follows:
- A single-node instance with failover guaranteed by a Kubernetes Deployment and an Azure Disk persistent volume.
- A multi-node, HA cluster using a dedicated Kubernetes operator (https://kubernetes.io/docs/concepts/extend-kubernetes/operator/).
The second mode was announced for preview as of Community Technology Preview (CTP) 2.0 version (https://cloudblogs.microsoft.com/sqlserver/2018/12/10/availability-groups-on-kubernetes-in-sql-server-2019-preview/) but currently, in the general availability (GA) version...