從 controlPlaneManagement 遷移至管理
用於管理服務網格控制層的 controlPlaneManagement
設定已淘汰。如果您先前使用的是 controlPlaneManagement
,則必須遷移至 management
設定。
如要確認是否使用 controlPlaneManagement
,請使用 Feature State API:
gcloud container fleet mesh describe
會員規格下方的 controlPlane
值,表示您正在使用 controlPlaneManagement
,需要遷移至 management
。
controlPlaneManagement 和管理設定的差異
與 controlPlaneManagement
設定相比,management
設定可啟用其他自動化行為:
遷移步驟:
視您的設定而定,可能有兩種情況。我們將概略說明每個情況的遷移步驟。
已啟用 controlPlaneManagement,但未設定管理
條件 DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT
會透過 Feature State API 顯示。如要遷移至 management
,請按照下列步驟操作:
為叢集啟用自動管理功能,並視需要停用部分功能。執行作業:
gcloud container fleet mesh update \ --management automatic \ --memberships MEMBERSHIP_NAME \ --project FLEET_PROJECT_ID \ --location MEMBERSHIP_LOCATION
請確認您已選擇多叢集端點探索的設定。
- 如果您有多個叢集,請務必啟用端點探索的必要條件,包括確保防火牆規則。
- 或者,您也可以按照「設定端點探索功能」一節中的操作說明停用該功能。
請注意,您已啟用受管理的資料層。
- 或者,您也可以停用資料層管理功能。
停用已不再使用的 controlPlaneManagement 設定:
gcloud container fleet mesh update \ --control-plane unspecified \ --memberships MEMBERSHIP_NAME \ --project FLEET_PROJECT_ID \ --location MEMBERSHIP_LOCATION
已啟用管理和控制平面管理設定
如果您已使用 management
設定,可能會透過 Feature State API 看到 DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE
條件。這表示已淘汰的 controlPlaneManagement
設定仍存在於設定中,但已不再使用。
如要移除這項已淘汰的設定,並確保設定乾淨無誤,請執行:
gcloud container fleet mesh update \
--control-plane unspecified \
--memberships MEMBERSHIP_NAME \
--project FLEET_PROJECT_ID \
--location MEMBERSHIP_LOCATION
由於管理設定已覆寫 controlPlaneManagement 設定,因此這不會影響網格行為。