Skip to main content

Instance Reference

The Instance resource (core.openeverest.io/v1alpha1) is the single API you use to declare a SQL Server database with the MSSQL Provider.

Full example​

apiVersion: core.openeverest.io/v1alpha1
kind: Instance
metadata:
name: my-database
spec:
providerRef:
name: mssql # the MSSQL Provider
version: "2022" # 2019 | 2022 | 2025 (see Versions)
topology:
type: availabilityGroup # standalone | availabilityGroup
parameters: # topology-specific (AG shown)
availabilityMode: synchronous
readableSecondaries: all
components:
engine:
replicas: 3
resources:
limits:
cpu: "2"
memory: 4Gi
storage:
size: 20Gi
# storageClass: fast-ssd
service:
serviceType: ClusterIP # ClusterIP | LoadBalancer | NodePort
annotations: {}
loadBalancerService:
sourceRanges: []
parameters:
edition: Developer
imagePullSecrets:
- ghcr-pull-secret

Top-level fields​

FieldRequiredDescription
providerRef.name✅Must be mssql.
versionVersion bundle: 2019, 2022, 2025. Defaults to the catalog default. See Versions.
topology.type✅standalone or availabilityGroup. See Topologies.
topology.parametersTopology-specific settings (Availability Group only).

Availability Group parameters (topology.parameters)​

FieldValuesDefaultDescription
availabilityModesynchronous, asynchronoussynchronousReplication mode.
readableSecondariesall, readOnly, noallRead access on secondaries.

Engine component (components.engine)​

FieldDescription
replicas1 for standalone; 2+ (3 recommended) for Availability Group.
resources.limits.cpuCPU limit (min 1).
resources.limits.memoryMemory limit (min 2Gi).
storage.sizeDisk size per replica. Cannot be decreased on update.
storage.storageClassStorage class (immutable after creation).
service.serviceTypeClusterIP, LoadBalancer, or NodePort.
service.loadBalancerService.sourceRangesCIDRs allowed to reach a LoadBalancer Service.

Engine parameters (components.engine.parameters)​

FieldDescription
editionDeveloper, Express, Standard, Enterprise, EnterpriseCore. Express is standalone-only. See Versions.
imagePullSecretsNames of dockerconfigjson Secrets in the instance namespace for private images.
configurationExtra mssql.conf settings passed through to SQL Server.

See also​