Apigee Connect

本節說明如何使用 Apigee Connect,在混合式管理平面和執行階段平面的 MART 服務之間進行通訊。

簡介

Apigee Connect 可讓 Apigee Hybrid 管理層安全地連線至執行階段層中的 MART 服務,無須在網際網路上公開 MART 端點。如果您使用 Apigee Connect,則無須使用主機別名和授權的 DNS 憑證,設定 MART 輸入閘道。

在混合式執行階段平面上執行的主要服務,顯示 Apigee Connect

設定 Apigee Connect

使用 connectAgent 設定屬性,在覆寫中設定 Apigee 連線。

服務帳戶

Apigee Connect 會使用 apigee-mart 服務帳戶。這個服務帳戶需要 Apigee Connect 代理程式 roles/apigeeconnect.Agent 角色。請參閱混合式元件使用的服務帳戶和角色。

使用 connectAgent.serviceAccountPath 或 connectAgent.serviceAccountRef 設定屬性,指定 apigee-mart 服務帳戶金鑰。或者,您也可以將服務帳戶金鑰儲存在 Hashicorp Vault 中。

API

Apigee Connect 需要 Google Cloud API 程式庫中的 Apigee Connect API。如要瞭解如何在 Google Cloud 控制台中啟用 API,請參閱「步驟 3:啟用 API」。

套用 Apigee Connect 設定

使用 apigee-org 圖表,透過下列指令將變更套用至 Apigee 連線設定:

helm upgrade ORG_NAME apigee-org/ \
  --namespace apigee \
  --atomic \
  -f OVERRIDES_FILE.yaml

圖片

Apigee Connect 使用 gcr.io/apigee-release/hybrid/apigee-connect-agent:1.14.9 映像檔。如要使用私人映像檔存放區,請參閱「搭配使用私人映像檔存放區與 Apigee Hybrid」。

檢查 Apigee Connect 記錄

檢查 Apigee Connect 代理程式記錄。

kubectl logs -n namespace apigee-connect-agent-pod-name

Apigee Connect 代理程式會回報下列記錄類別:
稽核記錄類別 作業
DATA_READ ConnectionService.ListConnections
DATA_WRITE Tether.Egress
如需在 Apigee Hybrid 中查看稽核記錄的相關說明,請參閱「 稽核記錄資訊」。

您可以使用 connectAgent.logLevel 設定屬性,設定記錄層級。