3.5.3. 禁用 Route 组件
要防止 Operator 创建路由
:
将组件标记为
QuayRegistry
中的非受管:apiVersion: quay.redhat.com/v1 kind: QuayRegistry metadata: name: example-registry namespace: quay-enterprise spec: components: - kind: route managed: false
通过编辑
config.yaml
文件,指定您希望 Quay 在配置中处理 TLS:config.yaml
... EXTERNAL_TLS_TERMINATION: false ... SERVER_HOSTNAME: example-registry-quay-quay-enterprise.apps.user1.example.com ... PREFERRED_URL_SCHEME: https ...
如果您无法正确配置非受管路由,您会看到类似如下的错误:
{ { "kind":"QuayRegistry", "namespace":"quay-enterprise", "name":"example-registry", "uid":"d5879ba5-cc92-406c-ba62-8b19cf56d4aa", "apiVersion":"quay.redhat.com/v1", "resourceVersion":"2418527" }, "reason":"ConfigInvalid", "message":"required component `route` marked as unmanaged, but `configBundleSecret` is missing necessary fields" }
注意
禁用默认路由 意味着您
现在负责创建路由、Service
或 Ingress
,以便能访问 Quay 实例,以及您使用的任何 DNS 都必须与 Quay 配置中 SERVER_HOSTNAME
匹配。