このガイドでは、Cloud Run for Anthos を有効にして、Anthos clusters on VMware(GKE On-Prem)を設定する方法について説明します。
Cloud Run for Anthos on VMware をインストールすると、クラスタに Knative Serving がインストールされ、ステートレスのワークロードに接続して管理できます。
始める前に
- このタスクは、アクティブな Anthos clusters on VMware(GKE On-Prem)があることを前提としています。Anthos clusters on VMware を作成する方法を学ぶ。
Anthos の詳細については、Anthos の料金をご覧ください。
- 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.
-
Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。
-
Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。
コマンドライン環境の設定
Cloud Run for Anthos on VMware 用に、gcloud CLI と kubectl
を設定します。
Google Cloud CLI で使用されるデフォルトの Google Cloud プロジェクトを、作成した Cloud プロジェクトに設定します。
gcloud config set project PROJECT-ID
PROJECT_ID は実際の Cloud プロジェクトの ID に置き換えます。
kubectl
コマンドライン ツールをインストールします。gcloud components install kubectl
インストール済みの 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
ロールを必ず追加してください。
次のステップ
- Cloud Run for Anthos on VMware クイックスタート
- Anthos clusters on VMware クラスタへのコンテナのデプロイ
- コンテナのビルド
- トラブルシューティング