集群 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 | ||||||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||
spec BackupPolicyTemplateSpec |
| ||||||
status BackupPolicyTemplateStatus |
Cluster
Cluster is the Schema for the clusters API.
Field | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||||||||||||||||||||||||
| Cluster | ||||||||||||||||||||||||||||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||||||||||||||||||||||||
spec ClusterSpec |
| ||||||||||||||||||||||||||||
status ClusterStatus |
ClusterDefinition
ClusterDefinition is the Schema for the clusterdefinitions API
Field | Description | ||||||
---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||
| ClusterDefinition | ||||||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||
spec ClusterDefinitionSpec |
| ||||||
status ClusterDefinitionStatus |
ClusterVersion
ClusterVersion is the Schema for the ClusterVersions API
Field | Description | ||||
---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||
| ClusterVersion | ||||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||
spec ClusterVersionSpec |
| ||||
status ClusterVersionStatus |
ComponentClassDefinition
ComponentClassDefinition is the Schema for the componentclassdefinitions API
Field | Description | ||
---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||
| ComponentClassDefinition | ||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||
spec ComponentClassDefinitionSpec |
| ||
status ComponentClassDefinitionStatus |
ComponentResourceConstraint
ComponentResourceConstraint is the Schema for the componentresourceconstraints API
Field | Description | ||||
---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||
| ComponentResourceConstraint | ||||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||
spec ComponentResourceConstraintSpec |
|
ConfigConstraint
ConfigConstraint is the Schema for the configconstraint API
Field | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||||||||||||||||||
| ConfigConstraint | ||||||||||||||||||||||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||||||||||||||||||
spec ConfigConstraintSpec |
| ||||||||||||||||||||||
status ConfigConstraintStatus |
OpsRequest
OpsRequest is the Schema for the opsrequests API
Field | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apps.kubeblocks.io/v1alpha1 | ||||||||||||||||||||||||||||||
| OpsRequest | ||||||||||||||||||||||||||||||
metadata Kubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the
| ||||||||||||||||||||||||||||||
spec OpsRequestSpec |
| ||||||||||||||||||||||||||||||
status OpsRequestStatus |
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 |
---|---|
podAntiAffinity PodAntiAffinity | (Optional) podAntiAffinity describes the anti-affinity level of pods within a component. |
topologyKeys []string | (Optional) topologyKey is the key of node labels. |
nodeLabels map[string]string | (Optional) nodeLabels describes that pods must be scheduled to the nodes with the specified node labels. |
tenancy TenancyType | (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 |
---|---|
componentDefRef string | componentDefRef references componentDef defined in ClusterDefinition spec. Need to |
retention RetentionSpec | (Optional) retention describe how long the Backup should be retained. if not set, will be retained forever. |
schedule Schedule | (Optional) schedule policy for backup. |
snapshot SnapshotPolicy | (Optional) the policy for snapshot backup. |
datafile CommonBackupPolicy | (Optional) the policy for datafile backup. |
logfile CommonBackupPolicy | (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 |
image string | (Optional) exec command with image |
containerName string | (Optional) which container can exec command |
BackupPolicyTemplateSpec
(Appears on:BackupPolicyTemplate)
BackupPolicyTemplateSpec defines the desired state of BackupPolicyTemplate
Field | Description |
---|---|
clusterDefinitionRef string | clusterDefinitionRef references ClusterDefinition name, this is an immutable attribute. |
backupPolicies []BackupPolicy | backupPolicies is a list of backup policy template for the specified componentDefinition. |
identifier string | (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 |
---|---|
ref RefNamespaceName | (Optional) specify a reference backup to restore |
BackupStatusUpdate
(Appears on:BasePolicy)
Field | Description |
---|---|
path string | (Optional) specify the json path of backup object for patch. |
containerName string | (Optional) which container name that kubectl can execute. |
script string | (Optional) the shell Script commands to collect backup status metadata. |
useTargetPodServiceAccount bool | (Optional) useTargetPodServiceAccount defines whether this job requires the service account of the backup target pod. |
updateStage BackupStatusUpdateStage | 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 |
---|---|
target TargetInstance | (Optional) target instance for backup. |
backupsHistoryLimit int32 | (Optional) the number of automatic backups to retain. Value must be non-negative integer. |
onFailAttempted int32 | (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 |
---|---|
max Kubernetes resource.Quantity | (Optional) The maximum count of vcpu cores, [Min, Max] defines a range for valid vcpu cores, and the value in this range |
min Kubernetes resource.Quantity | (Optional) The minimum count of vcpu cores, [Min, Max] defines a range for valid vcpu cores, and the value in this range |
step Kubernetes 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 |
---|---|
name string | (Optional) Name refers to the name of the ComponentClassDefinition. |
class string | Class refers to the name of the class that is defined in the ComponentClassDefinition. |
ClusterBackup
(Appears on:ClusterSpec)
Field | Description |
---|---|
enabled bool | (Optional) enabled defines whether to enable automated backup. |
retentionPeriod string | (Optional) retentionPeriod is a time string ending with the ’d’|’D’|‘h’|‘H’ character to describe how long |
method github.com/apecloud/kubeblocks/apis/dataprotection/v1alpha1.BackupMethod | backup method, support: snapshot, backupTool. |
cronExpression string | (Optional) the cron expression for schedule, the timezone is in UTC. see https://en.wikipedia.org/wiki/Cron. |
startingDeadlineMinutes int64 | (Optional) startingDeadlineMinutes defines the deadline in minutes for starting the backup job |
repoName string | (Optional) repoName is the name of the backupRepo, if not set, will use the default backupRepo. |
pitrEnabled bool | (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 |
---|---|
name string | A component definition name, this name could be used as default name of |
description string | (Optional) The description of component definition. |
workloadType WorkloadType | workloadType defines type of the workload. |
characterType string | (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 |
probes ClusterDefinitionProbes | (Optional) probes setting for healthy checks. |
monitor MonitorConfig | (Optional) monitor is monitoring config which provided by provider. |
logConfigs []LogConfig | (Optional) logConfigs is detail log file config which provided by provider. |
podSpec Kubernetes core/v1.PodSpec | (Optional) podSpec define pod spec template of the cluster component. |
service ServiceSpec | (Optional) service defines the behavior of a service spec. |
statelessSpec StatelessSetSpec | (Optional) statelessSpec defines stateless related spec if workloadType is Stateless. |
statefulSpec StatefulSetSpec | (Optional) statefulSpec defines stateful related spec if workloadType is Stateful. |
consensusSpec ConsensusSetSpec | (Optional) consensusSpec defines consensus related spec if workloadType is Consensus, required if workloadType is Consensus. |
replicationSpec ReplicationSetSpec | (Optional) replicationSpec defines replication related spec if workloadType is Replication. |
horizontalScalePolicy HorizontalScalePolicy | (Optional) horizontalScalePolicy controls the behavior of horizontal scale. |
systemAccounts SystemAccountSpec | (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. |
switchoverSpec SwitchoverSpec | (Optional) switchoverSpec defines command to do switchover. |
volumeProtectionSpec VolumeProtectionSpec | (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 |
---|---|
name string | Service name |
serviceType Kubernetes core/v1.ServiceType | (Optional) serviceType determines how the Service is exposed. Valid |
annotations map[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 |
---|---|
name string | name defines cluster’s component name, this name is also part of Service DNS name, so this name will |
componentDefRef string | componentDefRef references componentDef defined in ClusterDefinition spec. Need to |
classDefRef ClassDefRef | (Optional) classDefRef references the class defined in ComponentClassDefinition. |
monitor bool | (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. |
replicas int32 | Component replicas. The default value is used in ClusterDefinition spec if not specified. |
affinity Affinity | (Optional) affinity describes affinities specified by users. |
tolerations []Kubernetes core/v1.Toleration | (Optional) Component tolerations will override ClusterSpec.Tolerations if specified. |
resources Kubernetes 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. |
switchPolicy ClusterSwitchPolicy | (Optional) switchPolicy defines the strategy for switchover and failover when workloadType is Replication. |
tls bool | (Optional) Enables or disables TLS certs. |
issuer Issuer | (Optional) issuer defines provider context for TLS certs. |
serviceAccountName string | (Optional) serviceAccountName is the name of the ServiceAccount that running component depends on. |
noCreatePDB bool | (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 |
---|---|
phase ClusterComponentPhase | phase describes the phase of the component and the detail information of the phases are as following: |
message ComponentMessageMap | (Optional) message records the component details message in current phase. |
podsReady bool | (Optional) podsReady checks if all pods of the component are ready. |
podsReadyTime Kubernetes meta/v1.Time | (Optional) podsReadyTime what time point of all component pods are ready, |
consensusSetStatus ConsensusSetStatus | (Optional) consensusSetStatus specifies the mapping of role and pod name. |
replicationSetStatus ReplicationSetStatus | (Optional) replicationSetStatus specifies the mapping of role and pod name. |
ClusterComponentVersion
(Appears on:ClusterVersionSpec)
ClusterComponentVersion is an application version component spec.
Field | Description |
---|---|
componentDefRef string | 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, |
systemAccountSpec SystemAccountShortSpec | (Optional) systemAccountSpec define image for the component to connect database or engines. |
versionsContext VersionsContext | versionContext defines containers images’ context for component versions, |
switchoverSpec SwitchoverShortSpec | (Optional) switchoverSpec defines images for the component to do switchover. |
ClusterComponentVolumeClaimTemplate
(Appears on:ClusterComponentSpec)
Field | Description | ||||||
---|---|---|---|---|---|---|---|
name string | Reference | ||||||
spec PersistentVolumeClaimSpec | (Optional) spec defines the desired characteristics of a volume requested by a pod author.
|
ClusterDefinitionProbe
(Appears on:ClusterDefinitionProbes)
Field | Description |
---|---|
periodSeconds int32 | How often (in seconds) to perform the probe. |
timeoutSeconds int32 | Number of seconds after which the probe times out. Defaults to 1 second. |
failureThreshold int32 | Minimum consecutive failures for the probe to be considered failed after having succeeded. |
commands ClusterDefinitionProbeCMDs | (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 |
---|---|
runningProbe ClusterDefinitionProbe | (Optional) Probe for DB running check. |
statusProbe ClusterDefinitionProbe | (Optional) Probe for DB status check. |
roleProbe ClusterDefinitionProbe | (Optional) Probe for DB role changed check. |
roleProbeTimeoutAfterPodsReady int32 | (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 |
---|---|
type string | (Optional) Cluster definition type defines well known application cluster type, e.g. mysql/redis/mongodb |
componentDefs []ClusterComponentDefinition | componentDefs provides cluster components definitions. |
connectionCredential map[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 |
---|---|
phase Phase | ClusterDefinition phase, valid values are |
message string | (Optional) Extra message in current phase |
observedGeneration int64 | (Optional) observedGeneration is the most recent generation observed for this |
ClusterMonitor
(Appears on:ClusterSpec)
Field | Description |
---|---|
monitoringInterval Kubernetes api utils intstr.IntOrString | (Optional) monitoringInterval specifies interval of monitoring, no monitor if set to 0 |
ClusterNetwork
(Appears on:ClusterSpec)
Field | Description |
---|---|
hostNetworkAccessible bool | (Optional) hostNetworkAccessible specifies whether host network is accessible. It defaults to false |
publiclyAccessible bool | (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 |
---|---|
clusterDefRef string | 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 |
---|---|
cpu Kubernetes resource.Quantity | (Optional) cpu resource needed, more info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
memory Kubernetes 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 |
---|---|
clusterDefinitionRef string | Cluster referencing ClusterDefinition name. This is an immutable attribute. |
clusterVersionRef string | (Optional) Cluster referencing ClusterVersion name. |
terminationPolicy TerminationPolicyType | 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. |
tenancy TenancyType | (Optional) tenancy describes how pods are distributed across node. |
availabilityPolicy AvailabilityPolicyType | (Optional) availabilityPolicy describes the availability policy, including zone, node, and none. |
affinity Affinity | (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 |
replicas int32 | (Optional) replicas specifies the replicas of the first componentSpec, if the replicas of the first componentSpec is specified, this value will be ignored. |
resources ClusterResources | (Optional) resources specifies the resources of the first componentSpec, if the resources of the first componentSpec is specified, this value will be ignored. |
storage ClusterStorage | (Optional) storage specifies the storage of the first componentSpec, if the storage of the first componentSpec is specified, this value will be ignored. |
monitor ClusterMonitor | (Optional) monitor specifies the configuration of monitor |
network ClusterNetwork | (Optional) network specifies the configuration of network |
backup ClusterBackup | (Optional) cluster backup configuration. |
ClusterStatus
(Appears on:Cluster)
ClusterStatus defines the observed state of Cluster.
Field | Description |
---|---|
observedGeneration int64 | (Optional) observedGeneration is the most recent generation observed for this |
phase ClusterPhase | (Optional) phase describes the phase of the Cluster, the detail information of the phases are as following: |
message string | (Optional) message describes cluster details message in current phase. |
components map[string]github.com/apecloud/kubeblocks/apis/apps/v1alpha1.ClusterComponentStatus | (Optional) components record the current status information of all components of the cluster. |
clusterDefGeneration int64 | (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 |
---|---|
size Kubernetes resource.Quantity | (Optional) storage size needed, more info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
ClusterSwitchPolicy
(Appears on:ClusterComponentSpec)
Field | Description |
---|---|
type SwitchPolicyType | (Optional) clusterSwitchPolicy defines type of the switchPolicy when workloadType is Replication. |
ClusterVersionSpec
(Appears on:ClusterVersion)
ClusterVersionSpec defines the desired state of ClusterVersion
Field | Description |
---|---|
clusterDefinitionRef string | 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 |
---|---|
phase Phase | (Optional) phase - in list of [Available,Unavailable] |
message string | (Optional) A human readable message indicating details about why the ClusterVersion is in this phase. |
observedGeneration int64 | (Optional) generation number |
clusterDefGeneration int64 | (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 |
---|---|
CommandExecutorEnvItem CommandExecutorEnvItem | (Members of |
CommandExecutorItem CommandExecutorItem | (Members of |
CommandExecutorEnvItem
(Appears on:CmdExecutorConfig, SwitchoverShortSpec, SystemAccountShortSpec)
Field | Description |
---|---|
image string | 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 |
---|---|
BasePolicy BasePolicy | (Members of |
backupToolName string | which backup tool to perform database backup, only support one tool. |
ComponentClass
(Appears on:ComponentClassDefinitionStatus, ComponentClassSeries)
Field | Description |
---|---|
name string | (Optional) name is the class name |
args []string | (Optional) args are variable’s value |
cpu Kubernetes resource.Quantity | (Optional) the CPU of the class |
memory Kubernetes 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 |
---|---|
observedGeneration int64 | (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 |
---|---|
template string | (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 |
---|---|
namingTemplate string | (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 |
---|---|
ComponentTemplateSpec ComponentTemplateSpec | (Members of |
keys []string | (Optional) Specify a list of keys. |
lazyRenderedConfigSpec LazyRenderedTemplateSpec | (Optional) lazyRenderedConfigSpec is optional: specify the secondary rendered config spec. |
constraintRef string | (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 |
---|---|
componentDefName string | componentDefName is the name of the componentDef to select. |
failurePolicy FailurePolicyType | (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 |
---|---|
componentName string | componentName cluster component name. |
ComponentRefEnv
(Appears on:ComponentDefRef)
ComponentRefEnv specifies name and value of an env.
Field | Description |
---|---|
name string | name is the name of the env to be injected, and it must be a C identifier. |
value string | (Optional) value is the value of the env to be injected. |
valueFrom ComponentValueFrom | (Optional) valueFrom specifies the source of the env to be injected. |
ComponentResourceConstraintSelector
(Appears on:ClusterResourceConstraintSelector)
Field | Description |
---|---|
componentDefRef string | 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 |
---|---|
name string | Specify the name of configuration template. |
templateRef string | Specify the name of the referenced the configuration template ConfigMap object. |
namespace string | (Optional) Specify the namespace of the referenced the configuration template ConfigMap object. |
volumeName string | volumeName is the volume name of PodTemplate, which the configuration file produced through the configuration |
defaultMode int32 | (Optional) defaultMode is optional: mode bits used to set permissions on created files by default. |
ComponentValueFrom
(Appears on:ComponentRefEnv)
Field | Description |
---|---|
type ComponentValueFromType | type is the type of the source to select. There are three types: |
fieldPath string | (Optional) fieldRef is the jsonpath of the source to select when type is |
format string | (Optional) format is the format of each headless service address. |
joinWith string | (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 |
---|---|
reloadOptions ReloadOptions | (Optional) reloadOptions indicates whether the process supports reload. |
toolsImageSpec ToolsImageSpec | (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 |
cfgSchemaTopLevelName string | (Optional) cfgSchemaTopLevelName is cue type name, which generates openapi schema. |
configurationSchema CustomParametersValidation | (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. |
selector Kubernetes meta/v1.LabelSelector | selector is used to match the label on the pod, |
formatterConfig FormatterConfig | formatterConfig describes the format of the configuration file, the controller |
ConfigConstraintStatus
(Appears on:ConfigConstraint)
ConfigConstraintStatus defines the observed state of ConfigConstraint.
Field | Description |
---|---|
phase ConfigConstraintPhase | (Optional) phase is status of configuration template, when set to CCAvailablePhase, it can be referenced by ClusterDefinition or ClusterVersion. |
message string | (Optional) message field describes the reasons of abnormal status. |
observedGeneration int64 | (Optional) observedGeneration is the latest generation observed for this |
Configuration
(Appears on:Reconfigure)
Field | Description |
---|---|
name string | name is a config template name. |
policy UpgradePolicy | (Optional) policy defines the upgrade policy. |
keys []ParameterConfig | keys is used to set the parameters to be updated. |
ConfigurationStatus
(Appears on:ReconfiguringStatus)
Field | Description |
---|---|
name string | name is a config template name. |
updatePolicy UpgradePolicy | (Optional) updatePolicy describes the policy of reconfiguring. |
status string | (Optional) status describes the current state of the reconfiguring state machine. |
succeedCount int32 | (Optional) succeedCount describes the number of successful reconfiguring. |
expectedCount int32 | (Optional) expectedCount describes the number of expected reconfiguring. |
lastStatus string | (Optional) lastStatus describes the last status for the reconfiguring controller. |
lastAppliedConfiguration map[string]string | (Optional) LastAppliedConfiguration describes the last configuration. |
updatedParameters UpdatedParameters | (Optional) updatedParameters describes the updated parameters. |
ConnectionCredentialKey
(Appears on:TargetInstance)
Field | Description |
---|---|
passwordKey string | (Optional) the key of password in the ConnectionCredential secret. |
usernameKey string | (Optional) the key of username in the ConnectionCredential secret. |
ConsensusMember
(Appears on:ConsensusSetSpec)
Field | Description |
---|---|
name string | name, role name. |
accessMode AccessMode | accessMode, what service this member capable. |
replicas int32 | (Optional) replicas, number of Pods of this role. |
ConsensusMemberStatus
(Appears on:ConsensusSetStatus)
Field | Description |
---|---|
name string | Defines the role name. |
accessMode AccessMode | accessMode defines what service this pod provides. |
pod string | Pod name. |
ConsensusSetSpec
(Appears on:ClusterComponentDefinition)
Field | Description |
---|---|
StatefulSetSpec StatefulSetSpec | (Members of |
leader ConsensusMember | leader, one single leader. |
followers []ConsensusMember | (Optional) followers, has voting right but not Leader. |
learner ConsensusMember | (Optional) learner, no voting right. |
ConsensusSetStatus
(Appears on:ClusterComponentStatus)
Field | Description |
---|---|
leader ConsensusMemberStatus | Leader status. |
followers []ConsensusMemberStatus | (Optional) Followers status. |
learner ConsensusMemberStatus | (Optional) Learner status. |
CustomLabelSpec
(Appears on:ClusterComponentDefinition)
Field | Description |
---|---|
key string | key name of label |
value string | value of label |
resources []GVKResource | resources defines the resources to be labeled. |
CustomParametersValidation
(Appears on:ConfigConstraintSpec)
Field | Description |
---|---|
schema Kubernetes api extensions v1.JSONSchemaProps | schema provides a way for providers to validate the changed parameters through json. |
cue string | (Optional) cue that to let provider verify user configuration through cue language. |
DownwardAPIOption
(Appears on:ConfigConstraintSpec)
Field | Description |
---|---|
name string | Specify the name of the field. |
mountPoint string | 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 |
---|---|
scrapePort Kubernetes api utils intstr.IntOrString | scrapePort is exporter port for Time Series Database to scrape metrics. |
scrapePath string | (Optional) scrapePath is exporter url path for Time Series Database to scrape metrics. |
Expose
(Appears on:OpsRequestSpec)
Field | Description |
---|---|
ComponentOps ComponentOps | (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 |
---|---|
FormatterOptions FormatterOptions | (Members of The FormatterOptions represents the special options of configuration file. |
format CfgFileFormat | 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 |
---|---|
iniConfig IniConfig | (Optional) iniConfig represents the ini options. |
GVKResource
(Appears on:CustomLabelSpec)
Field | Description |
---|---|
gvk string | gvk is Group/Version/Kind, for example “v1/Pod”, “apps/v1/StatefulSet”, etc. |
selector map[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 |
---|---|
type HScaleDataClonePolicyType | (Optional) type controls what kind of data synchronization do when component scale out. |
backupPolicyTemplateName string | (Optional) BackupPolicyTemplateName reference the backup policy template. |
volumeMountsName string | (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 |
---|---|
ComponentOps ComponentOps | (Members of |
replicas int32 | replicas for the workloads. |
IniConfig
(Appears on:FormatterOptions)
Field | Description |
---|---|
sectionName string | (Optional) sectionName describes ini section. |
Issuer
(Appears on:ClusterComponentSpec)
Issuer defines Tls certs issuer
Field | Description |
---|---|
name IssuerName | Name of issuer. |
secretRef TLSSecretRef | (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 |
---|---|
replicas int32 | (Optional) replicas are the last replicas of the component. |
ResourceRequirements Kubernetes core/v1.ResourceRequirements | (Members of the last resources of the component. |
classDefRef ClassDefRef | (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. |
targetResources map[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 |
---|---|
clusterVersionRef string | (Optional) clusterVersionRef references ClusterVersion name. |
components map[string]github.com/apecloud/kubeblocks/apis/apps/v1alpha1.LastComponentConfiguration | (Optional) components records last configuration of the component. |
LazyRenderedTemplateSpec
(Appears on:ComponentConfigSpec)
Field | Description |
---|---|
templateRef string | Specify the name of the referenced the configuration template ConfigMap object. |
namespace string | (Optional) Specify the namespace of the referenced the configuration template ConfigMap object. |
policy MergedPolicy | (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 |
---|---|
name string | name log type name, such as slow for MySQL slow log file. |
filePathPattern string | filePathPattern log file path pattern which indicate how to find this file |
MemoryConstraint
(Appears on:ResourceConstraintRule)
Field | Description |
---|---|
sizePerCPU Kubernetes resource.Quantity | (Optional) The size of memory per vcpu core. |
maxPerCPU Kubernetes resource.Quantity | (Optional) The maximum size of memory per vcpu core, [MinPerCPU, MaxPerCPU] defines a range for valid memory size per vcpu core. |
minPerCPU Kubernetes 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 |
---|---|
builtIn bool | (Optional) builtIn is a switch to enable KubeBlocks builtIn monitoring. |
exporterConfig ExporterConfig | (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 |
---|---|
name string | name OpsRequest name |
type OpsType | clusterPhase the cluster phase when the OpsRequest is running |
OpsRequestBehaviour
Field | Description |
---|---|
FromClusterPhases []ClusterPhase | |
ToClusterPhase ClusterPhase | |
ProcessingReasonInClusterCondition string |
OpsRequestComponentStatus
(Appears on:OpsRequestStatus)
Field | Description |
---|---|
phase ClusterComponentPhase | (Optional) phase describes the component phase, reference Cluster.status.component.phase. |
lastFailedTime Kubernetes 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. |
workloadType WorkloadType | (Optional) workloadType references workload type of component in ClusterDefinition. |
reason string | (Optional) reason describes the reason for the component phase. |
message string | (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 |
---|---|
clusterRef string | clusterRef references clusterDefinition. |
cancel bool | (Optional) cancel defines the action to cancel the Pending/Creating/Running opsRequest, supported types: [VerticalScaling, HorizontalScaling]. |
type OpsType | type defines the operation type. |
ttlSecondsAfterSucceed int32 | (Optional) ttlSecondsAfterSucceed OpsRequest will be deleted after TTLSecondsAfterSucceed second when OpsRequest.status.phase is Succeed. |
upgrade Upgrade | (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. |
reconfigure Reconfigure | (Optional) reconfigure defines the variables that need to input when updating configuration. |
expose []Expose | (Optional) expose defines services the component needs to expose. |
restoreFrom RestoreFromSpec | (Optional) cluster RestoreFrom backup or point in time |
ttlSecondsBeforeAbort int32 | (Optional) ttlSecondsBeforeAbort OpsRequest will wait at most TTLSecondsBeforeAbort seconds for start-conditions to be met. |
scriptSpec ScriptSpec | (Optional) scriptSpec defines the script to be executed. |
OpsRequestStatus
(Appears on:OpsRequest)
OpsRequestStatus defines the observed state of OpsRequest
Field | Description |
---|---|
clusterGeneration int64 | (Optional) ClusterGeneration records the cluster generation after handling the opsRequest action. |
phase OpsPhase | phase describes OpsRequest phase. |
progress string | |
lastConfiguration LastConfiguration | (Optional) lastConfiguration records the last configuration before this operation take effected. |
components map[string]github.com/apecloud/kubeblocks/apis/apps/v1alpha1.OpsRequestComponentStatus | (Optional) components defines the recorded the status information of changed components for operation request. |
startTimestamp Kubernetes meta/v1.Time | (Optional) startTimestamp The time when the OpsRequest started processing. |
completionTimestamp Kubernetes meta/v1.Time | (Optional) completionTimestamp defines the OpsRequest completion time. |
cancelTimestamp Kubernetes meta/v1.Time | (Optional) CancelTimestamp defines cancel time. |
reconfiguringStatus ReconfiguringStatus | (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 |
---|---|
storage Kubernetes resource.Quantity | Request storage size. |
name string | 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 |
---|---|
key string | key indicates the key name of ConfigMap. |
parameters []ParameterPair | (Optional) Setting the list of parameters for a single configuration file. |
fileContent string | (Optional) fileContent indicates the configuration file content. |
ParameterPair
(Appears on:ParameterConfig)
Field | Description |
---|---|
key string | key is name of the parameter to be updated. |
value string | (Optional) parameter values to be updated. |
PasswordConfig
(Appears on:SystemAccountSpec)
PasswordConfig helps provide to customize complexity of password generation pattern.
Field | Description |
---|---|
length int32 | (Optional) length defines the length of password. |
numDigits int32 | (Optional) numDigits defines number of digits. |
numSymbols int32 | (Optional) numSymbols defines number of symbols. |
letterCase LetterCase | (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. |
resources Kubernetes core/v1.ResourceRequirements | (Optional) resources represents the minimum resources the volume should have. |
storageClassName string | (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 |
---|---|
time Kubernetes meta/v1.Time | (Optional) specify the time point to restore, with UTC as the time zone. |
ref RefNamespaceName | (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 |
---|---|
group string | (Optional) group describes which group the current object belongs to. |
objectKey string | objectKey is the unique key of the object. |
status ProgressStatus | status describes the state of processing the object. |
message string | (Optional) message is a human readable message indicating details about the object condition. |
startTime Kubernetes meta/v1.Time | (Optional) startTime is the start time of object processing. |
endTime Kubernetes meta/v1.Time | (Optional) endTime is the completion time of object processing. |
ProtectedVolume
(Appears on:VolumeProtectionSpec)
Field | Description |
---|---|
name string | (Optional) Name of volume to protect. |
highWatermark int | (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 |
---|---|
type ProvisionPolicyType | type defines the way to provision an account, either |
scope ProvisionScope | scope is the scope to provision account, and the scope could be |
statements ProvisionStatements | (Optional) statements will be used when Type is CreateByStmt. |
secretRef ProvisionSecretRef | (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 |
---|---|
name string | name refers to the name of the secret. |
namespace string | namespace refers to the namespace of the secret. |
ProvisionStatements
(Appears on:ProvisionPolicy)
ProvisionStatements defines the statements used to create accounts.
Field | Description |
---|---|
creation string | creation specifies statement how to create this account with required privileges. |
update string | (Optional) update specifies statement how to update account’s password. |
deletion string | (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 |
---|---|
ComponentOps ComponentOps | (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 |
---|---|
name string | (Optional) specified the name |
namespace string | (Optional) specified the namespace |
ReloadOptions
(Appears on:ConfigConstraintSpec)
ReloadOptions defines reload options
Only one of its members may be specified.
Field | Description |
---|---|
unixSignalTrigger UnixSignalTrigger | (Optional) unixSignalTrigger used to reload by sending a signal. |
shellTrigger ShellTrigger | (Optional) shellTrigger performs the reload command. |
tplScriptTrigger TPLScriptTrigger | (Optional) goTplTrigger performs the reload command. |
ReplicationMemberStatus
(Appears on:ReplicationSetStatus)
Field | Description |
---|---|
pod string | Pod name. |
ReplicationSetSpec
(Appears on:ClusterComponentDefinition)
Field | Description |
---|---|
StatefulSetSpec StatefulSetSpec | (Members of |
ReplicationSetStatus
(Appears on:ClusterComponentStatus)
Field | Description |
---|---|
primary ReplicationMemberStatus | Primary status. |
secondaries []ReplicationMemberStatus | (Optional) Secondaries status. |
ResourceConstraintRule
(Appears on:ComponentResourceConstraintSpec)
Field | Description |
---|---|
name string | The name of the constraint. |
cpu CPUConstraint | The constraint for vcpu cores. |
memory MemoryConstraint | The constraint for memory size. |
storage StorageConstraint | (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. |
pointInTime PointInTimeRefSpec | (Optional) specified the point in time to recovery |
RetentionSpec
(Appears on:BackupPolicy)
Field | Description |
---|---|
ttl string | (Optional) ttl is a time string ending with the ’d’|’D’|‘h’|‘H’ character to describe how long |
Schedule
(Appears on:BackupPolicy)
Field | Description |
---|---|
startingDeadlineMinutes int64 | (Optional) startingDeadlineMinutes defines the deadline in minutes for starting the backup job |
snapshot SchedulePolicy | (Optional) schedule policy for snapshot backup. |
datafile SchedulePolicy | (Optional) schedule policy for datafile backup. |
logfile SchedulePolicy | (Optional) schedule policy for logfile backup. |
SchedulePolicy
(Appears on:Schedule)
Field | Description |
---|---|
cronExpression string | the cron expression for schedule, the timezone is in UTC. see https://en.wikipedia.org/wiki/Cron. |
enable bool | enable or disable the schedule. |
ScriptConfig
(Appears on:ConfigConstraintSpec, TPLScriptTrigger)
Field | Description |
---|---|
scriptConfigMapRef string | scriptConfigMapRef used to execute for reload. |
namespace string | (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 |
---|---|
name string | name is the name of the secret. |
usernameKey string | (Optional) usernameKey field is used to specify the username of the secret. |
passwordKey string | (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 |
---|---|
ComponentOps ComponentOps | (Members of |
image string | (Optional) exec command with image, by default use the image of kubeblocks-datascript. |
secret ScriptSecret | (Optional) secret defines the secret to be used to execute the script. |
script []string | (Optional) script defines the script to be executed. |
scriptFrom ScriptFrom | (Optional) scriptFrom defines the script to be executed from configMap or secret. |
ScriptSpecSelector
(Appears on:SwitchoverAction)
Field | Description |
---|---|
name string | ScriptSpec name of the referent, refer to componentDefs[x].scriptSpecs[y].Name. |
ServicePort
(Appears on:ServiceSpec)
Field | Description |
---|---|
name string | The name of this port within the service. This must be a DNS_LABEL. |
protocol Kubernetes core/v1.Protocol | (Optional) The IP protocol for this port. Supports “TCP”, “UDP”, and “SCTP”. |
appProtocol string | (Optional) The application protocol for this port. |
port int32 | The port that will be exposed by this service. |
targetPort Kubernetes 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. |
sync bool | (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 |
---|---|
BasePolicy BasePolicy | (Members of |
hooks BackupPolicyHook | (Optional) execute hook commands for backup. |
StatefulSetSpec
(Appears on:ClusterComponentDefinition, ConsensusSetSpec, ReplicationSetSpec)
Field | Description |
---|---|
updateStrategy UpdateStrategy | (Optional) updateStrategy, Pods update strategy. serial: update Pods one by one that guarantee minimum component unavailable time. |
llPodManagementPolicy Kubernetes apps/v1.PodManagementPolicyType | (Optional) llPodManagementPolicy is the low-level controls how pods are created during initial scale up, |
llUpdateStrategy Kubernetes apps/v1.StatefulSetUpdateStrategy | (Optional) llUpdateStrategy indicates the low-level StatefulSetUpdateStrategy that will be |
StatefulSetWorkload
StatefulSetWorkload interface
StatelessSetSpec
(Appears on:ClusterComponentDefinition)
Field | Description |
---|---|
updateStrategy Kubernetes 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 |
---|---|
min Kubernetes resource.Quantity | (Optional) The minimum size of storage. |
max Kubernetes 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 |
---|---|
ComponentOps ComponentOps | (Members of |
instanceName string | instanceName is used to specify the candidate primary or leader instanceName for switchover. |
SwitchoverAction
(Appears on:SwitchoverSpec)
Field | Description |
---|---|
cmdExecutorConfig CmdExecutorConfig | 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 |
---|---|
cmdExecutorConfig CommandExecutorEnvItem | CmdExecutorConfig is the command executor config. |
SwitchoverSpec
(Appears on:ClusterComponentDefinition)
Field | Description |
---|---|
withCandidate SwitchoverAction | (Optional) withCandidate corresponds to the switchover of the specified candidate primary or leader instance. |
withoutCandidate SwitchoverAction | (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 |
---|---|
name AccountName | name is the name of a system account. |
provisionPolicy ProvisionPolicy | provisionPolicy defines how to create account. |
SystemAccountShortSpec
(Appears on:ClusterComponentVersion)
SystemAccountShortSpec is a short version of SystemAccountSpec, with only CmdExecutorConfig field.
Field | Description |
---|---|
cmdExecutorConfig CommandExecutorEnvItem | cmdExecutorConfig configs how to get client SDK and perform statements. |
SystemAccountSpec
(Appears on:ClusterComponentDefinition)
SystemAccountSpec specifies information to create system accounts.
Field | Description |
---|---|
cmdExecutorConfig CmdExecutorConfig | cmdExecutorConfig configs how to get client SDK and perform statements. |
passwordConfig PasswordConfig | 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 |
---|---|
name string | Name of the Secret |
ca string | CA cert key in Secret |
cert string | Cert key in Secret |
key string | Key of TLS private key in Secret |
TPLScriptTrigger
(Appears on:ReloadOptions)
Field | Description |
---|---|
ScriptConfig ScriptConfig | (Members of |
sync bool | (Optional) Specify synchronize updates parameters to the config manager. |
TargetInstance
(Appears on:BasePolicy)
Field | Description |
---|---|
role string | (Optional) select instance of corresponding role for backup, role are: |
account string | (Optional) refer to spec.componentDef.systemAccounts.accounts[*].name in ClusterDefinition. |
connectionCredentialKey ConnectionCredentialKey | 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 |
---|---|
name string | Specify the name of initContainer. Must be a DNS_LABEL name. |
image string | (Optional) tools Container image name. |
command []string | exec used to execute for init containers. |
ToolsImageSpec
(Appears on:ConfigConstraintSpec)
Field | Description |
---|---|
mountPoint string | mountPoint is the mount point of the scripts file. |
toolConfigs []ToolConfig | (Optional) toolConfig used to config init container. |
UnixSignalTrigger
(Appears on:ReloadOptions)
Field | Description |
---|---|
signal SignalType | signal is valid for unix signal. |
processName string | 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 |
---|---|
addedKeys map[string]string | (Optional) addedKeys describes the key added. |
deletedKeys map[string]string | (Optional) deletedKeys describes the key deleted. |
updatedKeys map[string]string | (Optional) updatedKeys describes the key updated. |
Upgrade
(Appears on:OpsRequestSpec)
Upgrade defines the variables of upgrade operation.
Field | Description |
---|---|
clusterVersionRef string | 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 |
---|---|
ComponentOps ComponentOps | (Members of |
ResourceRequirements Kubernetes core/v1.ResourceRequirements | (Members of resources specifies the computing resource size of verticalScaling. |
classDefRef ClassDefRef | (Optional) classDefRef reference class defined in ComponentClassDefinition. |
VolumeExpansion
(Appears on:OpsRequestSpec)
VolumeExpansion defines the variables of volume expansion operation.
Field | Description |
---|---|
ComponentOps ComponentOps | (Members of |
volumeClaimTemplates []OpsRequestVolumeClaimTemplate | volumeClaimTemplates specifies the storage size and volumeClaimTemplate name. |
VolumeProtectionSpec
(Appears on:ClusterComponentDefinition)
Field | Description |
---|---|
highWatermark int | (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 |
---|---|
name string | name definition is the same as the name of the VolumeMounts field in PodSpec.Container, |
type VolumeType | (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