MariaDBUser
Kubernetes API reference for the MariaDBUser resource of Entigo Platform (database.entigo.com/v1alpha1).
On this page
Packages:
database.entigo.com/v1alpha1
Section titled “database.entigo.com/v1alpha1”Resource Types:
MariaDBUser
Section titled “MariaDBUser”| Name | Type | Description | Required |
|---|---|---|---|
| apiVersion | string | database.entigo.com/v1alpha1 | true |
| kind | string | MariaDBUser | true |
| metadata | object | Refer to the Kubernetes API documentation for the fields of the metadata field. | true |
| spec | object | false |
MariaDBUser.spec
Section titled “MariaDBUser.spec”| Name | Type | Description | Required |
|---|---|---|---|
| databaseRef | object | DatabaseRef references the database object this user is for | true |
| instanceRef | object | true | |
| privileges | []string | Privileges to be granted.
See https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/grant#privilege-levels
for available privileges. | true |
| grant | object | false | |
| maxConnectionsPerHour | number | MaxConnectionsPerHour sets the number of times an account can connect to the server per hour Default: 5 | false |
| maxQueriesPerHour | number | MaxQueriesPerHour sets the number of queries an account can issue per hour Default: 20 | false |
| maxUpdatesPerHour | number | MaxUpdatesPerHour sets the number of updates an account can issue per hour Default: 10 | false |
| maxUserConnections | number | MaxUserConnections sets The number of simultaneous connections to the server by an account Default: 2 | false |
| name | string | Alternative, i.e. non kubernetes compliant name | false |
| table | string | Tables this grant is for, default * Default: * | false |
MariaDBUser.spec.databaseRef
Section titled “MariaDBUser.spec.databaseRef”DatabaseRef references the database object this user is for
| Name | Type | Description | Required |
|---|---|---|---|
| name | string | true | |
| namespace | string | false |
MariaDBUser.spec.instanceRef
Section titled “MariaDBUser.spec.instanceRef”| Name | Type | Description | Required |
|---|---|---|---|
| name | string | Name of the database instance the user should be created in | true |
MariaDBUser.spec.grant
Section titled “MariaDBUser.spec.grant”| Name | Type | Description | Required |
|---|---|---|---|
| users | []string | An array of user names to be granted. | false |
Basic User
A minimal MariaDB User definition showing the required fields only.apiVersion: database.entigo.com/v1alpha1kind: MariaDBUsermetadata: name: basic-userspec: instanceRef: name: basic-instance databaseRef: name: basic-database privileges: - SELECT - INSERT - UPDATE - DELETEA MariaDB User definition with full privileges and connection limits.
apiVersion: database.entigo.com/v1alpha1kind: MariaDBUsermetadata: name: app-userspec: instanceRef: name: basic-instance databaseRef: name: basic-database table: "*" privileges: - ALL PRIVILEGES maxConnectionsPerHour: 100 maxQueriesPerHour: 1000 maxUpdatesPerHour: 500 maxUserConnections: 10Prerequisites
The MariaDB User requires the following resources applied:MariaDBInstance
Section titled “MariaDBInstance”apiVersion: database.entigo.com/v1alpha1kind: MariaDBInstancemetadata: name: basic-instancespec: allocatedStorage: 20 instanceType: db.t3.microMariaDBDatabase
Section titled “MariaDBDatabase”apiVersion: database.entigo.com/v1alpha1kind: MariaDBDatabasemetadata: name: basic-databasespec: instanceRef: name: basic-instance