You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 67f23a8
Browse filesBrowse the repository at this point in the historyBrowse files
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>
Copy file name to clipboardExpand all lines: docs/guides/mariadb/private-registry/enterprise-server/index.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,9 @@ This is a specialized case of the generic [private Docker registry](/docs/guides
26
26
27
27
## No in-cluster license is required
28
28
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`— 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.
30
32
31
33
## 1. Create an ImagePullSecret
32
34
@@ -62,14 +64,26 @@ spec:
62
64
image: docker.io/prom/mysqld-exporter:v0.18.0
63
65
initContainer:
64
66
image: ghcr.io/kubedb/mariadb-init:0.9.0
67
+
license:
68
+
required: true
65
69
podSecurityPolicies:
66
70
databasePolicyName: maria-db
67
71
version: 11.4.10
68
72
```
69
73
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:
0 commit comments