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

如果您使用 apigeectl 管理 Apigee hybrid,請參閱「使用 apigeectl 搭配私人映像檔存放區」。

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

總覽

所有 Apigee 混合式執行階段映像檔都會託管在 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.11.2
  imagePullPolicy: IfNotPresent

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

如要在指令列上顯示 Google Cloud 存放區中託管的 Apigee 映像檔清單,請按照下列步驟操作:

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