3.2. QuayRegistry エンドポイントおよびシークレットの決定
次の手順を実行して、QuayRegistry エンドポイントとシークレットを見つけます。
手順
現在のエンドポイントとシークレットを見つけるには、次のコマンドを入力し、
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
3.2.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
次のコマンドを入力し、ユーザー名をデコードします。
$ echo 'cXVheWNvbmZpZw==' | base64 --decode
出力例
quayconfig
次のコマンドを入力し、パスワードをデコードします。
$ echo 'SkZwQkVKTUN0a1BUZmp4dA==' | base64 --decode
出力例
JFpBEJMCtkPTfjxt