Apigee Hybrid 需要某些 Google Cloud 服务 API。在此步骤中,您将启用安装平台所需的 API。
使用 gcloud
启用所需的 API,如以下步骤所述。如果您愿意,您也可以使用 Cloud 控制台来启用 API。
- 完成前提条件,并确保在本地 shell 中安装了 gcloud CLI:
gcloud --help
-
创建一个
PROJECT_ID
环境变量,其中的值是您计划用于 Apigee Hybrid 的 Google Cloud 项目的 ID。项目 ID 是一个唯一字符串,用于将您的项目与 Google Cloud 中的所有其他项目区分开来。如有需要,请参阅查找项目 ID:export PROJECT_ID=
YOUR_PROJECT_ID - 选择目标安装的标签页以查看用于启用 API 的命令:
如果要在 Google Kubernetes Engine (GKE) 上运行集群,请运行以下命令以启用所需的 API:
点击即可查看有关 API 的详细信息
名称 标题 说明 apigee.googleapis.com Apigee API 提供您的项目与其他 Hybrid 服务和 Google Cloud API 之间的通信。 apigeeconnect.googleapis.com Apigee Connect API 提供 Apigee 管理层面与运行时层面之间的通信。 pubsub.googleapis.com Cloud Pub/Sub API Apigee 配额功能正常工作所必需。 cloudresourcemanager.googleapis.com Cloud Resource Manager API Hybrid 用来验证服务账号。 container.googleapis.com Kubernetes Engine API 如果您计划使用 Google Kubernetes Engine (GKE) on Google Cloud或纯软件版 Google Distributed Cloud 进行 Hybrid 运行时安装,请启用该 API。 compute.googleapis.com Compute Engine API 用于集群管理(仅限基于 GKE 和 OpenShift 的集群)。 gcloud services enable \ apigee.googleapis.com \ apigeeconnect.googleapis.com \ cloudresourcemanager.googleapis.com \ compute.googleapis.com \ container.googleapis.com \ pubsub.googleapis.com --project $PROJECT_ID
如果要在以下某个平台上运行集群,请运行以下命令以启用所需的 API:
- AKS
- EKS
- GKE on AWS
- OpenShift
- 纯软件版 Google Distributed Cloud on VMware 或 Google Distributed Cloud on Bare Metal
点击即可查看有关 API 的详细信息
名称 标题 说明 apigee.googleapis.com Apigee API 提供您的项目与其他 Hybrid 服务和 Google Cloud API 之间的通信。 apigeeconnect.googleapis.com Apigee Connect API 提供 Apigee 管理层面与运行时层面之间的通信。 pubsub.googleapis.com Cloud Pub/Sub API Apigee 配额功能正常工作所必需。 cloudresourcemanager.googleapis.com Cloud Resource Manager API Hybrid 用来验证服务账号。 gcloud services enable \ apigee.googleapis.com \ apigeeconnect.googleapis.com \ cloudresourcemanager.googleapis.com \ pubsub.googleapis.com --project $PROJECT_ID
-
(可选)如需验证所需的 API 是否已启用,请执行此命令。如果所需的 API 位于返回的列表中,则表示已启用它们。
gcloud services list --project $PROJECT_ID
下一步
转到第 2 步:创建组织。