MariaDBDatabase
Kubernetes API reference for the MariaDBDatabase resource of Entigo Platform (database.entigo.com/v1alpha1).
On this page
Packages:
database.entigo.com/v1alpha1
Section titled “database.entigo.com/v1alpha1”Resource Types:
MariaDBDatabase
Section titled “MariaDBDatabase”| Name | Type | Description | Required |
|---|---|---|---|
| apiVersion | string | database.entigo.com/v1alpha1 | true |
| kind | string | MariaDBDatabase | true |
| metadata | object | Refer to the Kubernetes API documentation for the fields of the metadata field. | true |
| spec | object | false |
MariaDBDatabase.spec
Section titled “MariaDBDatabase.spec”| Name | Type | Description | Required |
|---|---|---|---|
| instanceRef | object | true | |
| defaultCharacterSet | string | DefaultCharacterSet defines the default character set for this database. | false |
| defaultCollation | string | DefaultCollation defines the default collation for this database. | false |
| deletionProtection | boolean | Prevents accidental deletion of MariaDBDatabase resource Default: true | false |
| name | string | Alternative, i.e. non kubernetes compliant name | false |
MariaDBDatabase.spec.instanceRef
Section titled “MariaDBDatabase.spec.instanceRef”| Name | Type | Description | Required |
|---|---|---|---|
| name | string | Name of the database instance the db should be created in | true |
Basic Database
A minimal MariaDB Database definition showing the required fields only.apiVersion: database.entigo.com/v1alpha1kind: MariaDBDatabasemetadata: name: basic-databasespec: instanceRef: name: basic-instanceA MariaDB Database definition showing character set and collation setup.
apiVersion: database.entigo.com/v1alpha1kind: MariaDBDatabasemetadata: name: database-with-charsetspec: defaultCharacterSet: utf8mb4 defaultCollation: utf8mb4_unicode_ci instanceRef: name: basic-instancePrerequisites
The MariaDB Database requires the following resource applied:MariaDBInstance
Section titled “MariaDBInstance”apiVersion: database.entigo.com/v1alpha1kind: MariaDBInstancemetadata: name: basic-instancespec: allocatedStorage: 20 instanceType: db.t3.micro