5.2.6. バインディングの作成

バインディングオブジェクトを使用してバインドするには、以下の手順に従います。

注記

テナントコントローラー で作成されたクレデンシャルを使用します。

手順

  1. Catalog > Installed Operators の順にクリックします。

    1. Installed Operators のリストで、3scale Operator をクリックします。
  2. Binding タブをクリックします。
  3. Create Binding をクリックします。
  4. サンプルのコンテンツを消去して以下の YAML 定義をエディターに追加し、続いて Create をクリックします。

    apiVersion: capabilities.3scale.net/v1alpha1
    kind: Binding
    metadata:
      name: mytestingbinding
    spec:
      credentialsRef:
        name: ecorp-tenant-secret
      APISelector:
        matchLabels:
          environment: testing

    バインディングオブジェクトは、ecorp-tenant-secret を参照して、environment: staging のラベルが設定された API オブジェクトを作成します。

  5. 新しい 3scale テナントに移動し、前のステップで実行したすべての設定が作成されていることを確認します。

    注記

    詳細は、参考のドキュメント Capabilities CRD を確認してください。