Red Hat Camel K is deprecated
Red Hat Camel K is deprecated and the End of Life date for this product is June 30, 2025. For help migrating to the current go-to solution, Red Hat build of Apache Camel, see the Migration Guide.6.2.5. pull Secret Trait
Pull Secret 特征在 pod 上设置 pull secret,以允许 Kubernetes 从外部 registry 检索容器镜像。
可以手动指定 pull secret,或者当您为 IntegrationPlatform
上的外部容器 registry 配置身份验证时,可以使用相同的 secret 来拉取镜像。
每当您为外部容器注册表配置身份验证时,它会默认启用,因此它会假定外部 registry 是私有的。
如果您的 registry 不需要身份验证来拉取镜像,您可以禁用这个特征。
此特征在以下配置集中提供: Kubernetes、Knative、OpenShift。
6.2.5.1. 配置
运行任何与 CLI 的集成时,可以指定特征属性:
kamel run --trait pull-secret.[key]=[value] --trait pull-secret.[key2]=[value2] Integration.java
$ kamel run --trait pull-secret.[key]=[value] --trait pull-secret.[key2]=[value2] Integration.java
可用的配置选项如下:
属性 | 类型 | Description |
---|---|---|
|
| 可用于启用或禁用特征。所有特征共享此通用属性。 |
|
|
Pod 上设置的 pull secret 名称。如果留空,则会自动从 |
|
|
在将全局操作员与共享平台搭配使用时,这会将 operator 命名空间中的 |
|
|
如果 pod 类型为 |