Database
Usage example¶
Example
Info
To create this resource, a Secret
containing Aiven token must be created first.
Apply the resource with:
Verify the newly created Database
:
The output is similar to the following:
Database¶
Database is the Schema for the databases API.
Required
apiVersion
(string). Valueaiven.io/v1alpha1
.kind
(string). ValueDatabase
.metadata
(object). Data that identifies the object, including aname
string and optionalnamespace
.spec
(object). DatabaseSpec defines the desired state of Database. See below for nested schema.
spec¶
Appears on Database
.
DatabaseSpec defines the desired state of Database.
Required
project
(string, Immutable, Pattern:^[a-zA-Z0-9_-]+$
, MaxLength: 63). Identifies the project this resource belongs to.serviceName
(string, Immutable, Pattern:^[a-z][-a-z0-9]+$
, MaxLength: 63). Specifies the name of the service that this resource belongs to.
Optional
authSecretRef
(object). Authentication reference to Aiven token in a secret. See below for nested schema.lcCollate
(string, Immutable, MaxLength: 128). Default string sort order (LC_COLLATE) of the database. Default value: en_US.UTF-8.lcCtype
(string, Immutable, MaxLength: 128). Default character classification (LC_CTYPE) of the database. Default value: en_US.UTF-8.terminationProtection
(boolean). It is a Kubernetes side deletion protections, which prevents the database from being deleted by Kubernetes. It is recommended to enable this for any production databases containing critical data.
authSecretRef¶
Appears on spec
.
Authentication reference to Aiven token in a secret.
Required