Cloud Run for Anthos on VMware を設定する

このガイドでは、Cloud Run for Anthos を有効にして、Anthos clusters on VMware(GKE On-Prem)を設定する方法について説明します。

Cloud Run for Anthos on VMware をインストールすると、クラスタに Knative Serving がインストールされ、ステートレスのワークロードに接続して管理できます。

始める前に

  1. このタスクは、アクティブな Anthos clusters on VMware(GKE On-Prem)があることを前提としています。Anthos clusters on VMware を作成する方法を学ぶ

    Anthos の詳細については、Anthos の料金をご覧ください。

  2. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  3. Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。

    プロジェクト セレクタに移動

  4. Google Cloud プロジェクトで課金が有効になっていることを確認します

  5. Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。

    プロジェクト セレクタに移動

  6. Google Cloud プロジェクトで課金が有効になっていることを確認します

コマンドライン環境の設定

Cloud Run for Anthos on VMware 用に、gcloud CLI と kubectl を設定します。

  1. Google Cloud CLI をインストールして初期化します

  2. Google Cloud CLI で使用されるデフォルトの Google Cloud プロジェクトを、作成した Cloud プロジェクトに設定します。

    gcloud config set project PROJECT-ID

    PROJECT_ID は実際の Cloud プロジェクトの ID に置き換えます。

  3. kubectl コマンドライン ツールをインストールします。

    gcloud components install kubectl
  4. インストール済みの gcloud CLI コンポーネントを更新します。

    gcloud components update

Cloud Run for Anthos on VMware をインストールする

新しい Anthos clusters on VMware を作成する際に Cloud Run for Anthos をインストールするには、config.yaml ファイルで cloudrun 構成を設定します。

cloudrun:
  enabled: true

Google Cloud コンソール を設定する

Cloud Console を使用するときに、クラスタにログインします。Kubernetes サービス アカウントを使用している場合は、そのサービス アカウントに cluster-admin ロールを必ず追加してください。

次のステップ