Skip to content

Commit 67f23a8

Browse files
committed
Document spec.license for MariaDB Enterprise Server
Updates the MariaDB Enterprise Server guide for the license.required field added to MariaDBVersion in kubedb/apimachinery#1914: the 11.4.10-enterprise catalog entry now sets license.required: true, which requires spec.license.secretRef on the MariaDB CR (enforced by an admission webhook). Clarifies this is an administrative record, not a runtime check consumed by mariadbd. Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent ea91d23 commit 67f23a8

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

  • docs/guides/mariadb/private-registry/enterprise-server

‎docs/guides/mariadb/private-registry/enterprise-server/index.md‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ This is a specialized case of the generic [private Docker registry](/docs/guides
2626

2727
## No in-cluster license is required
2828

29-
Unlike some other commercial database images, **MariaDB Enterprise Server does not check any license key at runtime.** `mariadbd` boots and runs exactly like the community edition once the image is pulled. Access control is entirely at the container registry level: MariaDB Corporation gates pulls from `docker.mariadb.com` behind your Customer Download Token, the same way any other private registry works. There is no separate license Secret, ConfigMap, or environment variable to configure on the `MariaDB` CR beyond the standard `imagePullSecrets`.
29+
Unlike some other commercial database images, **MariaDB Enterprise Server does not check any license key at runtime.** `mariadbd` boots and runs exactly like the community edition once the image is pulled. Access control is entirely at the container registry level: MariaDB Corporation gates pulls from `docker.mariadb.com` behind your Customer Download Token, the same way any other private registry works. There is no separate license Secret, ConfigMap, or environment variable that `mariadbd` itself reads, beyond the standard `imagePullSecrets`.
30+
31+
**KubeDB itself does ask for one more thing at the API level.** The `11.4.10-enterprise` `MariaDBVersion` catalog entry sets `spec.license.required: true`, mirroring the same `license.required` pattern KubeDB uses for other licensed distributions (e.g. AppsCode's Postgres Enterprise build and Oracle's MySQL Enterprise Edition). This does **not** mean a certificate gets mounted into the container or checked by `mariadbd` &mdash; it means KubeDB's admission webhook requires you to set `spec.license.secretRef` on the `MariaDB` CR, pointing at a Secret you provide, as an explicit administrative record that this deployment is backed by a real MariaDB Enterprise subscription. Any Secret works; nothing reads its contents. If you omit `spec.license`, the webhook rejects the `MariaDB` object with an error naming the `MariaDBVersion` that requires it.
3032

3133
## 1. Create an ImagePullSecret
3234

@@ -62,14 +64,26 @@ spec:
6264
image: docker.io/prom/mysqld-exporter:v0.18.0
6365
initContainer:
6466
image: ghcr.io/kubedb/mariadb-init:0.9.0
67+
license:
68+
required: true
6569
podSecurityPolicies:
6670
databasePolicyName: maria-db
6771
version: 11.4.10
6872
```
6973
70-
`spec.distribution: Enterprise` is descriptive metadata; it does not change how the operator reconciles the database. Only `spec.db.image` and the pull secret determine which image actually runs.
74+
`spec.distribution: Enterprise` is descriptive metadata; it does not change how the operator reconciles the database. `spec.license.required: true` is what makes `spec.license` mandatory on any `MariaDB` using this version (see the callout above). Only `spec.db.image` and the pull secret determine which image actually runs.
75+
76+
## 3. Create a license Secret
77+
78+
Because the catalog entry sets `license.required: true`, every `MariaDB` using it must reference a Secret via `spec.license.secretRef`. Nothing inside KubeDB reads this Secret's contents at runtime; it exists purely so the deployment carries an explicit record of the MariaDB Enterprise subscription backing it. Any non-empty value works, for example your MariaDB customer account ID:
79+
80+
```bash
81+
$ kubectl create secret generic -n demo mariadb-enterprise-license \
82+
--from-literal=license=<your MariaDB customer account ID or subscription reference>
83+
secret/mariadb-enterprise-license created
84+
```
7185

72-
## 3. Deploy a MariaDB using the Enterprise Server image
86+
## 4. Deploy a MariaDB using the Enterprise Server image
7387

7488
```yaml
7589
apiVersion: kubedb.com/v1
@@ -86,6 +100,9 @@ spec:
86100
resources:
87101
requests:
88102
storage: 1Gi
103+
license:
104+
secretRef:
105+
name: mariadb-enterprise-license
89106
podTemplate:
90107
spec:
91108
imagePullSecrets:

0 commit comments

Comments
 (0)