3.5. 配置其他组件
3.5.1. 使用外部 Redis 复制链接链接已复制到粘贴板!
如果要使用外部 Redis 数据库,请将组件设置为 QuayRegistry 实例中的非受管:
使用所需的 redis 字段创建配置文件
config.yaml:BUILDLOGS_REDIS: host: quay-server.example.com password: strongpassword port: 6379 USER_EVENTS_REDIS: host: quay-server.example.com password: strongpassword port: 6379使用配置文件创建 Secret
$ oc create secret generic --from-file config.yaml=./config.yaml config-bundle-secret创建 QuayRegistry YAML 文件
quayregistry.yaml,它将 redis 组件标记为非受管状态,并引用所创建的 Secret:apiVersion: quay.redhat.com/v1 kind: QuayRegistry metadata: name: example-registry namespace: quay-enterprise spec: configBundleSecret: config-bundle-secret components: - kind: redis managed: false- 部署 registry
3.5.1.1. Redis 配置字段 复制链接链接已复制到粘贴板!
3.5.1.1.1. 构建日志 复制链接链接已复制到粘贴板!
| 字段 | 类型 | 描述 |
|---|---|---|
|
BUILDLOGS_REDIS | 对象 | 构建日志缓存的 redis 连接详情 |
|
.主机 | 字符串 |
Redis 可以访问的主机名 |
|
.port | Number |
Redis 可访问的端口 |
| .password | 字符串 |
Redis 可访问的端口 |
3.5.1.1.2. 用户事件 复制链接链接已复制到粘贴板!
| 字段 | 类型 | 描述 |
|---|---|---|
|
USER_EVENTS_REDIS | 对象 | 用户事件处理的 redis 连接详情 |
|
.主机 | 字符串 |
Redis 可以访问的主机名 |
|
.port | Number |
Redis 可访问的端口 |
| .password | 字符串 |
Redis 可访问的端口 |
3.5.1.1.3. redis 配置示例 复制链接链接已复制到粘贴板!
BUILDLOGS_REDIS:
host: quay-server.example.com
password: strongpassword
port: 6379
USER_EVENTS_REDIS:
host: quay-server.example.com
password: strongpassword
port: 6379