使用私人映像檔存放區搭配 Apigee Hybrid

本文說明如何設定 Apigee Hybrid,以使用私人容器映像檔存放區中的映像檔。

總覽

所有 Apigee Hybrid 執行階段映像檔都託管在 Google Cloud Container Registry (GCR)。如果基於任何原因,您想使用私人映像檔容器存放區,可以從 GCR 下載映像檔,然後推送至私人存放區。您不必覆寫每個元件,而是可以在覆寫中新增中樞詳細資料:

設定步驟

使用私有存放區的路徑,設定 hub 設定屬性的值。

hub: PRIVATE_REPO

舉例來說,如果提供下列中樞,系統會自動解析圖片路徑:

hub: private-docker-host.example.com

為:

## an example of internal component vs 3rd party
containers:
- name: apigee-udca
  image: private-docker-host.example.com/apigee-udca:1.12.4
  imagePullPolicy: IfNotPresent

containers:
- name: apigee-ingressgateway
  image: private-docker-host.example.com/apigee-asm-ingress:1.18.7-asm.4-distroless
  imagePullPolicy: IfNotPresent

如要在指令列中顯示 Google Cloud 存放區中託管的 Apigee 映像檔清單,請執行下列指令:

./apigee-operator/etc/tools/apigee-pull-push.sh --list