Apigee Hybrid 需要特定的 Google Cloud 服務 API。在這個步驟中,您將啟用安裝平台所需的 API。
請使用 gcloud
啟用必要的 API,如以下步驟所述。如有需要,您可以使用 Google Cloud 控制台啟用 API。
- 完成前置條件,並確認您已在本機殼層安裝 gcloud CLI:
gcloud --help
-
建立
PROJECT_ID
環境變數,其中的值為您打算用於 Apigee hybrid 的 Google Cloud 專案 ID。專案 ID 是用於區分 Google Cloud 中所有專案的專屬字串。如有需要,請參閱「找出專案 ID」:export PROJECT_ID=YOUR_PROJECT_ID
- 選取所需安裝項目的分頁標籤,即可查看啟用 API 的指令:
Google Cloud 上的 GKE
如果您要在 Google Kubernetes Engine (GKE) 上執行叢集,請執行以下指令來啟用必要的 API:
Google Cloud 控制台
Enable the Apigee, Apigee Connect, Cloud Pub/Sub, Cloud Resource Manager, Kubernetes Engine, Compute Engine APIs.
gcloud
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
- 在 VMware 或裸機上執行僅限軟體的 Google Distributed Cloud
Google Cloud 控制台
Enable the Apigee, Apigee Connect, Cloud Monitoring, Cloud Pub/Sub, Cloud Resource Manager APIs.
gcloud
gcloud services enable \ apigee.googleapis.com \ apigeeconnect.googleapis.com \ cloudresourcemanager.googleapis.com \ monitoring.googleapis.com \ pubsub.googleapis.com --project $PROJECT_ID
-
(選用) 如要確認已啟用必要的 API,請執行下列指令。如果必要的 API 位於傳回的清單中,表示已啟用這些 API。
gcloud services list --project $PROJECT_ID
後續步驟
請參閱步驟 2:建立機構。