mssql

by emberstack

Helm chartv1.0.22App 2025Verified publisher

A Helm chart for deploying Microsoft SQL Server on Kubernetes

About this chart

Microsoft SQL Server Helm Chart

A Helm chart for deploying Microsoft SQL Server 2025 on Kubernetes.

Installation

Using OCI registry (recommended)

helm install mssql oci://ghcr.io/emberstack/helm-charts/mssql \
  --set configuration.acceptEula=true \
  --set configuration.saPassword="YourStr0ngP@ssword"

Using Helm repository

helm repo add emberstack https://emberstack.github.io/helm-charts
helm repo update
helm upgrade --install mssql emberstack/mssql \
  --set configuration.acceptEula=true \
  --set configuration.saPassword="YourStr0ngP@ssword"

Global Parameters

ParameterDescriptionDefault
global.image.registryOverride image registry for all containers""
global.image.tagOverride image tag for all containers""
global.image.pullSecretsPull secrets for all containers[]
global.podLabelsLabels added to all pods across subcharts{}
global.podAnnotationsAnnotations added to all pods across subcharts{}
global.extraEnvVarsEnv vars injected into all containers across subcharts[]
global.serviceAccount.createOverride service account creation across subchartstrue
global.serviceAccount.nameOverride service account name across subcharts""
global.storageClassOverride storage class""

Common Parameters

ParameterDescriptionDefault
nameOverrideOverride chart name""
fullnameOverrideOverride fully qualified app name""
namespaceOverrideOverride namespace""
commonLabelsLabels added to all resources{}
commonAnnotationsAnnotations added to all resources{}
extraObjectsExtra Kubernetes resources to deploy[]

Image Parameters

ParameterDescriptionDefault
image.registryImage registrymcr.microsoft.com
image.repositoryImage repositorymssql/server
image.tagImage tag2025-latest
image.digestImage digest (overrides tag)""
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsImage pull secrets[]

SQL Server Configuration

ParameterDescriptionDefault
configuration.acceptEulaAccept the SQL Server EULA (required)false
configuration.editionSQL Server editionDeveloper
configuration.saPasswordSA password (required unless existingSecret is set)""
configuration.existingSecretUse an existing secret for SA password""
configuration.existingSecretKeyKey in the existing secretsaPassword
configuration.collationDatabase collation""
configuration.lcidLanguage ID (e.g. 1036 for French)""
configuration.memoryLimitMbMax memory in MB""
configuration.tcpPortTCP port""
configuration.agentEnabledEnable SQL Server Agentfalse
configuration.hadrEnabledEnable Always On Availability Groupsfalse
configuration.dataDirCustom data file directory""
configuration.logDirCustom log file directory""
configuration.backupDirCustom backup directory""
configuration.dumpDirCustom dump directory""

Supported Editions

ValueDescription
DeveloperSQL Server Developer edition (free, non-production)
ExpressSQL Server Express edition
StandardSQL Server Standard edition
EnterpriseSQL Server Enterprise (CAL-based, legacy)
EnterpriseCoreSQL Server Enterprise Core edition
StandardDeveloperSQL Server 2025 Standard Developer edition
EnterpriseDeveloperSQL Server 2025 Enterprise Developer edition
EvaluationSQL Server Evaluation edition

Deployment Parameters

ParameterDescriptionDefault
deployment.enabledDeploy as Deploymenttrue
deployment.replicaCountNumber of replicas1
deployment.revisionHistoryLimitRevision history limit3
deployment.updateStrategy.typeUpdate strategyRecreate
deployment.annotationsDeployment annotations{}
deployment.labelsDeployment labels{}
deployment.minReadySecondsMin seconds before pod is ready""

Diagnostic Mode

ParameterDescriptionDefault
diagnosticMode.enabledEnable diagnostic modefalse
diagnosticMode.commandDiagnostic command["sleep"]
diagnosticMode.argsDiagnostic args["infinity"]

Container Parameters

ParameterDescriptionDefault
commandOverride container command[]
argsOverride container args[]
containerPortSQL Server port1433
extraContainerPortsAdditional container ports[]
resourcesResource requests and limits{}
resourcesPresetResource preset (nano/micro/small/medium/large/xlarge/2xlarge)""
lifecycleHooksLifecycle hooks{}
extraEnvVarsAdditional environment variables[]
extraEnvVarsCMConfigMap name for envFrom""
extraEnvVarsSecretSecret name for envFrom""
extraVolumeMountsAdditional volume mounts[]
extraVolumesAdditional volumes[]

Probes

Default probes use TCP on port 1433. Override with custom*Probe or disable with diagnosticMode.

ParameterDescriptionDefault
livenessProbeDefault liveness probetcpSocket on mssql
customLivenessProbeOverride liveness probe{}
readinessProbeDefault readiness probetcpSocket on mssql
customReadinessProbeOverride readiness probe{}
startupProbeDefault startup probetcpSocket on mssql
customStartupProbeOverride startup probe{}

Pod Parameters

ParameterDescriptionDefault
podLabelsAdditional pod labels{}
podAnnotationsAdditional pod annotations{}
podSecurityContextPod security context{enabled: true, fsGroup: 10001}
containerSecurityContextContainer security context{enabled: true, runAsNonRoot: true, runAsUser: 10001, allowPrivilegeEscalation: false}
podAffinityPresetPod affinity preset (soft/hard)""
podAntiAffinityPresetPod anti-affinity preset (soft/hard)""
nodeAffinityPreset.typeNode affinity preset type""
nodeAffinityPreset.keyNode affinity label key""
nodeAffinityPreset.valuesNode affinity label values[]
affinityFull affinity override{}
nodeSelectorNode selector{}
tolerationsTolerations[]
topologySpreadConstraintsTopology spread constraints[]
priorityClassNamePriority class name""
schedulerNameScheduler name""
terminationGracePeriodSecondsTermination grace period""
dnsPolicyDNS policy""
dnsConfigDNS configuration{}
hostNetworkUse host networkfalse
initContainersInit containers[]
sidecarsSidecar containers[]

Service Account

ParameterDescriptionDefault
serviceAccount.createCreate a ServiceAccounttrue
serviceAccount.nameServiceAccount name"" (generated)
serviceAccount.annotationsServiceAccount annotations{}
serviceAccount.automountServiceAccountTokenAutomount API tokenfalse

RBAC

ParameterDescriptionDefault
rbac.createCreate RBAC resourcesfalse
rbac.clusterRole.rulesClusterRole rules[]
rbac.role.rulesRole rules (namespace-scoped)[]

Service

ParameterDescriptionDefault
service.enabledCreate a Servicetrue
service.typeService typeClusterIP
service.portService port1433
service.targetPortTarget portmssql
service.nodePortNodePort (when type=NodePort)""
service.clusterIPCluster IP (use None for headless)""
service.loadBalancerIPLoad balancer IP""
service.loadBalancerSourceRangesLoad balancer source ranges[]
service.externalTrafficPolicyExternal traffic policy""
service.annotationsService annotations{}
service.labelsService labels{}
service.extraPortsAdditional service ports[]

PodDisruptionBudget

ParameterDescriptionDefault
pdb.enabledEnable PDBfalse
pdb.minAvailableMinimum available pods""
pdb.maxUnavailableMaximum unavailable pods1

NetworkPolicy

ParameterDescriptionDefault
networkPolicy.enabledEnable NetworkPolicyfalse
networkPolicy.policyTypesPolicy types[Ingress, Egress]
networkPolicy.ingressIngress rules[]
networkPolicy.egressEgress rules[]
networkPolicy.allowExternalDNSAllow DNS egresstrue

ServiceMonitor (Prometheus)

ParameterDescriptionDefault
serviceMonitor.enabledEnable ServiceMonitorfalse
serviceMonitor.namespaceServiceMonitor namespace""
serviceMonitor.portMetrics portmssql
serviceMonitor.pathMetrics path/metrics
serviceMonitor.intervalScrape interval30s
serviceMonitor.scrapeTimeoutScrape timeout""
serviceMonitor.labelsAdditional labels{}
serviceMonitor.annotationsAdditional annotations{}
serviceMonitor.relabelingsRelabeling rules[]
serviceMonitor.metricRelabelingsMetric relabeling rules[]
serviceMonitor.honorLabelsHonor labelsfalse

ConfigMap

ParameterDescriptionDefault
configMap.enabledCreate a ConfigMapfalse
configMap.dataConfigMap data (supports template expressions){}

Persistence

ParameterDescriptionDefault
persistence.enabledEnable persistencetrue
persistence.storageClassStorage class""
persistence.accessModesAccess modes[ReadWriteOnce]
persistence.sizePVC size8Gi
persistence.existingClaimUse existing PVC""
persistence.mountPathMount path/var/opt/mssql
persistence.subPathVolume sub-path""
persistence.annotationsPVC annotations{}

Deploy mssql with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mssql on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmssql is pinned at v1.0.22 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply