本步驟說明如何安裝 Apigee hybrid 的自訂資源定義 (CRD)。
安裝 Apigee CRD:
-
如果您將 Apigee Hybrid 安裝到與預設 (
apigee
) 不同的命名空間,請編輯apigee-operators/etc/crds/default/kustomization.yaml
,並變更命名空間以符合要求:namespace: APIGEE_NAMESPACE
例如:
namespace: my-namespace
-
執行下列指令,執行安裝模擬測試:
kubectl apply -k apigee-operator/etc/crds/default/ \ --server-side \ --force-conflicts \ --validate=false \ --dry-run=server
-
使用
--dry-run
檢查安裝作業後,請使用下列指令安裝 Apigee CRD:kubectl apply -k apigee-operator/etc/crds/default/ \ --server-side \ --force-conflicts \ --validate=false
- 使用
kubectl get crds
指令驗證安裝作業:kubectl get crds | grep apigee
輸出內容應如下所示:
apigeedatastores.apigee.cloud.google.com 2024-12-16T19:44:48Z apigeedeployments.apigee.cloud.google.com 2024-12-16T19:44:49Z apigeeenvironments.apigee.cloud.google.com 2024-12-16T19:44:50Z apigeeissues.apigee.cloud.google.com 2024-12-16T19:44:52Z apigeeorganizations.apigee.cloud.google.com 2024-12-16T19:44:53Z apigeeredis.apigee.cloud.google.com 2024-12-16T19:44:55Z apigeerouteconfigs.apigee.cloud.google.com 2024-12-16T19:44:56Z apigeeroutes.apigee.cloud.google.com 2024-12-16T19:44:56Z apigeetelemetries.apigee.cloud.google.com 2024-12-16T19:44:58Z cassandradatareplications.apigee.cloud.google.com 2024-12-16T19:45:00Z secretrotations.apigee.cloud.google.com 2024-12-16T19:45:00Z
您現在已安裝 Apigee Hybrid 的結構體。接下來,您將檢查 Kubernetes 叢集是否就緒,再安裝 Apigee Helm 圖表。