8.3. OAuth トークンの OpenShift Container Platform シークレットの作成
この手順では、以前に取得したアクセストークンを追加して、Red Hat Quay デプロイメントと通信します。アクセストークンは、OpenShift Container Platform 内にシークレットとして保存されます。
前提条件
- Red Hat Quay をセットアップし、アクセストークンを取得している。
- OpenShift Container Platform に OpenShift Container Platform をデプロイしている。
- クラスター管理者権限のある OpenShift Container Platform 4.6 の環境が準備できている。
- OpenShift CLI (oc) がインストールされている。
手順
openshift-operators
namespace にアクセストークンを含むシークレットを作成します。oc create secret -n openshift-operators generic <secret-name> --from-literal=token=<access_token>
$ oc create secret -n openshift-operators generic <secret-name> --from-literal=token=<access_token>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow