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
- 僅限軟體的 Google Distributed Cloud on VMware 或裸機
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:建立機構。