集群 API 参考
Packages:
apps.kubeblocks.io/v1alpha1
Resource Types:
- BackupPolicyTemplate
- Cluster
- ClusterDefinition
- ClusterVersion
- ComponentClassDefinition
- ComponentResourceConstraint
- ConfigConstraint
- OpsRequest
BackupPolicyTemplate
BackupPolicyTemplate is the Schema for the BackupPolicyTemplates API (defined by provider)
| Field | Description | ||||||
|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||
| BackupPolicyTemplate | ||||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||
specBackupPolicyTemplateSpec |
| ||||||
statusBackupPolicyTemplateStatus |
Cluster
Cluster is the Schema for the clusters API.
| Field | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||||||||||||||||||||||||
| Cluster | ||||||||||||||||||||||||||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||||||||||||||||||||||||
specClusterSpec |
| ||||||||||||||||||||||||||||
statusClusterStatus |
ClusterDefinition
ClusterDefinition is the Schema for the clusterdefinitions API
| Field | Description | ||||||
|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||
| ClusterDefinition | ||||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||
specClusterDefinitionSpec |
| ||||||
statusClusterDefinitionStatus |
ClusterVersion
ClusterVersion is the Schema for the ClusterVersions API
| Field | Description | ||||
|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||
| ClusterVersion | ||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||
specClusterVersionSpec |
| ||||
statusClusterVersionStatus |
ComponentClassDefinition
ComponentClassDefinition is the Schema for the componentclassdefinitions API
| Field | Description | ||
|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||
| ComponentClassDefinition | ||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||
specComponentClassDefinitionSpec |
| ||
statusComponentClassDefinitionStatus |
ComponentResourceConstraint
ComponentResourceConstraint is the Schema for the componentresourceconstraints API
| Field | Description | ||||
|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||
| ComponentResourceConstraint | ||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||
specComponentResourceConstraintSpec |
|
ConfigConstraint
ConfigConstraint is the Schema for the configconstraint API
| Field | Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||||||||||||||||||
| ConfigConstraint | ||||||||||||||||||||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||||||||||||||||||
specConfigConstraintSpec |
| ||||||||||||||||||||||
statusConfigConstraintStatus |
OpsRequest
OpsRequest is the Schema for the opsrequests API
| Field | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||||||||||||||||||||||||||
| OpsRequest | ||||||||||||||||||||||||||||||
metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||||||||||||||||||||||||||
specOpsRequestSpec |
| ||||||||||||||||||||||||||||||
statusOpsRequestStatus |
AccessMode
(string alias)
(Appears on:ConsensusMember, ConsensusMemberStatus)
AccessMode defines SVC access mode enums.
| Value | Description |
|---|---|
"None" | |
"ReadWrite" | |
"Readonly" |
AccountName
(string alias)
(Appears on:SystemAccountConfig)
AccountName defines system account names.
| Value | Description |
|---|---|
"kbadmin" | |
"kbdataprotection" | |
"kbmonitoring" | |
"kbprobe" | |
"kbreplicator" |
Affinity
(Appears on:ClusterComponentSpec, ClusterSpec)
| Field | Description |
|---|---|
podAntiAffinityPodAntiAffinity | (Optional) podAntiAffinity describes the anti-affinity level of pods within a component. |
topologyKeys[]string | (Optional) topologyKey is the key of node labels. |
nodeLabelsmap[string]string | (Optional) nodeLabels describes that pods must be scheduled to the nodes with the specified node labels. |
tenancyTenancyType | (Optional) tenancy describes how pods are distributed across node. |
AvailabilityPolicyType
(string alias)
(Appears on:ClusterSpec)
AvailabilityPolicyType for cluster affinity policy.
| Value | Description |
|---|---|
"node" | |
"none" | |
"zone" |
BackupPolicy
(Appears on:BackupPolicyTemplateSpec)
| Field | Description |
|---|---|
componentDefRefstring | componentDefRef references componentDef defined in ClusterDefinition spec. Need to |
retentionRetentionSpec | (Optional) retention describe how long the Backup should be retained. if not set, will be retained forever. |
scheduleSchedule | (Optional) schedule policy for backup. |
snapshotSnapshotPolicy | (Optional) the policy for snapshot backup. |
datafileCommonBackupPolicy | (Optional) the policy for datafile backup. |
logfileCommonBackupPolicy | (Optional) the policy for logfile backup. |
BackupPolicyHook
(Appears on:SnapshotPolicy)
BackupPolicyHook defines for the database execute commands before and after backup.
| Field | Description |
|---|---|
preCommands[]string | (Optional) pre backup to perform commands |
postCommands[]string | (Optional) post backup to perform commands |
imagestring | (Optional) exec command with image |
containerNamestring | (Optional) which container can exec command |
BackupPolicyTemplateSpec
(Appears on:BackupPolicyTemplate)
BackupPolicyTemplateSpec defines the desired state of BackupPolicyTemplate
| Field | Description |
|---|---|
clusterDefinitionRefstring | clusterDefinitionRef references ClusterDefinition name, this is an immutable attribute. |
backupPolicies[]BackupPolicy | backupPolicies is a list of backup policy template for the specified componentDefinition. |
identifierstring | (Optional) Identifier is a unique identifier for this BackupPolicyTemplate. |
BackupPolicyTemplateStatus
(Appears on:BackupPolicyTemplate)
BackupPolicyTemplateStatus defines the observed state of BackupPolicyTemplate
BackupRefSpec
(Appears on:RestoreFromSpec)
| Field | Description |
|---|---|
refRefNamespaceName | (Optional) specify a reference backup to restore |
BackupStatusUpdate
(Appears on:BasePolicy)
| Field | Description |
|---|---|
pathstring | (Optional) specify the json path of backup object for patch. |
containerNamestring | (Optional) which container name that kubectl can execute. |
scriptstring | (Optional) the shell Script commands to collect backup status metadata. |
useTargetPodServiceAccountbool | (Optional) useTargetPodServiceAccount defines whether this job requires the service account of the backup target pod. |
updateStageBackupStatusUpdateStage | when to update the backup status, pre: before backup, post: after backup |
BackupStatusUpdateStage
(string alias)
(Appears on:BackupStatusUpdate)
BackupStatusUpdateStage defines the stage of backup status update.
BaseBackupType
(string alias)
BaseBackupType the base backup type, keep synchronized with the BaseBackupType of the data protection API.
BasePolicy
(Appears on:CommonBackupPolicy, SnapshotPolicy)
| Field | Description |
|---|---|
targetTargetInstance | (Optional) target instance for backup. |
backupsHistoryLimitint32 | (Optional) the number of automatic backups to retain. Value must be non-negative integer. |
onFailAttemptedint32 | (Optional) count of backup stop retries on fail. |
backupStatusUpdates[]BackupStatusUpdate | (Optional) define how to update metadata for backup status. |
CPUConstraint
(Appears on:ResourceConstraintRule)
| Field | Description |
|---|---|
maxKubernetes resource.Quantity | (Optional) The maximum count of vcpu cores, [Min, Max] defines a range for valid vcpu cores, and the value in this range |
minKubernetes resource.Quantity | (Optional) The minimum count of vcpu cores, [Min, Max] defines a range for valid vcpu cores, and the value in this range |
stepKubernetes resource.Quantity | (Optional) The minimum granularity of vcpu cores, [Min, Max] defines a range for valid vcpu cores and the value in this range must be |
slots[]Kubernetes resource.Quantity | (Optional) The valid vcpu cores, it’s useful if you want to define valid vcpu cores explicitly. |
CfgFileFormat
(string alias)
(Appears on:FormatterConfig)
CfgFileFormat defines formatter of configuration files.
| Value | Description |
|---|---|
"dotenv" | |
"hcl" | |
"ini" | |
"json" | |
"properties" | |
"props-plus" | |
"redis" | |
"toml" | |
"xml" | |
"yaml" |
CfgReloadType
(string alias)
CfgReloadType defines reload method.
| Value | Description |
|---|---|
"http" | |
"sql" | |
"exec" | |
"tpl" | |
"signal" |
ClassDefRef
(Appears on:ClusterComponentSpec, LastComponentConfiguration, VerticalScaling)
| Field | Description |
|---|---|
namestring | (Optional) Name refers to the name of the ComponentClassDefinition. |
classstring | Class refers to the name of the class that is defined in the ComponentClassDefinition. |
ClusterBackup
(Appears on:ClusterSpec)
| Field | Description |
|---|---|
enabledbool | (Optional) enabled defines whether to enable automated backup. |
retentionPeriodstring | (Optional) retentionPeriod is a time string ending with the ’d’|’D’|‘h’|‘H’ character to describe how long |
methodgithub.com/apecloud/kubeblocks/apis/dataprotection/v1alpha1.BackupMethod | backup method, support: snapshot, backupTool. |
cronExpressionstring | (Optional) the cron expression for schedule, the timezone is in UTC. see https://en.wikipedia.org/wiki/Cron. |
startingDeadlineMinutesint64 | (Optional) startingDeadlineMinutes defines the deadline in minutes for starting the backup job |
repoNamestring | (Optional) repoName is the name of the backupRepo, if not set, will use the default backupRepo. |
pitrEnabledbool | (Optional) pitrEnabled defines whether to enable point-in-time recovery. |
ClusterComponentDefinition
(Appears on:ClusterDefinitionSpec)
ClusterComponentDefinition provides a workload component specification template,
with attributes that strongly work with stateful workloads and day-2 operations
behaviors.
| Field | Description |
|---|---|
namestring | A component definition name, this name could be used as default name of |
descriptionstring | (Optional) The description of component definition. |
workloadTypeWorkloadType | workloadType defines type of the workload. |
characterTypestring | (Optional) characterType defines well-known database component name, such as mongos(mongodb), proxy(redis), mariadb(mysql) |
configSpecs[]ComponentConfigSpec | (Optional) The configSpec field provided by provider, and |
scriptSpecs[]ComponentTemplateSpec | (Optional) The scriptSpec field provided by provider, and |
probesClusterDefinitionProbes | (Optional) probes setting for healthy checks. |
monitorMonitorConfig | (Optional) monitor is monitoring config which provided by provider. |
logConfigs[]LogConfig | (Optional) logConfigs is detail log file config which provided by provider. |
podSpecKubernetes core/v1.PodSpec | (Optional) podSpec define pod spec template of the cluster component. |
serviceServiceSpec | (Optional) service defines the behavior of a service spec. |
statelessSpecStatelessSetSpec | (Optional) statelessSpec defines stateless related spec if workloadType is Stateless. |
statefulSpecStatefulSetSpec | (Optional) statefulSpec defines stateful related spec if workloadType is Stateful. |
consensusSpecConsensusSetSpec | (Optional) consensusSpec defines consensus related spec if workloadType is Consensus, required if workloadType is Consensus. |
replicationSpecReplicationSetSpec | (Optional) replicationSpec defines replication related spec if workloadType is Replication. |
horizontalScalePolicyHorizontalScalePolicy | (Optional) horizontalScalePolicy controls the behavior of horizontal scale. |
systemAccountsSystemAccountSpec | (Optional) Statement to create system account. |
volumeTypes[]VolumeTypeSpec | (Optional) volumeTypes is used to describe the purpose of the volumes For example: NOTE: |
customLabelSpecs[]CustomLabelSpec | (Optional) customLabelSpecs is used for custom label tags which you want to add to the component resources. |
switchoverSpecSwitchoverSpec | (Optional) switchoverSpec defines command to do switchover. |
volumeProtectionSpecVolumeProtectionSpec | (Optional) |
componentDefRef[]ComponentDefRef | (Optional) componentDefRef is used to inject values from other components into the current component. |
ClusterComponentPhase
(string alias)
(Appears on:ClusterComponentStatus, OpsRequestComponentStatus)
ClusterComponentPhase defines the Cluster CR .status.components.phase
| Value | Description |
|---|---|
"Abnormal" | |
"Creating" | |
"Failed" | |
"Running" | |
"Updating" | Abnormal is a sub-state of failed, where one or more workload pods is not in “Running” phase. |
"Stopped" |
ClusterComponentService
(Appears on:ClusterComponentSpec, Expose, LastComponentConfiguration)
| Field | Description |
|---|---|
namestring | Service name |
serviceTypeKubernetes core/v1.ServiceType | (Optional) serviceType determines how the Service is exposed. Valid |
annotationsmap[string]string | (Optional) If ServiceType is LoadBalancer, cloud provider related parameters can be put here |
ClusterComponentSpec
(Appears on:ClusterSpec)
ClusterComponentSpec defines the cluster component spec.
| Field | Description |
|---|---|
namestring | name defines cluster’s component name, this name is also part of Service DNS name, so this name will |
componentDefRefstring | componentDefRef references componentDef defined in ClusterDefinition spec. Need to |
classDefRefClassDefRef | (Optional) classDefRef references the class defined in ComponentClassDefinition. |
monitorbool | (Optional) monitor is a switch to enable monitoring and is set as false by default. |
enabledLogs[]string | (Optional) enabledLogs indicates which log file takes effect in the database cluster. |
replicasint32 | Component replicas. The default value is used in ClusterDefinition spec if not specified. |
affinityAffinity | (Optional) affinity describes affinities specified by users. |
tolerations[]Kubernetes core/v1.Toleration | (Optional) Component tolerations will override ClusterSpec.Tolerations if specified. |
resourcesKubernetes core/v1.ResourceRequirements | (Optional) Resources requests and limits of workload. |
volumeClaimTemplates[]ClusterComponentVolumeClaimTemplate | (Optional) volumeClaimTemplates information for statefulset.spec.volumeClaimTemplates. |
services[]ClusterComponentService | (Optional) Services expose endpoints that can be accessed by clients. |
switchPolicyClusterSwitchPolicy | (Optional) switchPolicy defines the strategy for switchover and failover when workloadType is Replication. |
tlsbool | (Optional) Enables or disables TLS certs. |
issuerIssuer | (Optional) issuer defines provider context for TLS certs. |
serviceAccountNamestring | (Optional) serviceAccountName is the name of the ServiceAccount that running component depends on. |
noCreatePDBbool | (Optional) noCreatePDB defines the PodDisruptionBudget creation behavior and is set to true if creation of PodDisruptionBudget |
ClusterComponentStatus
(Appears on:ClusterStatus)
ClusterComponentStatus records components status.
| Field | Description |
|---|---|
phaseClusterComponentPhase | phase describes the phase of the component and the detail information of the phases are as following: |
messageComponentMessageMap | (Optional) message records the component details message in current phase. |
podsReadybool | (Optional) podsReady checks if all pods of the component are ready. |
podsReadyTimeKubernetes meta/v1.Time | (Optional) podsReadyTime what time point of all component pods are ready, |
consensusSetStatusConsensusSetStatus | (Optional) consensusSetStatus specifies the mapping of role and pod name. |
replicationSetStatusReplicationSetStatus | (Optional) replicationSetStatus specifies the mapping of role and pod name. |
ClusterComponentVersion
(Appears on:ClusterVersionSpec)
ClusterComponentVersion is an application version component spec.
| Field | Description |
|---|---|
componentDefRefstring | componentDefRef reference one of the cluster component definition names in ClusterDefinition API (spec.componentDefs.name). |
configSpecs[]ComponentConfigSpec | (Optional) configSpecs defines a configuration extension mechanism to handle configuration differences between versions, |
systemAccountSpecSystemAccountShortSpec | (Optional) systemAccountSpec define image for the component to connect database or engines. |
versionsContextVersionsContext | versionContext defines containers images’ context for component versions, |
switchoverSpecSwitchoverShortSpec | (Optional) switchoverSpec defines images for the component to do switchover. |
ClusterComponentVolumeClaimTemplate
(Appears on:ClusterComponentSpec)
| Field | Description | ||||||
|---|---|---|---|---|---|---|---|
namestring | Reference | ||||||
specPersistentVolumeClaimSpec | (Optional) spec defines the desired characteristics of a volume requested by a pod author.
|
ClusterDefinitionProbe
(Appears on:ClusterDefinitionProbes)
| Field | Description |
|---|---|
periodSecondsint32 | How often (in seconds) to perform the probe. |
timeoutSecondsint32 | Number of seconds after which the probe times out. Defaults to 1 second. |
failureThresholdint32 | Minimum consecutive failures for the probe to be considered failed after having succeeded. |
commandsClusterDefinitionProbeCMDs | (Optional) commands used to execute for probe. |
ClusterDefinitionProbeCMDs
(Appears on:ClusterDefinitionProbe)
| Field | Description |
|---|---|
writes[]string | (Optional) Write check executed on probe sidecar, used to check workload’s allow write access. |
queries[]string | (Optional) Read check executed on probe sidecar, used to check workload’s readonly access. |
ClusterDefinitionProbes
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
runningProbeClusterDefinitionProbe | (Optional) Probe for DB running check. |
statusProbeClusterDefinitionProbe | (Optional) Probe for DB status check. |
roleProbeClusterDefinitionProbe | (Optional) Probe for DB role changed check. |
roleProbeTimeoutAfterPodsReadyint32 | (Optional) roleProbeTimeoutAfterPodsReady(in seconds), when all pods of the component are ready, |
ClusterDefinitionSpec
(Appears on:ClusterDefinition)
ClusterDefinitionSpec defines the desired state of ClusterDefinition
| Field | Description |
|---|---|
typestring | (Optional) Cluster definition type defines well known application cluster type, e.g. mysql/redis/mongodb |
componentDefs[]ClusterComponentDefinition | componentDefs provides cluster components definitions. |
connectionCredentialmap[string]string | (Optional) Connection credential template used for creating a connection credential Built-in objects are: |
ClusterDefinitionStatus
(Appears on:ClusterDefinition)
ClusterDefinitionStatus defines the observed state of ClusterDefinition
| Field | Description |
|---|---|
phasePhase | ClusterDefinition phase, valid values are |
messagestring | (Optional) Extra message in current phase |
observedGenerationint64 | (Optional) observedGeneration is the most recent generation observed for this |
ClusterMonitor
(Appears on:ClusterSpec)
| Field | Description |
|---|---|
monitoringIntervalKubernetes api utils intstr.IntOrString | (Optional) monitoringInterval specifies interval of monitoring, no monitor if set to 0 |
ClusterNetwork
(Appears on:ClusterSpec)
| Field | Description |
|---|---|
hostNetworkAccessiblebool | (Optional) hostNetworkAccessible specifies whether host network is accessible. It defaults to false |
publiclyAccessiblebool | (Optional) publiclyAccessible specifies whether it is publicly accessible. It defaults to false |
ClusterPhase
(string alias)
(Appears on:ClusterStatus, OpsRequestBehaviour)
ClusterPhase defines the Cluster CR .status.phase
| Value | Description |
|---|---|
"Abnormal" | |
"Creating" | Abnormal is a sub-state of failed, where one of the cluster components has “Failed” or “Abnormal” status phase. |
"Failed" | |
"Running" | REVIEW/TODO: AbnormalClusterPhase provides hybrid, consider remove it if possible |
"Updating" | |
"Stopped" |
ClusterResourceConstraintSelector
(Appears on:ComponentResourceConstraintSpec)
| Field | Description |
|---|---|
clusterDefRefstring | clusterDefRef is the name of the cluster definition. |
components[]ComponentResourceConstraintSelector | selector is used to bind the resource constraint to components. |
ClusterResources
(Appears on:ClusterSpec)
| Field | Description |
|---|---|
cpuKubernetes resource.Quantity | (Optional) cpu resource needed, more info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
memoryKubernetes resource.Quantity | (Optional) memory resource needed, more info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
ClusterSpec
(Appears on:Cluster)
ClusterSpec defines the desired state of Cluster.
| Field | Description |
|---|---|
clusterDefinitionRefstring | Cluster referencing ClusterDefinition name. This is an immutable attribute. |
clusterVersionRefstring | (Optional) Cluster referencing ClusterVersion name. |
terminationPolicyTerminationPolicyType | Cluster termination policy. Valid values are DoNotTerminate, Halt, Delete, WipeOut. |
componentSpecs[]ClusterComponentSpec | List of componentSpecs you want to replace in ClusterDefinition and ClusterVersion. It will replace the field in ClusterDefinition’s and ClusterVersion’s component if type is matching. |
tenancyTenancyType | (Optional) tenancy describes how pods are distributed across node. |
availabilityPolicyAvailabilityPolicyType | (Optional) availabilityPolicy describes the availability policy, including zone, node, and none. |
affinityAffinity | (Optional) affinity is a group of affinity scheduling rules. |
tolerations[]Kubernetes core/v1.Toleration | (Optional) tolerations are attached to tolerate any taint that matches the triple |
replicasint32 | (Optional) replicas specifies the replicas of the first componentSpec, if the replicas of the first componentSpec is specified, this value will be ignored. |
resourcesClusterResources | (Optional) resources specifies the resources of the first componentSpec, if the resources of the first componentSpec is specified, this value will be ignored. |
storageClusterStorage | (Optional) storage specifies the storage of the first componentSpec, if the storage of the first componentSpec is specified, this value will be ignored. |
monitorClusterMonitor | (Optional) monitor specifies the configuration of monitor |
networkClusterNetwork | (Optional) network specifies the configuration of network |
backupClusterBackup | (Optional) cluster backup configuration. |
ClusterStatus
(Appears on:Cluster)
ClusterStatus defines the observed state of Cluster.
| Field | Description |
|---|---|
observedGenerationint64 | (Optional) observedGeneration is the most recent generation observed for this |
phaseClusterPhase | (Optional) phase describes the phase of the Cluster, the detail information of the phases are as following: |
messagestring | (Optional) message describes cluster details message in current phase. |
componentsmap[string]github.com/apecloud/kubeblocks/apis/apps/v1alpha1.ClusterComponentStatus | (Optional) components record the current status information of all components of the cluster. |
clusterDefGenerationint64 | (Optional) clusterDefGeneration represents the generation number of ClusterDefinition referenced. |
conditions[]Kubernetes meta/v1.Condition | (Optional) Describe current state of cluster API Resource, like warning. |
ClusterStorage
(Appears on:ClusterSpec)
| Field | Description |
|---|---|
sizeKubernetes resource.Quantity | (Optional) storage size needed, more info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
ClusterSwitchPolicy
(Appears on:ClusterComponentSpec)
| Field | Description |
|---|---|
typeSwitchPolicyType | (Optional) clusterSwitchPolicy defines type of the switchPolicy when workloadType is Replication. |
ClusterVersionSpec
(Appears on:ClusterVersion)
ClusterVersionSpec defines the desired state of ClusterVersion
| Field | Description |
|---|---|
clusterDefinitionRefstring | ref ClusterDefinition. |
componentVersions[]ClusterComponentVersion | List of components’ containers versioning context, i.e., container image ID, container commands, args., and environments. |
ClusterVersionStatus
(Appears on:ClusterVersion)
ClusterVersionStatus defines the observed state of ClusterVersion
| Field | Description |
|---|---|
phasePhase | (Optional) phase - in list of [Available,Unavailable] |
messagestring | (Optional) A human readable message indicating details about why the ClusterVersion is in this phase. |
observedGenerationint64 | (Optional) generation number |
clusterDefGenerationint64 | (Optional) clusterDefGeneration represents the generation number of ClusterDefinition referenced. |
CmdExecutorConfig
(Appears on:SwitchoverAction, SystemAccountSpec)
CmdExecutorConfig specifies how to perform creation and deletion statements.
| Field | Description |
|---|---|
CommandExecutorEnvItemCommandExecutorEnvItem | (Members of |
CommandExecutorItemCommandExecutorItem | (Members of |
CommandExecutorEnvItem
(Appears on:CmdExecutorConfig, SwitchoverShortSpec, SystemAccountShortSpec)
| Field | Description |
|---|---|
imagestring | image for Connector when executing the command. |
env[]Kubernetes core/v1.EnvVar | (Optional) envs is a list of environment variables. |
CommandExecutorItem
(Appears on:CmdExecutorConfig)
| Field | Description |
|---|---|
command[]string | command to perform statements. |
args[]string | (Optional) args is used to perform statements. |
CommonBackupPolicy
(Appears on:BackupPolicy)
| Field | Description |
|---|---|
BasePolicyBasePolicy | (Members of |
backupToolNamestring | which backup tool to perform database backup, only support one tool. |
ComponentClass
(Appears on:ComponentClassDefinitionStatus, ComponentClassSeries)
| Field | Description |
|---|---|
namestring | (Optional) name is the class name |
args[]string | (Optional) args are variable’s value |
cpuKubernetes resource.Quantity | (Optional) the CPU of the class |
memoryKubernetes resource.Quantity | (Optional) the memory of the class |
ComponentClassDefinitionSpec
(Appears on:ComponentClassDefinition)
ComponentClassDefinitionSpec defines the desired state of ComponentClassDefinition
| Field | Description |
|---|---|
groups[]ComponentClassGroup | (Optional) group defines a list of class series that conform to the same constraint. |
ComponentClassDefinitionStatus
(Appears on:ComponentClassDefinition)
ComponentClassDefinitionStatus defines the observed state of ComponentClassDefinition
| Field | Description |
|---|---|
observedGenerationint64 | (Optional) observedGeneration is the most recent generation observed for this |
classes[]ComponentClass | classes is the list of classes that have been observed for this ComponentClassDefinition |
ComponentClassGroup
(Appears on:ComponentClassDefinitionSpec)
| Field | Description |
|---|---|
templatestring | (Optional) template is a class definition template that uses the Go template syntax and allows for variable declaration. For example: |
vars[]string | (Optional) vars defines the variables declared in the template and will be used to generating the complete class definition by |
series[]ComponentClassSeries | (Optional) series is a series of class definitions. |
ComponentClassSeries
(Appears on:ComponentClassGroup)
| Field | Description |
|---|---|
namingTemplatestring | (Optional) namingTemplate is a template that uses the Go template syntax and allows for referencing variables defined |
classes[]ComponentClass | (Optional) classes are definitions of classes that come in two forms. In the first form, only ComponentClass.Args |
ComponentConfigSpec
(Appears on:ClusterComponentDefinition, ClusterComponentVersion)
| Field | Description |
|---|---|
ComponentTemplateSpecComponentTemplateSpec | (Members of |
keys[]string | (Optional) Specify a list of keys. |
lazyRenderedConfigSpecLazyRenderedTemplateSpec | (Optional) lazyRenderedConfigSpec is optional: specify the secondary rendered config spec. |
constraintRefstring | (Optional) Specify the name of the referenced the configuration constraints object. |
asEnvFrom[]string | (Optional) asEnvFrom is optional: the list of containers will be injected into EnvFrom. |
ComponentDefRef
(Appears on:ClusterComponentDefinition)
ComponentDefRef is used to select the component and its fields to be referenced.
| Field | Description |
|---|---|
componentDefNamestring | componentDefName is the name of the componentDef to select. |
failurePolicyFailurePolicyType | (Optional) failurePolicy is the failure policy of the component. |
componentRefEnv[]ComponentRefEnv | (Optional) componentRefEnv specifies a list of values to be injected as env variables to each component. |
ComponentMessageMap
(map[string]string alias)
(Appears on:ClusterComponentStatus)
ComponentNameSet
(map[string]struct alias)
ComponentOps
(Appears on:Expose, HorizontalScaling, OpsRequestSpec, Reconfigure, ScriptSpec, Switchover, VerticalScaling, VolumeExpansion)
ComponentOps defines the common variables of component scope operations.
| Field | Description |
|---|---|
componentNamestring | componentName cluster component name. |
ComponentRefEnv
(Appears on:ComponentDefRef)
ComponentRefEnv specifies name and value of an env.
| Field | Description |
|---|---|
namestring | name is the name of the env to be injected, and it must be a C identifier. |
valuestring | (Optional) value is the value of the env to be injected. |
valueFromComponentValueFrom | (Optional) valueFrom specifies the source of the env to be injected. |
ComponentResourceConstraintSelector
(Appears on:ClusterResourceConstraintSelector)
| Field | Description |
|---|---|
componentDefRefstring | componentDefRef is the name of the component definition in the cluster definition. |
rules[]string | rules are the constraint rules that will be applied to the component. |
ComponentResourceConstraintSpec
(Appears on:ComponentResourceConstraint)
ComponentResourceConstraintSpec defines the desired state of ComponentResourceConstraint
| Field | Description |
|---|---|
rules[]ResourceConstraintRule | Component resource constraint rules. |
selector[]ClusterResourceConstraintSelector | (Optional) selector is used to bind the resource constraint to cluster definitions. |
ComponentResourceKey
(string alias)
ComponentResourceKey defines the resource key of component, such as pod/pvc.
| Value | Description |
|---|---|
"pods" |
ComponentTemplateSpec
(Appears on:ClusterComponentDefinition, ComponentConfigSpec)
| Field | Description |
|---|---|
namestring | Specify the name of configuration template. |
templateRefstring | Specify the name of the referenced the configuration template ConfigMap object. |
namespacestring | (Optional) Specify the namespace of the referenced the configuration template ConfigMap object. |
volumeNamestring | volumeName is the volume name of PodTemplate, which the configuration file produced through the configuration |
defaultModeint32 | (Optional) defaultMode is optional: mode bits used to set permissions on created files by default. |
ComponentValueFrom
(Appears on:ComponentRefEnv)
| Field | Description |
|---|---|
typeComponentValueFromType | type is the type of the source to select. There are three types: |
fieldPathstring | (Optional) fieldRef is the jsonpath of the source to select when type is |
formatstring | (Optional) format is the format of each headless service address. |
joinWithstring | (Optional) joinWith is the string to join the values of headless service addresses. |
ComponentValueFromType
(string alias)
(Appears on:ComponentValueFrom)
ComponentValueFromType specifies the type of component value from.
| Value | Description |
|---|---|
"FieldRef" | |
"HeadlessServiceRef" | |
"ServiceRef" |
ConfigConstraintPhase
(string alias)
(Appears on:ConfigConstraintStatus)
ConfigConstraintPhase defines the ConfigConstraint CR .status.phase
| Value | Description |
|---|---|
"Available" | |
"Deleting" | |
"Unavailable" |
ConfigConstraintSpec
(Appears on:ConfigConstraint)
ConfigConstraintSpec defines the desired state of ConfigConstraint
| Field | Description |
|---|---|
reloadOptionsReloadOptions | (Optional) reloadOptions indicates whether the process supports reload. |
toolsImageSpecToolsImageSpec | (Optional) toolConfig used to config init container. |
downwardAPIOptions[]DownwardAPIOption | (Optional) downwardAPIOptions is used to watch pod fields. |
scriptConfigs[]ScriptConfig | (Optional) scriptConfigs, list of ScriptConfig, witch these scripts can be used by volume trigger,downward trigger, or tool image |
cfgSchemaTopLevelNamestring | (Optional) cfgSchemaTopLevelName is cue type name, which generates openapi schema. |
configurationSchemaCustomParametersValidation | (Optional) configurationSchema imposes restrictions on database parameter’s rule. |
staticParameters[]string | (Optional) staticParameters, list of StaticParameter, modifications of them trigger a process restart. |
dynamicParameters[]string | (Optional) dynamicParameters, list of DynamicParameter, modifications of them trigger a config dynamic reload without process restart. |
immutableParameters[]string | (Optional) immutableParameters describes parameters that prohibit user from modification. |
selectorKubernetes meta/v1.LabelSelector | selector is used to match the label on the pod, |
formatterConfigFormatterConfig | formatterConfig describes the format of the configuration file, the controller |
ConfigConstraintStatus
(Appears on:ConfigConstraint)
ConfigConstraintStatus defines the observed state of ConfigConstraint.
| Field | Description |
|---|---|
phaseConfigConstraintPhase | (Optional) phase is status of configuration template, when set to CCAvailablePhase, it can be referenced by ClusterDefinition or ClusterVersion. |
messagestring | (Optional) message field describes the reasons of abnormal status. |
observedGenerationint64 | (Optional) observedGeneration is the latest generation observed for this |
Configuration
(Appears on:Reconfigure)
| Field | Description |
|---|---|
namestring | name is a config template name. |
policyUpgradePolicy | (Optional) policy defines the upgrade policy. |
keys[]ParameterConfig | keys is used to set the parameters to be updated. |
ConfigurationStatus
(Appears on:ReconfiguringStatus)
| Field | Description |
|---|---|
namestring | name is a config template name. |
updatePolicyUpgradePolicy | (Optional) updatePolicy describes the policy of reconfiguring. |
statusstring | (Optional) status describes the current state of the reconfiguring state machine. |
succeedCountint32 | (Optional) succeedCount describes the number of successful reconfiguring. |
expectedCountint32 | (Optional) expectedCount describes the number of expected reconfiguring. |
lastStatusstring | (Optional) lastStatus describes the last status for the reconfiguring controller. |
lastAppliedConfigurationmap[string]string | (Optional) LastAppliedConfiguration describes the last configuration. |
updatedParametersUpdatedParameters | (Optional) updatedParameters describes the updated parameters. |
ConnectionCredentialKey
(Appears on:TargetInstance)
| Field | Description |
|---|---|
passwordKeystring | (Optional) the key of password in the ConnectionCredential secret. |
usernameKeystring | (Optional) the key of username in the ConnectionCredential secret. |
ConsensusMember
(Appears on:ConsensusSetSpec)
| Field | Description |
|---|---|
namestring | name, role name. |
accessModeAccessMode | accessMode, what service this member capable. |
replicasint32 | (Optional) replicas, number of Pods of this role. |
ConsensusMemberStatus
(Appears on:ConsensusSetStatus)
| Field | Description |
|---|---|
namestring | Defines the role name. |
accessModeAccessMode | accessMode defines what service this pod provides. |
podstring | Pod name. |
ConsensusSetSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
StatefulSetSpecStatefulSetSpec | (Members of |
leaderConsensusMember | leader, one single leader. |
followers[]ConsensusMember | (Optional) followers, has voting right but not Leader. |
learnerConsensusMember | (Optional) learner, no voting right. |
ConsensusSetStatus
(Appears on:ClusterComponentStatus)
| Field | Description |
|---|---|
leaderConsensusMemberStatus | Leader status. |
followers[]ConsensusMemberStatus | (Optional) Followers status. |
learnerConsensusMemberStatus | (Optional) Learner status. |
CustomLabelSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
keystring | key name of label |
valuestring | value of label |
resources[]GVKResource | resources defines the resources to be labeled. |
CustomParametersValidation
(Appears on:ConfigConstraintSpec)
| Field | Description |
|---|---|
schemaKubernetes api extensions v1.JSONSchemaProps | schema provides a way for providers to validate the changed parameters through json. |
cuestring | (Optional) cue that to let provider verify user configuration through cue language. |
DownwardAPIOption
(Appears on:ConfigConstraintSpec)
| Field | Description |
|---|---|
namestring | Specify the name of the field. |
mountPointstring | mountPoint is the mount point of the scripts file. |
items[]Kubernetes core/v1.DownwardAPIVolumeFile | Items is a list of downward API volume file |
command[]string | (Optional) command used to execute for downwrad api. |
ExporterConfig
(Appears on:MonitorConfig)
| Field | Description |
|---|---|
scrapePortKubernetes api utils intstr.IntOrString | scrapePort is exporter port for Time Series Database to scrape metrics. |
scrapePathstring | (Optional) scrapePath is exporter url path for Time Series Database to scrape metrics. |
Expose
(Appears on:OpsRequestSpec)
| Field | Description |
|---|---|
ComponentOpsComponentOps | (Members of |
services[]ClusterComponentService | Setting the list of services to be exposed. |
FailurePolicyType
(string alias)
(Appears on:ComponentDefRef)
FailurePolicyType specifies the type of failure policy
| Value | Description |
|---|---|
"Fail" | ReportError means that an error will be reported. |
"Ignore" | Ignore means that an error will be ignored but logged. |
FormatterConfig
(Appears on:ConfigConstraintSpec)
| Field | Description |
|---|---|
FormatterOptionsFormatterOptions | (Members of The FormatterOptions represents the special options of configuration file. |
formatCfgFileFormat | The configuration file format. Valid values are ini, xml, yaml, json, ini: a configuration file that consists of a text-based content with a structure and syntax comprising key–value pairs for properties, reference wiki: https://en.wikipedia.org/wiki/INI_file |
FormatterOptions
(Appears on:FormatterConfig)
FormatterOptions represents the special options of configuration file.
Only one of its members may be specified.
| Field | Description |
|---|---|
iniConfigIniConfig | (Optional) iniConfig represents the ini options. |
GVKResource
(Appears on:CustomLabelSpec)
| Field | Description |
|---|---|
gvkstring | gvk is Group/Version/Kind, for example “v1/Pod”, “apps/v1/StatefulSet”, etc. |
selectormap[string]string | (Optional) selector is a label query over a set of resources. |
HScaleDataClonePolicyType
(string alias)
(Appears on:HorizontalScalePolicy)
HScaleDataClonePolicyType defines data clone policy when horizontal scaling.
| Value | Description |
|---|---|
"CloneVolume" | |
"Snapshot" | |
"None" |
HorizontalScalePolicy
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
typeHScaleDataClonePolicyType | (Optional) type controls what kind of data synchronization do when component scale out. |
backupPolicyTemplateNamestring | (Optional) BackupPolicyTemplateName reference the backup policy template. |
volumeMountsNamestring | (Optional) volumeMountsName defines which volumeMount of the container to do backup, |
HorizontalScaling
(Appears on:OpsRequestSpec)
HorizontalScaling defines the variables of horizontal scaling operation
| Field | Description |
|---|---|
ComponentOpsComponentOps | (Members of |
replicasint32 | replicas for the workloads. |
IniConfig
(Appears on:FormatterOptions)
| Field | Description |
|---|---|
sectionNamestring | (Optional) sectionName describes ini section. |
Issuer
(Appears on:ClusterComponentSpec)
Issuer defines Tls certs issuer
| Field | Description |
|---|---|
nameIssuerName | Name of issuer. |
secretRefTLSSecretRef | (Optional) secretRef. TLS certs Secret reference |
IssuerName
(string alias)
(Appears on:Issuer)
IssuerName defines Tls certs issuer name
| Value | Description |
|---|---|
"KubeBlocks" | IssuerKubeBlocks Certificates signed by KubeBlocks Operator. |
"UserProvided" | IssuerUserProvided User provided own CA-signed certificates. |
KBAccountType
(byte alias)
KBAccountType is used for bitwise operation.
| Value | Description |
|---|---|
0 |
LastComponentConfiguration
(Appears on:LastConfiguration)
| Field | Description |
|---|---|
replicasint32 | (Optional) replicas are the last replicas of the component. |
ResourceRequirementsKubernetes core/v1.ResourceRequirements | (Members of the last resources of the component. |
classDefRefClassDefRef | (Optional) classDefRef reference class defined in ComponentClassDefinition. |
volumeClaimTemplates[]OpsRequestVolumeClaimTemplate | (Optional) volumeClaimTemplates records the last volumeClaimTemplates of the component. |
services[]ClusterComponentService | (Optional) services records the last services of the component. |
targetResourcesmap[github.com/apecloud/kubeblocks/apis/apps/v1alpha1.ComponentResourceKey][]string | (Optional) targetResources records the affecting target resources information for the component. |
LastConfiguration
(Appears on:OpsRequestStatus)
| Field | Description |
|---|---|
clusterVersionRefstring | (Optional) clusterVersionRef references ClusterVersion name. |
componentsmap[string]github.com/apecloud/kubeblocks/apis/apps/v1alpha1.LastComponentConfiguration | (Optional) components records last configuration of the component. |
LazyRenderedTemplateSpec
(Appears on:ComponentConfigSpec)
| Field | Description |
|---|---|
templateRefstring | Specify the name of the referenced the configuration template ConfigMap object. |
namespacestring | (Optional) Specify the namespace of the referenced the configuration template ConfigMap object. |
policyMergedPolicy | (Optional) policy defines how to merge external imported templates into component templates. |
LetterCase
(string alias)
(Appears on:PasswordConfig)
LetterCase defines cases to use in password generation.
| Value | Description |
|---|---|
"LowerCases" | |
"MixedCases" | |
"UpperCases" |
LogConfig
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
namestring | name log type name, such as slow for MySQL slow log file. |
filePathPatternstring | filePathPattern log file path pattern which indicate how to find this file |
MemoryConstraint
(Appears on:ResourceConstraintRule)
| Field | Description |
|---|---|
sizePerCPUKubernetes resource.Quantity | (Optional) The size of memory per vcpu core. |
maxPerCPUKubernetes resource.Quantity | (Optional) The maximum size of memory per vcpu core, [MinPerCPU, MaxPerCPU] defines a range for valid memory size per vcpu core. |
minPerCPUKubernetes resource.Quantity | (Optional) The minimum size of memory per vcpu core, [MinPerCPU, MaxPerCPU] defines a range for valid memory size per vcpu core. |
MergedPolicy
(string alias)
(Appears on:LazyRenderedTemplateSpec)
MergedPolicy defines how to merge external imported templates into component templates.
| Value | Description |
|---|---|
"none" | |
"add" | |
"patch" | |
"replace" |
MonitorConfig
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
builtInbool | (Optional) builtIn is a switch to enable KubeBlocks builtIn monitoring. |
exporterConfigExporterConfig | (Optional) exporterConfig provided by provider, which specify necessary information to Time Series Database. |
OpsPhase
(string alias)
(Appears on:OpsRequestStatus)
OpsPhase defines opsRequest phase.
| Value | Description |
|---|---|
"Cancelled" | |
"Cancelling" | |
"Creating" | |
"Failed" | |
"Pending" | |
"Running" | |
"Succeed" |
OpsRecorder
| Field | Description |
|---|---|
namestring | name OpsRequest name |
typeOpsType | clusterPhase the cluster phase when the OpsRequest is running |
OpsRequestBehaviour
| Field | Description |
|---|---|
FromClusterPhases[]ClusterPhase | |
ToClusterPhaseClusterPhase | |
ProcessingReasonInClusterConditionstring |
OpsRequestComponentStatus
(Appears on:OpsRequestStatus)
| Field | Description |
|---|---|
phaseClusterComponentPhase | (Optional) phase describes the component phase, reference Cluster.status.component.phase. |
lastFailedTimeKubernetes meta/v1.Time | (Optional) lastFailedTime is the last time the component phase transitioned to Failed or Abnormal. |
progressDetails[]ProgressStatusDetail | (Optional) progressDetails describes the progress details of the component for this operation. |
workloadTypeWorkloadType | (Optional) workloadType references workload type of component in ClusterDefinition. |
reasonstring | (Optional) reason describes the reason for the component phase. |
messagestring | (Optional) message is a human-readable message indicating details about this operation. |
OpsRequestSpec
(Appears on:OpsRequest)
OpsRequestSpec defines the desired state of OpsRequest
| Field | Description |
|---|---|
clusterRefstring | clusterRef references clusterDefinition. |
cancelbool | (Optional) cancel defines the action to cancel the Pending/Creating/Running opsRequest, supported types: [VerticalScaling, HorizontalScaling]. |
typeOpsType | type defines the operation type. |
ttlSecondsAfterSucceedint32 | (Optional) ttlSecondsAfterSucceed OpsRequest will be deleted after TTLSecondsAfterSucceed second when OpsRequest.status.phase is Succeed. |
upgradeUpgrade | (Optional) upgrade specifies the cluster version by specifying clusterVersionRef. |
horizontalScaling[]HorizontalScaling | (Optional) horizontalScaling defines what component need to horizontal scale the specified replicas. |
volumeExpansion[]VolumeExpansion | (Optional) volumeExpansion defines what component and volumeClaimTemplate need to expand the specified storage. |
restart[]ComponentOps | (Optional) restart the specified components. |
switchover[]Switchover | (Optional) switchover the specified components. |
verticalScaling[]VerticalScaling | (Optional) verticalScaling defines what component need to vertical scale the specified compute resources. |
reconfigureReconfigure | (Optional) reconfigure defines the variables that need to input when updating configuration. |
expose[]Expose | (Optional) expose defines services the component needs to expose. |
restoreFromRestoreFromSpec | (Optional) cluster RestoreFrom backup or point in time |
ttlSecondsBeforeAbortint32 | (Optional) ttlSecondsBeforeAbort OpsRequest will wait at most TTLSecondsBeforeAbort seconds for start-conditions to be met. |
scriptSpecScriptSpec | (Optional) scriptSpec defines the script to be executed. |
OpsRequestStatus
(Appears on:OpsRequest)
OpsRequestStatus defines the observed state of OpsRequest
| Field | Description |
|---|---|
clusterGenerationint64 | (Optional) ClusterGeneration records the cluster generation after handling the opsRequest action. |
phaseOpsPhase | phase describes OpsRequest phase. |
progressstring | |
lastConfigurationLastConfiguration | (Optional) lastConfiguration records the last configuration before this operation take effected. |
componentsmap[string]github.com/apecloud/kubeblocks/apis/apps/v1alpha1.OpsRequestComponentStatus | (Optional) components defines the recorded the status information of changed components for operation request. |
startTimestampKubernetes meta/v1.Time | (Optional) startTimestamp The time when the OpsRequest started processing. |
completionTimestampKubernetes meta/v1.Time | (Optional) completionTimestamp defines the OpsRequest completion time. |
cancelTimestampKubernetes meta/v1.Time | (Optional) CancelTimestamp defines cancel time. |
reconfiguringStatusReconfiguringStatus | (Optional) reconfiguringStatus defines the status information of reconfiguring. |
conditions[]Kubernetes meta/v1.Condition | (Optional) conditions describes opsRequest detail status. |
OpsRequestVolumeClaimTemplate
(Appears on:LastComponentConfiguration, VolumeExpansion)
| Field | Description |
|---|---|
storageKubernetes resource.Quantity | Request storage size. |
namestring | name references volumeClaimTemplate name from cluster components. |
OpsType
(string alias)
(Appears on:OpsRecorder, OpsRequestSpec)
OpsType defines operation types.
| Value | Description |
|---|---|
"DataScript" | |
"Expose" | StartType the start operation will start the pods which is deleted in stop operation. |
"HorizontalScaling" | |
"Reconfiguring" | |
"Restart" | |
"Start" | StopType the stop operation will delete all pods in a cluster concurrently. |
"Stop" | RestartType the restart operation is a special case of the rolling update operation. |
"Switchover" | |
"Upgrade" | |
"VerticalScaling" | |
"VolumeExpansion" |
ParameterConfig
(Appears on:Configuration)
| Field | Description |
|---|---|
keystring | key indicates the key name of ConfigMap. |
parameters[]ParameterPair | (Optional) Setting the list of parameters for a single configuration file. |
fileContentstring | (Optional) fileContent indicates the configuration file content. |
ParameterPair
(Appears on:ParameterConfig)
| Field | Description |
|---|---|
keystring | key is name of the parameter to be updated. |
valuestring | (Optional) parameter values to be updated. |
PasswordConfig
(Appears on:SystemAccountSpec)
PasswordConfig helps provide to customize complexity of password generation pattern.
| Field | Description |
|---|---|
lengthint32 | (Optional) length defines the length of password. |
numDigitsint32 | (Optional) numDigits defines number of digits. |
numSymbolsint32 | (Optional) numSymbols defines number of symbols. |
letterCaseLetterCase | (Optional) letterCase defines to use lower-cases, upper-cases or mixed-cases of letters. |
PersistentVolumeClaimSpec
(Appears on:ClusterComponentVolumeClaimTemplate)
| Field | Description |
|---|---|
accessModes[]Kubernetes core/v1.PersistentVolumeAccessMode | (Optional) accessModes contains the desired access modes the volume should have. |
resourcesKubernetes core/v1.ResourceRequirements | (Optional) resources represents the minimum resources the volume should have. |
storageClassNamestring | (Optional) storageClassName is the name of the StorageClass required by the claim. |
Phase
(string alias)
(Appears on:ClusterDefinitionStatus, ClusterVersionStatus)
Phase defines the ClusterDefinition and ClusterVersion CR .status.phase
| Value | Description |
|---|---|
"Available" | |
"Unavailable" |
PodAntiAffinity
(string alias)
(Appears on:Affinity)
PodAntiAffinity defines pod anti-affinity strategy.
| Value | Description |
|---|---|
"Preferred" | |
"Required" |
PointInTimeRefSpec
(Appears on:RestoreFromSpec)
| Field | Description |
|---|---|
timeKubernetes meta/v1.Time | (Optional) specify the time point to restore, with UTC as the time zone. |
refRefNamespaceName | (Optional) specify a reference source cluster to restore |
ProgressStatus
(string alias)
(Appears on:ProgressStatusDetail)
ProgressStatus defines the status of the opsRequest progress.
| Value | Description |
|---|---|
"Failed" | |
"Pending" | |
"Processing" | |
"Succeed" |
ProgressStatusDetail
(Appears on:OpsRequestComponentStatus)
| Field | Description |
|---|---|
groupstring | (Optional) group describes which group the current object belongs to. |
objectKeystring | objectKey is the unique key of the object. |
statusProgressStatus | status describes the state of processing the object. |
messagestring | (Optional) message is a human readable message indicating details about the object condition. |
startTimeKubernetes meta/v1.Time | (Optional) startTime is the start time of object processing. |
endTimeKubernetes meta/v1.Time | (Optional) endTime is the completion time of object processing. |
ProtectedVolume
(Appears on:VolumeProtectionSpec)
| Field | Description |
|---|---|
namestring | (Optional) Name of volume to protect. |
highWatermarkint | (Optional) Volume specified high watermark threshold, it will override the component level threshold. |
ProvisionPolicy
(Appears on:SystemAccountConfig)
ProvisionPolicy defines the policy details for creating accounts.
| Field | Description |
|---|---|
typeProvisionPolicyType | type defines the way to provision an account, either |
scopeProvisionScope | scope is the scope to provision account, and the scope could be |
statementsProvisionStatements | (Optional) statements will be used when Type is CreateByStmt. |
secretRefProvisionSecretRef | (Optional) secretRef will be used when Type is ReferToExisting. |
ProvisionPolicyType
(string alias)
(Appears on:ProvisionPolicy)
ProvisionPolicyType defines the policy for creating accounts.
| Value | Description |
|---|---|
"CreateByStmt" | CreateByStmt will create account w.r.t. deletion and creation statement given by provider. |
"ReferToExisting" | ReferToExisting will not create account, but create a secret by copying data from referred secret file. |
ProvisionScope
(string alias)
(Appears on:ProvisionPolicy)
ProvisionScope defines the scope (within component) of provision.
| Value | Description |
|---|---|
"AllPods" | AllPods will create accounts for all pods belong to the component. |
"AnyPods" | AndyPods will only create accounts on one pod. |
ProvisionSecretRef
(Appears on:ProvisionPolicy)
ProvisionSecretRef defines the information of secret referred to.
| Field | Description |
|---|---|
namestring | name refers to the name of the secret. |
namespacestring | namespace refers to the namespace of the secret. |
ProvisionStatements
(Appears on:ProvisionPolicy)
ProvisionStatements defines the statements used to create accounts.
| Field | Description |
|---|---|
creationstring | creation specifies statement how to create this account with required privileges. |
updatestring | (Optional) update specifies statement how to update account’s password. |
deletionstring | (Optional) deletion specifies statement how to delete this account. |
Reconfigure
(Appears on:OpsRequestSpec)
Reconfigure defines the variables that need to input when updating configuration.
| Field | Description |
|---|---|
ComponentOpsComponentOps | (Members of |
configurations[]Configuration | configurations defines which components perform the operation. |
ReconfiguringStatus
(Appears on:OpsRequestStatus)
| Field | Description |
|---|---|
configurationStatus[]ConfigurationStatus | configurationStatus describes the status of the component reconfiguring. |
RefNamespaceName
(Appears on:BackupRefSpec, PointInTimeRefSpec)
| Field | Description |
|---|---|
namestring | (Optional) specified the name |
namespacestring | (Optional) specified the namespace |
ReloadOptions
(Appears on:ConfigConstraintSpec)
ReloadOptions defines reload options
Only one of its members may be specified.
| Field | Description |
|---|---|
unixSignalTriggerUnixSignalTrigger | (Optional) unixSignalTrigger used to reload by sending a signal. |
shellTriggerShellTrigger | (Optional) shellTrigger performs the reload command. |
tplScriptTriggerTPLScriptTrigger | (Optional) goTplTrigger performs the reload command. |
ReplicationMemberStatus
(Appears on:ReplicationSetStatus)
| Field | Description |
|---|---|
podstring | Pod name. |
ReplicationSetSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
StatefulSetSpecStatefulSetSpec | (Members of |
ReplicationSetStatus
(Appears on:ClusterComponentStatus)
| Field | Description |
|---|---|
primaryReplicationMemberStatus | Primary status. |
secondaries[]ReplicationMemberStatus | (Optional) Secondaries status. |
ResourceConstraintRule
(Appears on:ComponentResourceConstraintSpec)
| Field | Description |
|---|---|
namestring | The name of the constraint. |
cpuCPUConstraint | The constraint for vcpu cores. |
memoryMemoryConstraint | The constraint for memory size. |
storageStorageConstraint | (Optional) The constraint for storage size. |
RestoreFromSpec
(Appears on:OpsRequestSpec)
| Field | Description |
|---|---|
backup[]BackupRefSpec | (Optional) use the backup name and component name for restore, support for multiple components’ recovery. |
pointInTimePointInTimeRefSpec | (Optional) specified the point in time to recovery |
RetentionSpec
(Appears on:BackupPolicy)
| Field | Description |
|---|---|
ttlstring | (Optional) ttl is a time string ending with the ’d’|’D’|‘h’|‘H’ character to describe how long |
Schedule
(Appears on:BackupPolicy)
| Field | Description |
|---|---|
startingDeadlineMinutesint64 | (Optional) startingDeadlineMinutes defines the deadline in minutes for starting the backup job |
snapshotSchedulePolicy | (Optional) schedule policy for snapshot backup. |
datafileSchedulePolicy | (Optional) schedule policy for datafile backup. |
logfileSchedulePolicy | (Optional) schedule policy for logfile backup. |
SchedulePolicy
(Appears on:Schedule)
| Field | Description |
|---|---|
cronExpressionstring | the cron expression for schedule, the timezone is in UTC. see https://en.wikipedia.org/wiki/Cron. |
enablebool | enable or disable the schedule. |
ScriptConfig
(Appears on:ConfigConstraintSpec, TPLScriptTrigger)
| Field | Description |
|---|---|
scriptConfigMapRefstring | scriptConfigMapRef used to execute for reload. |
namespacestring | (Optional) Specify the namespace of the referenced the tpl script ConfigMap object. |
ScriptFrom
(Appears on:ScriptSpec)
ScriptFrom defines the script to be executed from configMap or secret.
| Field | Description |
|---|---|
configMapRef[]Kubernetes core/v1.ConfigMapKeySelector | (Optional) configMapRef defines the configMap to be executed. |
secretRef[]Kubernetes core/v1.SecretKeySelector | (Optional) secretRef defines the secret to be executed. |
ScriptSecret
(Appears on:ScriptSpec)
ScriptSecret defines the secret to be used to execute the script.
| Field | Description |
|---|---|
namestring | name is the name of the secret. |
usernameKeystring | (Optional) usernameKey field is used to specify the username of the secret. |
passwordKeystring | (Optional) passwordKey field is used to specify the password of the secret. |
ScriptSpec
(Appears on:OpsRequestSpec)
ScriptSpec defines the script to be executed. It is not a general purpose script executor.
It is designed to execute the script to perform some specific operations, such as create database, create user, etc.
It is applicable for engines, such as MySQL, PostgreSQL, Redis, MongoDB, etc.
| Field | Description |
|---|---|
ComponentOpsComponentOps | (Members of |
imagestring | (Optional) exec command with image, by default use the image of kubeblocks-datascript. |
secretScriptSecret | (Optional) secret defines the secret to be used to execute the script. |
script[]string | (Optional) script defines the script to be executed. |
scriptFromScriptFrom | (Optional) scriptFrom defines the script to be executed from configMap or secret. |
ScriptSpecSelector
(Appears on:SwitchoverAction)
| Field | Description |
|---|---|
namestring | ScriptSpec name of the referent, refer to componentDefs[x].scriptSpecs[y].Name. |
ServicePort
(Appears on:ServiceSpec)
| Field | Description |
|---|---|
namestring | The name of this port within the service. This must be a DNS_LABEL. |
protocolKubernetes core/v1.Protocol | (Optional) The IP protocol for this port. Supports “TCP”, “UDP”, and “SCTP”. |
appProtocolstring | (Optional) The application protocol for this port. |
portint32 | The port that will be exposed by this service. |
targetPortKubernetes api utils intstr.IntOrString | (Optional) Number or name of the port to access on the pods targeted by the service. |
ServiceSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
ports[]ServicePort | (Optional) The list of ports that are exposed by this service. |
ShellTrigger
(Appears on:ReloadOptions)
| Field | Description |
|---|---|
command[]string | command used to execute for reload. |
syncbool | (Optional) Specify synchronize updates parameters to the config manager. |
SignalType
(string alias)
(Appears on:UnixSignalTrigger)
SignalType defines which signals are valid.
| Value | Description |
|---|---|
"SIGABRT" | |
"SIGALRM" | |
"SIGBUS" | |
"SIGCHLD" | |
"SIGCONT" | |
"SIGFPE" | |
"SIGHUP" | |
"SIGILL" | |
"SIGINT" | |
"SIGIO" | |
"SIGKILL" | |
"SIGPIPE" | |
"SIGPROF" | |
"SIGPWR" | |
"SIGQUIT" | |
"SIGSEGV" | |
"SIGSTKFLT" | |
"SIGSTOP" | |
"SIGSYS" | |
"SIGTERM" | |
"SIGTRAP" | |
"SIGTSTP" | |
"SIGTTIN" | |
"SIGTTOU" | |
"SIGURG" | |
"SIGUSR1" | |
"SIGUSR2" | |
"SIGVTALRM" | |
"SIGWINCH" | |
"SIGXCPU" | |
"SIGXFSZ" |
SnapshotPolicy
(Appears on:BackupPolicy)
| Field | Description |
|---|---|
BasePolicyBasePolicy | (Members of |
hooksBackupPolicyHook | (Optional) execute hook commands for backup. |
StatefulSetSpec
(Appears on:ClusterComponentDefinition, ConsensusSetSpec, ReplicationSetSpec)
| Field | Description |
|---|---|
updateStrategyUpdateStrategy | (Optional) updateStrategy, Pods update strategy. serial: update Pods one by one that guarantee minimum component unavailable time. |
llPodManagementPolicyKubernetes apps/v1.PodManagementPolicyType | (Optional) llPodManagementPolicy is the low-level controls how pods are created during initial scale up, |
llUpdateStrategyKubernetes apps/v1.StatefulSetUpdateStrategy | (Optional) llUpdateStrategy indicates the low-level StatefulSetUpdateStrategy that will be |
StatefulSetWorkload
StatefulSetWorkload interface
StatelessSetSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
updateStrategyKubernetes apps/v1.DeploymentStrategy | (Optional) updateStrategy defines the underlying deployment strategy to use to replace existing pods with new ones. |
StorageConstraint
(Appears on:ResourceConstraintRule)
| Field | Description |
|---|---|
minKubernetes resource.Quantity | (Optional) The minimum size of storage. |
maxKubernetes resource.Quantity | (Optional) The maximum size of storage. |
SwitchPolicyType
(string alias)
(Appears on:ClusterSwitchPolicy)
SwitchPolicyType defines switchPolicy type.
Currently, only Noop is supported. MaximumAvailability and MaximumDataProtection will be supported in the future.
| Value | Description |
|---|---|
"MaximumAvailability" | |
"MaximumDataProtection" | |
"Noop" |
SwitchStepRole
(string alias)
SwitchStepRole defines the role to execute the switch command.
| Value | Description |
|---|---|
"NewPrimary" | |
"OldPrimary" | |
"Secondaries" |
Switchover
(Appears on:OpsRequestSpec)
| Field | Description |
|---|---|
ComponentOpsComponentOps | (Members of |
instanceNamestring | instanceName is used to specify the candidate primary or leader instanceName for switchover. |
SwitchoverAction
(Appears on:SwitchoverSpec)
| Field | Description |
|---|---|
cmdExecutorConfigCmdExecutorConfig | cmdExecutorConfig is the executor configuration of the switchover command. |
scriptSpecSelectors[]ScriptSpecSelector | (Optional) scriptSpecSelectors defines the selector of the scriptSpecs that need to be referenced. |
SwitchoverShortSpec
(Appears on:ClusterComponentVersion)
SwitchoverShortSpec is a short version of SwitchoverSpec, with only CommandExecutorEnvItem field.
| Field | Description |
|---|---|
cmdExecutorConfigCommandExecutorEnvItem | CmdExecutorConfig is the command executor config. |
SwitchoverSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
withCandidateSwitchoverAction | (Optional) withCandidate corresponds to the switchover of the specified candidate primary or leader instance. |
withoutCandidateSwitchoverAction | (Optional) withoutCandidate corresponds to a switchover that does not specify a candidate primary or leader instance. |
SystemAccountConfig
(Appears on:SystemAccountSpec)
SystemAccountConfig specifies how to create and delete system accounts.
| Field | Description |
|---|---|
nameAccountName | name is the name of a system account. |
provisionPolicyProvisionPolicy | provisionPolicy defines how to create account. |
SystemAccountShortSpec
(Appears on:ClusterComponentVersion)
SystemAccountShortSpec is a short version of SystemAccountSpec, with only CmdExecutorConfig field.
| Field | Description |
|---|---|
cmdExecutorConfigCommandExecutorEnvItem | cmdExecutorConfig configs how to get client SDK and perform statements. |
SystemAccountSpec
(Appears on:ClusterComponentDefinition)
SystemAccountSpec specifies information to create system accounts.
| Field | Description |
|---|---|
cmdExecutorConfigCmdExecutorConfig | cmdExecutorConfig configs how to get client SDK and perform statements. |
passwordConfigPasswordConfig | passwordConfig defines the pattern to generate password. |
accounts[]SystemAccountConfig | accounts defines system account config settings. |
TLSSecretRef
(Appears on:Issuer)
TLSSecretRef defines Secret contains Tls certs
| Field | Description |
|---|---|
namestring | Name of the Secret |
castring | CA cert key in Secret |
certstring | Cert key in Secret |
keystring | Key of TLS private key in Secret |
TPLScriptTrigger
(Appears on:ReloadOptions)
| Field | Description |
|---|---|
ScriptConfigScriptConfig | (Members of |
syncbool | (Optional) Specify synchronize updates parameters to the config manager. |
TargetInstance
(Appears on:BasePolicy)
| Field | Description |
|---|---|
rolestring | (Optional) select instance of corresponding role for backup, role are: |
accountstring | (Optional) refer to spec.componentDef.systemAccounts.accounts[*].name in ClusterDefinition. |
connectionCredentialKeyConnectionCredentialKey | connectionCredentialKey defines connection credential key in secret |
TenancyType
(string alias)
(Appears on:Affinity, ClusterSpec)
TenancyType for cluster tenant resources.
| Value | Description |
|---|---|
"DedicatedNode" | |
"SharedNode" |
TerminationPolicyType
(string alias)
(Appears on:ClusterSpec)
TerminationPolicyType defines termination policy types.
| Value | Description |
|---|---|
"Delete" | |
"DoNotTerminate" | |
"Halt" | |
"WipeOut" |
ToolConfig
(Appears on:ToolsImageSpec)
| Field | Description |
|---|---|
namestring | Specify the name of initContainer. Must be a DNS_LABEL name. |
imagestring | (Optional) tools Container image name. |
command[]string | exec used to execute for init containers. |
ToolsImageSpec
(Appears on:ConfigConstraintSpec)
| Field | Description |
|---|---|
mountPointstring | mountPoint is the mount point of the scripts file. |
toolConfigs[]ToolConfig | (Optional) toolConfig used to config init container. |
UnixSignalTrigger
(Appears on:ReloadOptions)
| Field | Description |
|---|---|
signalSignalType | signal is valid for unix signal. |
processNamestring | processName is process name, sends unix signal to proc. |
UpdateStrategy
(string alias)
(Appears on:StatefulSetSpec)
UpdateStrategy defines Cluster Component update strategy.
| Value | Description |
|---|---|
"BestEffortParallel" | |
"Parallel" | |
"Serial" |
UpdatedParameters
(Appears on:ConfigurationStatus)
| Field | Description |
|---|---|
addedKeysmap[string]string | (Optional) addedKeys describes the key added. |
deletedKeysmap[string]string | (Optional) deletedKeys describes the key deleted. |
updatedKeysmap[string]string | (Optional) updatedKeys describes the key updated. |
Upgrade
(Appears on:OpsRequestSpec)
Upgrade defines the variables of upgrade operation.
| Field | Description |
|---|---|
clusterVersionRefstring | clusterVersionRef references ClusterVersion name. |
UpgradePolicy
(string alias)
(Appears on:Configuration, ConfigurationStatus)
UpgradePolicy defines the policy of reconfiguring.
| Value | Description |
|---|---|
"autoReload" | |
"none" | |
"simple" | |
"operatorSyncUpdate" | |
"parallel" | |
"rolling" |
VersionsContext
(Appears on:ClusterComponentVersion)
| Field | Description |
|---|---|
initContainers[]Kubernetes core/v1.Container | (Optional) Provide ClusterDefinition.spec.componentDefs.podSpec.initContainers override |
containers[]Kubernetes core/v1.Container | (Optional) Provide ClusterDefinition.spec.componentDefs.podSpec.containers override |
VerticalScaling
(Appears on:OpsRequestSpec)
VerticalScaling defines the variables that need to input when scaling compute resources.
| Field | Description |
|---|---|
ComponentOpsComponentOps | (Members of |
ResourceRequirementsKubernetes core/v1.ResourceRequirements | (Members of resources specifies the computing resource size of verticalScaling. |
classDefRefClassDefRef | (Optional) classDefRef reference class defined in ComponentClassDefinition. |
VolumeExpansion
(Appears on:OpsRequestSpec)
VolumeExpansion defines the variables of volume expansion operation.
| Field | Description |
|---|---|
ComponentOpsComponentOps | (Members of |
volumeClaimTemplates[]OpsRequestVolumeClaimTemplate | volumeClaimTemplates specifies the storage size and volumeClaimTemplate name. |
VolumeProtectionSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
highWatermarkint | (Optional) The high watermark threshold for volume space usage. |
volumes[]ProtectedVolume | (Optional) Volumes to protect. |
VolumeType
(string alias)
(Appears on:VolumeTypeSpec)
VolumeType defines volume type for backup data or log.
| Value | Description |
|---|---|
"data" | |
"log" |
VolumeTypeSpec
(Appears on:ClusterComponentDefinition)
| Field | Description |
|---|---|
namestring | name definition is the same as the name of the VolumeMounts field in PodSpec.Container, |
typeVolumeType | (Optional) type is in enum of {data, log}. |
WorkloadType
(string alias)
(Appears on:ClusterComponentDefinition, OpsRequestComponentStatus)
WorkloadType defines ClusterDefinition’s component workload type.
| Value | Description |
|---|---|
"Consensus" | |
"Replication" | |
"Stateful" | |
"Stateless" |
Generated with gen-crd-api-reference-docs