3.5. 他のコンポーネントの設定

3.5.1. 外部 Redis の使用

外部の Redis データベースを使用する場合は、QuayRegistry インスタンスでコンポーネントをアンマネージドに設定します。

  1. 必要な 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
  2. 設定ファイルを使用してシークレットを作成します。

    $ oc create secret generic --from-file config.yaml=./config.yaml config-bundle-secret
  3. redis コンポーネントを管理対象外としてマークし、作成された Secret を参照する QuayRegistry YAML ファイル quayregistry.yaml を作成します。

    apiVersion: quay.redhat.com/v1
    kind: QuayRegistry
    metadata:
      name: example-registry
      namespace: quay-enterprise
    spec:
      configBundleSecret: config-bundle-secret
      components:
        - kind: redis
          managed: false
  4. レジストリーをデプロイします。

3.5.1.1. Redis 設定フィールド

3.5.1.1.1. ビルドログ

表3.4 ビルドログの設定

フィールドタイプ説明

BUILDLOGS_REDIS
(必須)

オブジェクト

ビルドログキャッシュ用の Redis 接続の詳細

   .host
(必須)

文字列

Redis にアクセスできるホスト名
 
例:
quay-server.example.com

   .port
(必須)

数値

Redis にアクセスできるポート

例:
6379

   .password

文字列

Redis にアクセスできるポート

例:
strongpassword

3.5.1.1.2. ユーザーイベント

表3.5 ユーザーイベント設定

フィールドタイプ説明

USER_EVENTS_REDIS
(必須)

オブジェクト

ユーザーイベント処理の Redis 接続の詳細

   .host
(必須)

文字列

Redis にアクセスできるホスト名
 
例:
quay-server.example.com

   .port
(必須)

数値

Redis にアクセスできるポート

例:
6379

   .password

文字列

Redis にアクセスできるポート

例:
strongpassword

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