Spec schema
DBInstanceSpec defines the desired state of DBInstance.
conditions:
- lastTransactionTime: 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
lastBackupTime: string
nextBackupTime: string
observedGeneration: integer
dbcParent:
name: string
instanceType: string
isStopped: boolean
nodeCount: integer
progressTimeout: string
resources:
cpu:
- disks:
accessModes: string
annotations: object
name: string
selector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels: object
size: string
storageClass: string
volumeName: string
memory: integer or string
schedulingconfig:
nodeaffinity:
preferredDuringSchedulingIgnoredDuringExecution:
preference:
matchExpressions:
- key: string
operator: string
values: string
matchFields:
- key: string
operator: string
values: string
weight: integer
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
matchExpressions:
- key: string
operator: string
values: string
matchFields:
- key: string
operator: string
values: string
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
podAffinityTerm:
labelSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels:
namespaceSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels: object
namespaces: string
topologyKey: string
weight: integer
requiredDuringSchedulingIgnoredDuringExecution:
labelSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels: object
namespaceSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels: object
namespaces: string
topologyKey: string
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
podAffinityTerm:
labelSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels:
namespaceSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels: object
namespaces: string
topologyKey: string
weight: integer
requiredDuringSchedulingIgnoredDuringExecution:
labelSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels: object
namespaceSelector:
matchExpressions:
- key: string
operator: string
values: string
matchLabels: object
namespaces: string
topologyKey: string
tolerations:
- effect: string
key: string
operator: string
tolerationSeconds: integer
value: string
Field TypeRequired or optional |
Description |
|---|---|
dbcParent
| |
objectOptional | DBClusterParent is the DBCluster that this DBInstance replicates from. |
dbcParent.name
| |
stringOptional | Name of the referent. For more information, see Names. |
instanceType
| |
stringOptional | InstanceType indicates the type of the DBInstance. Currently only supports "ReadPool" type. |
isStopped
| |
booleanOptional | IsStopped stops the DBNodes in this DBInstance when true. This field defaults to false. Stopping the DBCluster's Primary DBNode does not automatically stop the DBNodes of ReadPool DBInstances. When stopped, the compute resources (CPU, memory) of the instance are released. However, the DBNode still keeps the storage resource. |
nodeCount
| |
integerRequired | NodeCount determines the number of DBNodes that must be created for this DBInstance. |
progressTimeout
| |
stringOptional | ProgressTimeout determines the number of seconds the controller attempts to provision a DBNode, or which a DBNode could be not-ready for, before it considers the DBNode to have failed. A value of 0 means that no timeout is used. |
resources
| |
objectOptional | Resource specifices the resources used for the Instances -in other words, 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 container. |
resources.disks
| |
objectRequired | The specifications of the disks allocated to the database container. |
resources.disks.accessModes
| |
stringOptional | AccessModes contains the desired access modes for the volume. For more information, see Access Modes. |
resources.disks.annotations
| |
objectOptional | Additional annotations added to the Persistent Volume Claim. This allows integration with other tools. |
resources.disks.name
| |
stringRequired | Name of the disk.The allowed values are: "DataDisk", "LogDisk" , "BackupDisk", and "ObsDisk". |
resources.disks.selector
| |
objectOptional | A label query over volumes to consider for binding. This field is optional. If this field is set, then the volume with matching labels is used as the backing volume for the disk. For more information, see PersistentVolumeClaimSpec. |
resources.disks.selector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
resources.disks.selector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
resources.disks.selector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
resources.disks.selector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
resources.disks.selector.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
resources.disks.size
| |
stringRequired | Disk size in bytes for example, "10Gi" for 10 Gibibytes. The allowed size unit prefixes are: "Ki", "Mi", "Gi", "Ti, "Pi" and "Ei" for 2-base. Also "K", "M", "G", "T, "P" and "E" for 10-base. For more information, see Unit prefix. |
resources.disks.storageClass
| |
stringOptional | StorageClass points to a particular CSI storage class. This field is optional. If the field is not set, then the default CSI storage class for the Kubernetes cluster is used. If there is no default for the Kubernetes cluster, then the Persistence Volume Claim will fail and the database cluster will fail to provision. For more information, see Storage Classes. |
resources.disks.volumeName
| |
stringOptional | VolumeName is the binding reference to the Persistent Volume tied to this disk. This field is optional. This allows to reuse an existing volume. Note that if this field is specified, the value "storageClass" will not take effect. For more information, see Binding. |
resources.memory
| |
integer or stringRequired | The amount of memory allocated to the database container. |
schedulingConfig
| |
objectOptional | SchedulingConfig specifies how the instance should be scheduled on Kubernetes nodes. If omitted, the instance will use the same scheduling config as the DBCluster's Primary Instance. When any field inside the scheduling config changes, it can lead to rescheduling of the Kubernetes pod onto a different node based on the config. |
schedulingConfig.nodeAffinity
| |
objectOptional | NodeAffinity describes node affinity scheduling rules for the instance. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution
| |
objectOptional | The scheduler prefers to schedule pods to nodes that satisfy the affinity expressions specified by this field. The scheduler might choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, in other words, for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum, if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference
| |
objectRequired | A node selector term, associated with the corresponding weight. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions
| |
objectOptional | A list of node selector requirements by the node's labels. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.key
| |
stringRequired | The label key that the selector applies to. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.operator
| |
stringRequired | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist, Gt, and Lt. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.values
| |
stringOptional | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which is interpreted as an integer. This array is replaced during a strategic merge patch. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields
| |
objectOptional | A list of node selector requirements by the node's fields. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.key
| |
stringRequired | The label key that the selector applies to. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.operator
| |
stringRequired | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist, Gt, and Lt. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.values
| |
stringOptional | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which is interpreted as an integer. This array is replaced during a strategic merge patch. |
schedulingConfig.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.weight
| |
integerRequired | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution
| |
objectOptional | If the affinity requirements specified by this field isn't met at scheduling time, the pod is not scheduled onto the node. If the affinity requirements specified by this field aren't met at some point during pod execution, for example, due to an update, the system might or might not try to eventually evict the pod from its node. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms
| |
objectRequired | A list of node selector terms. The terms are ORed. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions
| |
objectOptional | A list of node selector requirements by the node's labels. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.key
| |
stringRequired | The label key that the selector applies to. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.operator
| |
stringRequired | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist, Gt, and Lt. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.values
| |
stringOptional | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which is interpreted as an integer. This array is replaced during a strategic merge patch. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields
| |
objectOptional | A list of node selector requirements by the node's fields. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.key
| |
stringRequired | The label key that the selector applies to. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.operator
| |
stringRequired | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist, Gt, and Lt. |
schedulingConfig.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.values
| |
stringOptional | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which is interpreted as an integer. This array is replaced during a strategic merge patch. |
schedulingConfig.podAffinity
| |
objectOptional | PodAffinity describes pod affinity scheduling rules for the instance. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution
| |
objectOptional | The scheduler prefers to schedule pods to nodes that satisfy the affinity expressions specified by this field. The scheduler might choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights. For each node that meets all of the scheduling requirements -for example, resource request, and requiredDuringScheduling affinity expressions- you compute a sum by iterating through the elements of this field and adding "weight" to the sum, if the node has pods that match the corresponding podAffinityTerm. The nodes with the highest sum are the most preferred. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm
| |
objectRequired | A pod affinity term, associated with the corresponding weight. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector
| |
objectOptional | A label query over a set of resources, in this case, pods. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector
| |
objectOptional | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaces
| |
stringOptional | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaces
| |
stringRequired | This pod must be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces. Co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. |
schedulingConfig.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.weight
| |
integerRequired | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution
| |
objectOptional | If the affinity requirements specified by this field isn't met at scheduling time, the pod is not scheduled onto the node. If the affinity requirements specified by this field aren't met at some point during pod execution -for example, due to a pod label update- the system might or might not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected; in other words, all terms must be satisfied. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector
| |
objectOptional | A label query over a set of resources, in this case, pods. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector
| |
objectOptional | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaces
| |
stringOptional | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaces
| |
stringOptional | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". |
schedulingConfig.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.topologyKey
| |
stringRequired | This pod must be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces. Co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. |
schedulingConfig.podAntiAffinity
| |
stringRequired | This pod must be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces. Co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. |
schedulingConfig.podAntiAffinity
| |
objectOptional | PodAntiAffinity describes pod anti-affinity scheduling rules for the instance. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution
| |
objectOptional | The scheduler prefers to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but the scheduler might choose a node that violates one or more of the expressions The node that is most preferred is the one with the greatest sum of weights, in other words, for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum, if the node has pods that match the corresponding podAffinityTerm. The nodes with the highest sum are the most preferred. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm
| |
objectRequired | A pod affinity term, associated with the corresponding weight. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector
| |
objectOptional | A label query over a set of resources, in this case, pods. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector
| |
objectOptional | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchLabels
| |
stringOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaces
| |
stringOptional | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey
| |
stringRequired | This pod must be co-located (affinity) or not co-located (anti-affinity) with the pods. matching the labelSelector in the specified namespaces. Co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. |
schedulingConfig.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.weight
| |
integerRequired | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution
| |
objectOptional | If the anti-affinity requirements specified by this field isn't met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field aren't met at some point during pod execution - for example, due to a pod label update - the system might or might not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, which means that all terms must be satisfied. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector
| |
objectOptional | A label query over a set of resources, in this case, pods. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector
| |
objectOptional | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions
| |
objectOptional | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.key
| |
stringRequired | key is the label key that the selector applies to. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.operator
| |
stringRequired | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, and DoesNotExist. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.values
| |
stringOptional | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchLabels
| |
objectOptional | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaces
| |
stringOptional | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". |
schedulingConfig.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.topologyKey
| |
stringRequired | This pod must be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces. Co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. |
schedulingConfig.tolerations
| |
objectOptional | Tolerations to enable the management of whether to allow or disallow scheduling an instance on a Kubernetes node that has a specific taint applied. |
schedulingConfig.tolerations.effect
| |
stringOptional | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. |
schedulingConfig.tolerations.key
| |
stringOptional | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists. This combination means to match all values and all keys. |
schedulingConfig.tolerations.operator
| |
stringOptional | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. |
schedulingConfig.tolerations.tolerationSeconds
| |
integerOptional | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values are treated as 0 (evict immediately) by the system. |
schedulingConfig.tolerations.value
| |
stringOptional | Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise it's just a regular string. |
Status schema
DBInstanceStatus defines the observed state of DBInstance.
conditions:
- lastTransitionTime:
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
| |
objectOptional | Conditions represents the latest available observations of the Entity's current state. |
conditions.lastTransitionTime
| |
stringRequired | lastTransitionTime is the last time the condition transitioned from one status to another, which occurs when the underlying condition changed. If the time when the underlying condition changed is unknown, use the time when the API field changed. |
conditions.message
| |
stringRequired | message is a human readable message indicating details about the transition. This can be an empty string. |
conditions.observedGeneration
| |
integerOptional | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. |
conditions.reason
| |
stringRequired | reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types can define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value must be a CamelCase string. This field might not be empty. |
conditions.status
| |
stringRequired | The status of the condition, one of True, False, Unknown. |
conditions.type
| |
stringRequired | type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt). |
criticalIncidents
| |
objectOptional | CriticalIncidents is a flat list of all active Critical Incidents. |
criticalIncidents.code
| |
stringRequired | Code is the error code of this particular error. Error codes are DBSE+numeric strings, like "DBSE1012". |
criticalIncidents.createTime
| |
stringRequired | CreateTime is the timestamp when this Incident was created at the origin. |
criticalIncidents.message
| |
stringOptional | Message describes the incident or error that occurred. |
criticalIncidents.messageTemplateParams
| |
objectOptional | MessageTemplateParams contains key-value pairs necessary for generating a user-friendly data-driven version of Message in the user interface. |
criticalIncidents.resource
| |
objectRequired | Resource contains information about the Database Service component that reported the incident, as well as information about the Kubernetes resource. |
criticalIncidents.resource.component
| |
stringRequired | Component is an internal identifier of the Database Service subsystem that reported the incident. |
criticalIncidents.resource.location
| |
objectOptional | Location |
criticalIncidents.resource.location.cluster
| |
stringOptional | Cluster is the name of the cluster of the affected Kubernetes resource. |
criticalIncidents.resource.location.group
| |
stringOptional | Group is the Group name of the Kubernetes resource. |
criticalIncidents.resource.location.kind
| |
stringOptional | Kind is the Kind of the Kubernetes resource. |
criticalIncidents.resource.location.name
| |
stringOptional | Name is the name of the affected Kubernetes resource. |
criticalIncidents.resource.location.namespace
| |
stringOptional | Namespace is the namespace of the affected Kubernetes resource. |
criticalIncidents.resource.location.version
| |
stringOptional | Group is the Version of the Kubernetes resource. |
criticalIncidents.stackTrace
| |
objectOptional | StackTrace contains an unstructured list of messages from the stack trace. |
criticalIncidents.stackTrace.component
| |
stringOptional | Component is the name of a Database Service component that logged the message. |
criticalIncidents.stackTrace.message
| |
stringOptional | Logged message. |
criticalIncidents.transientUntil
| |
stringOptional | TransientUntil, if present, indicates that the issue must be considered transient until the specified time. |
endpoints
| |
objectOptional | Endpoints are the endpoints from which the DBNodes in the DBInstance can be accessed. |
endpoints.name
| |
stringRequired | Name contains the name of the endpoint. |
endpoints.value
| |
stringOptional | Value contains the endpoint information. |
observedGeneration
| |
integerOptional | The generation observed by the controller. |
reconciled
| |
booleanOptional | Indicates whether the resource is reconciled by the controller. |