為何在建立 VPC 叢集時收到 infrastructure operation failed 錯誤?
在處理叢集時,請排除資源群組權限錯誤。
當您嘗試建立 VPC 群集時,您會看到類似以下範例的錯誤訊息。
Unable to create cluster. The 'vpc-gen2' infrastructure operation failed with the message: the provided token is not authorized to view the specified subnet (ID:XXXX) in this account
嘗試建立叢集之使用者或服務 ID 的 API 金鑰沒有必要的 IAM 許可權,無法檢視您帳戶中的 VPC 子網路。
此錯誤的一般實務範例是將 VPC 子網路位於來自叢集的不同資源群組中。 請確定用來建立叢集的 API 金鑰至少具有這些子網路的 檢視者 存取權。
請完成下列步驟來解決問題。
-
檢閱 準備您的帳戶以建立叢集 文件中的步驟。
-
檢閱用來建立叢集之 API 金鑰的詳細資料。
ibmcloud oc api-key info輸出範例
ibmcloud oc api-key info -c CLUSTER Getting information about the API key owner for cluster CLUSTER... OK Name Email User 2 usertwo@us.ibm.com -
針對錯誤訊息中提及的 VPC 子網路或 VPC 中的所有子網路,新增 檢視者 存取角色。
-
重試叢集建立步驟。
-
如果仍然發生此問題,請聯絡支援人員。 開啟 支援案例。 在案例詳細資料中,請務必包括任何相關日誌檔、錯誤訊息或指令輸出。