6.4. 使用 PodTemplate 配置 Service Registry 部署
这只是一个技术预览功能。技术预览功能不受红帽产品服务等级协议(SLA)支持,且功能可能并不完整。红帽不推荐在生产环境中使用它们。
这些技术预览功能可以使用户提早试用新的功能,并有机会在开发阶段提供反馈意见。有关红帽技术预览功能支持范围的更多信息,请参阅 https://access.redhat.com/support/offerings/techpreview。
ApicurioRegistry
CRD 包含 spec.deployment.podTemplateSpecPreview
字段,它的结构与 Kubernetes Deployment
资源( PodTemplateSpec
struct)中的 spec.template
字段相同。
通过一些限制,Service Registry Operator 将来自此字段的数据转发到 Service Registry 部署中的对应字段。这提供了更大的灵活性,而无需 Service Registry Operator 才能原生支持每个用例。
下表包含 Service Registry Operator 不接受的子字段列表,并导致配置错误:
podTemplateSpecPreview subfield | Status | 详情 |
---|---|---|
| 其它方法存在 |
|
| 其它方法存在 |
|
| 其它方法存在 |
|
| warning |
要配置 Service Registry 容器,必须使用 |
| 其它方法存在 |
|
| 保留 | - |
| 其它方法存在 |
|
| 其它方法存在 |
|
如果在 podTemplateSpecPreview
中设置字段,则其值必须有效,就像直接在 Service Registry Deployment
中配置一样。Service Registry Operator 可能仍然修改您提供的值,但不会修复无效的值或确保存在默认值。