Component
core/datastore/mysql-innodb-cluster
A MySQL InnoDB Cluster, realized as an InnoDBCluster custom resource the MySQL Operator for Kubernetes reconciles. The emitted custom resource requests a count of MySQL server instances and a count of MySQL Router instances, and the controller acts on that request inside the target cluster — so what this component describes is what is asked for, never what ends up running. What it publishes is root access at an in-cluster address: the controller establishes the root account from the Secret the custom resource names, and creates neither a logical database nor an application user, so this component declares neither and whoever holds root creates the schemas and accounts an application needs. Reach for core/datastore/mysql where the application wants a logical database and a login role created for it, and where nothing may need installing first — its synthesized Recipe needs no controller and no chart repository, so it builds with nothing fetched. Reach for this component where the MySQL Operator control plane is already installed in the target cluster, which core/datastore/mysql-operator declares and installs.
出處
- 內容摘要
- sha256:85ffc765ede3cd63d1f0a5901c86693301410d33d51c6967c3574f7092a2bdca
- 發布時間
- 2026-11-10T10:10:52Z
- 簽署身分
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
簽章
- 官方application/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:0f1da829095d0aad0c4c536b78c703b16cf839fffc27fa011e6b3b5c71609f65
此版本的參照
oci://hub.aggrega.ai/component/core/datastore/mysql-innodb-cluster:1.0.0開發者參數
開發者在 Aggregate 中設定的值。
| 名稱 | 型別 | 預設 | 必填 | 描述 |
|---|---|---|---|---|
| charset | string | utf8mb4 | 否 | Default character set. Written into the server configuration the custom resource carries. |
| collation | string | utf8mb4_general_ci | 否 | Default collation. Written into the server configuration the custom resource carries. |
| custom_config | string | — | 否 | Raw server configuration block (my.cnf format). Appended verbatim to the server configuration the custom resource carries. |
操作員資源規格
操作員依各環境調整的基礎架構資源規格。
| 名稱 | 型別 | 預設 | 必填 | 描述 |
|---|---|---|---|---|
| engine_version | string | 8.4.0 | 否 | MySQL Server version the custom resource requests. The custom resource accepts a three-part version — major, minor and patch, optionally followed by a suffix — so a two-part value renders and is then rejected when the resource is applied. A build halts on a value the custom resource would reject. |
| server_instances | integer (min 1, max 9) | 1 | 否 | Number of MySQL server instances the custom resource requests. One is the custom resource's own default and nine is the highest it accepts. |
| router_instances | integer (min 1) | 1 | 否 | Number of MySQL Router instances the custom resource requests. One is the custom resource's own default. The published address is the Service the routers answer on, so this component does not offer a request of zero: an address nothing answers on would render as cleanly as one that works. |
| control_plane_present | boolean | false | 否 | Operator affirmation that the MySQL Operator control plane is installed in the target cluster. The build halts unless this is set true, so an InnoDBCluster custom resource is never emitted as an orphan into a cluster that cannot reconcile it. |
| credentials | string (generated | supplied) | supplied | 否 | Who owns the Secret holding the cluster's root account — the Secret the custom resource names and the controller reads. `supplied` — the Secret already exists in the target cluster and is named in `credentials_secret`; nothing is rendered for it and no password reaches the rendered artifact. `generated` — the Secret is rendered beside the custom resource from the credential attached to the `root_password` slot, so the password is carried in the rendered output. `supplied` is the default because the controller establishes the root account from a Secret it is pointed at and creates none of its own. |
| credentials_secret | string | 否 | Name of the existing Secret the controller reads the root account from when `credentials` is `supplied`. The Secret lives in the same namespace as the cluster and carries the account's user name, host and password under the keys `rootUser`, `rootHost` and `rootPassword`. Leave it empty when `credentials` is `generated`; a build halts if `supplied` is selected without it. |
輸出契約
此元件透過 uses 拓撲向使用端發布的值。
| 名稱 | 型別 | 預設 | 必填 | 描述 |
|---|---|---|---|---|
| host | string | — | 是 | Address a client opens its database connection to. The controller creates a Service under the custom resource's own name, and that bare in-cluster name is what is published; a consumer in another namespace qualifies it with that namespace on its own side. |
| port | integer | — | 是 | TCP port the published address accepts connections on. The custom resource carries no field that moves it, so it is the port the controller publishes by default. |
| protocol | string | — | 否 | Wire protocol the published address speaks — `mysql`, which is what a consumer selects a driver for. |
Uses 插槽
此元件用來連線的相依插槽。經由插槽連接的每個連線,其目標都必須符合該插槽的標籤選擇器,且每個連線可在該插槽宣告的槽位中帶有附加項目。Aggregate 或 Release 經由該插槽連接的每個連線,都必須提供必填槽位。
未宣告任何 uses 插槽。
附加槽位
Feature 附加到此元件的具名繫結點。槽位的選擇器限制哪個 Feature 可以填入該槽位,其注入清單則指明該 Feature 的內容可以如何傳遞。必填槽位必須在每個實例上繫結,方式是在該實例上或其上層範圍中附加項目;敏感槽位則宣告用於處理機密內容。Feature 也可以附加在沒有任何槽位宣告的名稱之下。
| 槽位 | 選擇器 | 必填 | 注入 | 敏感 | 描述 |
|---|---|---|---|---|---|
| root_password | — | 否 | — | 是 | Root account password. Read when `infra.credentials` is `generated`, to fill the Secret the custom resource names. Leave it unattached when the Secret is supplied. |
自我注入允許清單
env, file
關係
與其他已發布實體之間具型別的邊。沒有已發布目標的參照,會渲染為中斷的邊,而不是連結。
使用
此實體未使用目錄中的任何項目。
被使用於
使用插槽「backend」
使用插槽「cache」
使用插槽「queue」
使用插槽「backend」
使用插槽「cache」
使用插槽「queue」
使用插槽「backend」
使用插槽「backend」
使用插槽「cache」
使用插槽「queue」
使用插槽「backend」
使用插槽「cache」
使用插槽「queue」
使用插槽「backend」
使用插槽「cache」
使用插槽「queue」
使用插槽「backend」
使用插槽「cache」
使用插槽「backend」
使用插槽「cache」
使用插槽「backend」
使用插槽「cache」
使用插槽「backend」
使用插槽「cache」
使用插槽「backend」
使用插槽「cache」
使用插槽「backend」
使用插槽「cache」
使用插槽「backend」
使用插槽「cache」
使用插槽「state_store」
使用插槽「checkpointer_db」
使用插槽「checkpointer_db」
使用插槽「backend」
使用插槽「backend」
使用插槽「backend」
使用插槽「storage」
使用插槽「metadata_store」
使用插槽「target_datastore」
使用插槽「backend」
使用插槽「databases」
使用插槽「etcd」
使用插槽「backend」
使用插槽「backend」
使用插槽「cache」
使用插槽「state_store」
使用插槽「forward_target」
使用插槽「backend」
使用插槽「cache」
使用插槽「chunk_cache」
使用插槽「scrape_target」
使用插槽「backend」
使用插槽「backend」
使用插槽「database」
適用於
適用於
適用於
實作