ComponentSpec
(Appears on: PDSpec, PumpSpec, TiDBSpec, TiFlashSpec, TiKVSpec)
ComponentSpec is the base spec of each component, the fields should always accessed by the BasicSpec() method to respect the cluster-level properties
Field | Description |
---|---|
image string | Image of the component, override baseImage and version if present Deprecated |
version string | (Optional) Version of the component. Override the cluster-level version if non-empty Optional: Defaults to cluster-level setting |
imagePullPolicy Kubernetes core/v1.PullPolicy | (Optional) ImagePullPolicy of the component. Override the cluster-level imagePullPolicy if present Optional: Defaults to cluster-level setting |
hostNetwork bool | (Optional) Whether Hostnetwork of the component is enabled. Override the cluster-level setting if present Optional: Defaults to cluster-level setting |
affinity Kubernetes core/v1.Affinity | (Optional) Affinity of the component. Override the cluster-level one if present Optional: Defaults to cluster-level setting |
priorityClassName string | (Optional) PriorityClassName of the component. Override the cluster-level one if present Optional: Defaults to cluster-level setting |
schedulerName string | (Optional) SchedulerName of the component. Override the cluster-level one if present Optional: Defaults to cluster-level setting |
nodeSelector map[string]string | (Optional) NodeSelector of the component. Merged into the cluster-level nodeSelector if non-empty Optional: Defaults to cluster-level setting |
annotations map[string]string | (Optional) Annotations of the component. Merged into the cluster-level annotations if non-empty Optional: Defaults to cluster-level setting |
tolerations []Kubernetes core/v1.Toleration | (Optional) Tolerations of the component. Override the cluster-level tolerations if non-empty Optional: Defaults to cluster-level setting |
podSecurityContext Kubernetes core/v1.PodSecurityContext | (Optional) PodSecurityContext of the component |
configUpdateStrategy ConfigUpdateStrategy | (Optional) ConfigUpdateStrategy of the component. Override the cluster-level updateStrategy if present Optional: Defaults to cluster-level setting |
env []Kubernetes core/v1.EnvVar | (Optional) List of environment variables to set in the container, like v1.Container.Env. Note that following env names cannot be used and may be overrided by tidb-operator built envs. - NAMESPACE - TZ - SERVICE_NAME - PEER_SERVICE_NAME - HEADLESS_SERVICE_NAME - SET_NAME - HOSTNAME - CLUSTER_NAME - POD_NAME - BINLOG_ENABLED - SLOW_LOG_FILE |