設定 Out-of-tree VMware vSphere 雲端提供者
Kubernetes 正在從維護 in-tree 雲端提供者轉移。VMware vSphere 有一個 out-of-tree 雲端提供者,可以透過安裝 vSphere 雲端提供者和雲端儲存外掛程式來使用。
本頁介紹如何在設定叢集後安裝 Cloud Provider Interface (CPI) 和 Cloud Storage Interface (CSI) 外掛程式。
先決條件
支援的 vSphere 版本:
- 6.7u3
- 7.0u1 或更高版本。
Kubernetes 版本必須為 1.19 或更高版本。
使用 vSphere out-of-tree 雲端提供者需要 Linux 節點,不支援 Windows。
安裝
Cloud Provider Interface (CPI) 應該在安裝 Cloud Storage Interface (CSI) 之前先安裝。
1. 建立 VMware vSphere 叢集
- 點擊 ☰ > Cluster Management。
- 在 Clusters 頁面上,點擊 Create。
- 點擊 VMware vSphere 或 Custom。
- 在 Cluster Configuration 部分的 Basics 標籤中,將 Cloud Provider 設定為 vSphere。
- 在 Add-On Config 標籤中,選擇 vSphere Cloud Provider (CPI) 和 Storage Provider (CSI) 選項。
- 完成叢集建立。