PDSpec

(Appears on: TidbClusterSpec)

PDSpec contains details of PD members

FieldDescription
ComponentSpec
ComponentSpec

(Members of ComponentSpec are embedded into this type.)

ResourceRequirements
Kubernetes core/v1.ResourceRequirements

(Members of ResourceRequirements are embedded into this type.)

replicas
int32

The desired ready replicas

baseImage
string
(Optional)

TODO: remove optional after defaulting introduced Base image of the component, image tag is now allowed during validation

service
ServiceSpec
(Optional)

Service defines a Kubernetes service of PD cluster. Optional: Defaults to .spec.services in favor of backward compatibility

maxFailoverCount
int32
(Optional)

MaxFailoverCount limit the max replicas could be added in failover, 0 means no failover. Optional: Defaults to 3

storageClassName
string
(Optional)

The storageClassName of the persistent volume for PD data storage. Defaults to Kubernetes default storage class.

config
PDConfig
(Optional)

Config is the Configuration of pd-servers