7.2. apicurio Registry CR spec
spec 是 ApicurioRegistry CR 的一部分,用于为 Operator 提供所需的状态或配置。
ApicurioRegistry CR spec 内容
以下示例块包含可能 spec 配置选项的完整树。有些字段可能不是必须的,或者不应该同时定义。
spec:
configuration:
persistence: <string>
sql:
dataSource:
url: <string>
userName: <string>
password: <string>
kafkasql:
bootstrapServers: <string>
security:
tls:
truststoreSecretName: <string>
keystoreSecretName: <string>
scram:
mechanism: <string>
truststoreSecretName: <string>
user: <string>
passwordSecretName: <string>
ui:
readOnly: <string>
logLevel: <string>
security:
keycloak:
url: <string>
realm: <string>
apiClientId: <string>
uiClientId: <string>
deployment:
replicas: <int32>
host: <string>
affinity: <k8s.io/api/core/v1 Affinity struct>
tolerations: <k8s.io/api/core/v1 []Toleration slice>下表描述了每个配置选项:
表 7.1. ApicurioRegistry CR spec 配置选项
| 配置选项 | type | 默认值 | 描述 |
|---|---|---|---|
|
| - | - | 配置 Apicurio Registry 应用程序的部分 |
|
| 字符串 | required |
存储后端.一个 |
|
| - | - | SQL 存储后端配置 |
|
| - | - | SQL 存储后端的数据库连接配置 |
|
| 字符串 | required | 数据库连接 URL 字符串 |
|
| 字符串 | required | 数据库连接用户 |
|
| 字符串 | empty | 数据库连接密码 |
|
| - | - | Kafka 存储后端配置 |
|
| 字符串 | required | Kafka bootstrap 服务器 URL,用于 Streams 存储后端 |
|
| - | - | 为 Kafka 存储后端配置 TLS 身份验证的部分 |
|
| 字符串 | required | Kafka 的 TLS 信任存储的 secret 名称 |
|
| 字符串 | required | 包含用户 TLS 密钥存储的 secret 名称 |
|
| 字符串 | required | Kafka 的 TLS 信任存储的 secret 名称 |
|
| 字符串 | required | SCRAM 用户名 |
|
| 字符串 | required | 包含 SCRAM 用户密码的 secret 名称 |
|
| 字符串 |
| SASL 机制 |
|
| - | - | apicurio Registry web 控制台设置 |
|
| 字符串 |
| 将 Apicurio Registry web 控制台设置为只读模式 |
|
| 字符串 |
|
apicurio Registry 日志级别。一个 |
|
| - | - | apicurio Registry web 控制台和 REST API 安全设置 |
|
| - | - | 使用 Keycloak 的 Web 控制台和 REST API 安全配置 |
|
| 字符串 | required |
Keycloak URL,必须以 |
|
| 字符串 | required | Keycloak 域 |
|
| 字符串 |
| REST API 的 Keycloak 客户端 |
|
| 字符串 |
| web 控制台的 Keycloak 客户端 |
|
| - | - | Apicurio Registry 部署设置部分 |
|
| 正整数 |
| 要部署的 Apicurio Registry pod 数量 |
|
| 字符串 | auto-generated | 主机/URL,其中 Apicurio Registry 控制台和 API 可用。如果可能,Service Registry Operator 会尝试根据集群路由器的设置来确定正确的值。该值只会自动生成一次,因此用户可以在之后覆盖它。 |
|
| k8s.io/api/core/v1 Affinity struct | empty | apicurio Registry 部署配置 |
|
| k8s.io/api/core/v1 []Toleration 片段 | empty | apicurio Registry 部署配置 |
如果某个选项标记为 必需的,则可能对正在启用的其他配置选项有条件。可以接受空值,但 Operator 并不执行指定的操作。