Spec schema
DBInstanceSpec defines the selected state of DBInstance.
DBInstance:
metadata:
name: string
spec:
dbcParent:
name: string
instanceType: string
nodeCount: integer
readPoolPort: integer
resources:
cpu: integer or string
memory: string or integer
disks:
- name: string
path: string
size: string
Field TypeRequired or optional |
Description |
|---|---|
name
| |
stringRequired |
Name of the DBInstance resource.
|
dbcParent
| |
objectRequired |
The parent DBCluster that this DBInstance replicates from.
|
dbcParent.name
| |
stringRequired |
Name of the referent DBCluster.
|
instanceType
| |
stringOptional |
Indicates the type of the DBInstance. Supports ReadPool type. The default value is ReadPool.
|
nodeCount
| |
integerOptional |
Determines the number of DBNodes to create for this DBInstance. Supported values are between 0 and 20. The default value is 1.
|
readPoolPort
| |
integerOptional |
Dedicated HAProxy frontend port for a ReadPool DBInstance.
|
resources
| |
objectOptional |
Specifies the compute and storage resources used for the instances (DBNodes) belonging to this DBInstance. If omitted, the instance uses the same resources as the DBCluster's Primary Instance.
|
resources.cpu
| |
integer or stringRequired |
The amount of CPU allocated to the database process (for example, 2 or "2").
|
resources.memory
| |
string or integerRequired |
The amount of memory allocated to the database process (for example, "6Gi").
|
resources.disks
| |
list (object)Required | The specifications of the disks allocated to the database process. |
resources.disks[].name
| |
stringRequired |
Name of the disk. The allowed values are: DataDisk and ObsDisk.
|
resources.disks[].path
| |
stringOptional | Path where the disk is mounted on the host file system. |
resources.disks[].size
| |
stringOptional |
Disk size in bytes (for example, "15Gi").
|
Status schema
DBInstanceStatus defines the observed state of DBInstance.
conditions:
- lastTransitionTime: string
message: string
observedGeneration: integer
reason: string
status: string
type: string
criticalIncidents:
- code: string
createTime: string
message: string
messageTemplateParams: object
resource:
component: string
location:
cluster: string
group: string
kind: string
name: string
namespace: string
version: string
stackTrace:
- component: string
message: string
transientUntil: string
endpoints:
- name: string
value: string
observedGeneration: integer
reconciled: boolean
Field TypeRequired or optional |
Description |
|---|---|
conditions
| |
list (object)Optional |
Represents the latest available observations of the DBInstance's current state.
|
conditions[]
| |
objectOptional | Condition describes one aspect of the current state of this API resource. |
conditions[].lastTransitionTime
| |
stringRequired | Indicates when the condition transitioned from one status to another. If this time is unknown, use the time the API field changed. |
conditions[].message
| |
stringRequired | A human-readable string that describes details about the transition. This string can be empty. |
conditions[].observedGeneration
| |
integerOptional |
Represents the .metadata.generation that the condition was set based upon.
|
conditions[].reason
| |
stringRequired |
Contains a programmatic identifier indicating the reason for the condition's last transition. The value is a CamelCase string. Expected values for DBInstance include:
|
conditions[].status
| |
stringRequired |
Status of the condition. The valid values are True, False, and Unknown.
|
conditions[].type
| |
stringRequired |
The type of condition in CamelCase. Expected types include:
|
criticalIncidents
| |
list (object)Optional | List of all active critical incidents. |
criticalIncidents[]
| |
objectOptional | Describes an ongoing critical incident. |
criticalIncidents[].code
| |
stringRequired |
Error code of the error. Error codes are DBSE+numeric strings; for example, DBSE1012.
|
criticalIncidents[].createTime
| |
stringRequired | Timestamp when the incident was created at the origin. |
criticalIncidents[].message
| |
stringOptional | Describes the incident or error that occurred. |
criticalIncidents[].messageTemplateParams
| |
objectOptional | Includes key-value pairs to generate a user-friendly, data-driven message in the UI. |
criticalIncidents[].resource
| |
objectRequired | Contains information about the Database Service component that reported the incident. |
criticalIncidents[].resource.component
| |
stringRequired | Internal identifier of the Database Service subsystem that reported the incident. |
criticalIncidents[].resource.location
| |
objectOptional | The location of the originating resource. |
criticalIncidents[].resource.location.cluster
| |
stringOptional | Name of the cluster of the affected resource. |
criticalIncidents[].resource.location.group
| |
stringOptional | Group name of the resource. |
criticalIncidents[].resource.location.kind
| |
stringOptional | Kind of the resource. |
criticalIncidents[].resource.location.name
| |
stringOptional | Name of the affected resource. |
criticalIncidents[].resource.location.namespace
| |
stringOptional | Namespace of the affected resource. |
criticalIncidents[].resource.location.version
| |
stringOptional | Version of the resource. |
criticalIncidents[].stackTrace
| |
list (object)Optional | Unstructured list of messages from the stack trace. |
criticalIncidents[].stackTrace[].component
| |
stringOptional | Name of the Database Service component that logged the message. |
criticalIncidents[].stackTrace[].message
| |
stringOptional | Logged message. |
criticalIncidents[].transientUntil
| |
stringOptional | Indicates that the issue should be considered transient until the specified time. |
endpoints
| |
list (object)Optional | Endpoints contains all the endpoints through which you can access this instance. |
endpoints[].name
| |
stringRequired |
Name is the name of the endpoint—for example, Read-Only.
|
endpoints[].value
| |
stringRequired | Value contains the endpoint information to connect to and access the instance. |
observedGeneration
| |
integerOptional | The generation observed by the controller. |
reconciled
| |
booleanOptional | Whether the resource was reconciled by the controller. |