3.2. QuayRegistry エンドポイントおよびシークレットの決定

次の手順を実行して、QuayRegistry エンドポイントとシークレットを見つけます。

手順

  1. 現在のエンドポイントとシークレットを見つけるには、次のコマンドを入力し、oc description quayregistry または oc get quayregistry -o yaml を使用して QuayRegistry リソースを調べます。

    $ oc get quayregistry example-registry -n quay-enterprise -o yaml

    出力例

    apiVersion: quay.redhat.com/v1
    kind: QuayRegistry
    metadata:
      ...
      name: example-registry
      namespace: quay-enterprise
      ...
    spec:
      components:
      - kind: quay
        managed: true
      ...
      - kind: clairpostgres
        managed: true
      configBundleSecret: init-config-bundle-secret 1
    status:
      configEditorCredentialsSecret: example-registry-quay-config-editor-credentials-fg2gdgtm24 2
      configEditorEndpoint: https://example-registry-quay-config-editor-quay-enterprise.apps.docs.gcp.quaydev.org 3
      currentVersion: 3.7.0
      lastUpdated: 2022-05-11 13:28:38.199476938 +0000 UTC
      registryEndpoint: https://example-registry-quay-quay-enterprise.apps.docs.gcp.quaydev.org 4

    1
    config.yaml ファイルと SSL/TLS 証明書を含む設定バンドルのシークレット。
    2
    設定エディターツールのユーザー名 (通常は quayconfig) とパスワードを含むシークレット。
    3
    設定エディターツール、設定ツールへのブラウザーアクセス、および設定 API の URL。
    4
    レジストリーの URL、レジストリー UI へのブラウザーアクセス、およびレジストリー API エンドポイント。

3.2.1. 設定エディターツールのユーザー名とパスワードを見つける

設定エディターツールのユーザー名とパスワードを見つけるには、次の手順を実行します。

手順

  1. 次のコマンドを入力し、シークレットを取得します。

    $ oc get secret -n quay-enterprise example-registry-quay-config-editor-credentials-fg2gdgtm24 -o yaml

    出力例

    apiVersion: v1
    data:
      password: SkZwQkVKTUN0a1BUZmp4dA==
      username: cXVheWNvbmZpZw==
    kind: Secret

  2. 次のコマンドを入力し、ユーザー名をデコードします。

    $ echo 'cXVheWNvbmZpZw==' | base64 --decode

    出力例

    quayconfig

  3. 次のコマンドを入力し、パスワードをデコードします。

    $ echo 'SkZwQkVKTUN0a1BUZmp4dA==' | base64 --decode

    出力例

    JFpBEJMCtkPTfjxt