本文會說明從 Azure 入口網站以直接連線模式部署 Azure Arc 資料控制器。
Complete prerequisites
開始之前,請確認您已完成 [部署資料控制器 - 直接連線模式 - 必要條件] 中的必要條件。
部署 Azure Arc 資料控制器
您可以使用下列其中一種方式,從 Azure 入口網站啟動 Azure Arc 資料控制器建立流程:
- 從 Azure 入口網站的搜尋列中,搜尋「Azure Arc 資料控制器」,然後選取「+ 建立」
- 從已啟用 Azure Arc 的 Kubernetes 叢集的 [概觀] 頁面,
- 選取 [設定] 底下的「延伸模組」
- 從 [延伸模組概觀] 頁面選取「新增」,然後選取「Azure Arc 資料控制器」
- 從 Azure Arc 資料控制器市集資源庫選取 [建立]
上述任一動作都應該將您帶到建立流程的 Azure Arc 資料控制器必要條件頁面。
- 請確保已選取已啟用 Azure Arc 的 Kubernetes 叢集 (直接連接模式) 選項。 選取「下一步: 資料控制器詳細資料」
- 在 [資料控制器詳細資料] 頁面中:
- 選取將投影 Azure Arc 資料控制器的 Azure 訂用帳戶和資源群組。
- Enter a name for the Data controller
- Select a pre-created Custom location or select "Create new" to create a new custom location. 如果您選擇建立新的自訂位置,請輸入新自訂位置的名稱、從下拉式清單中選取已啟用 Azure Arc 的 Kubernetes 叢集,然後輸入與新自訂位置相關聯的命名空間,最後在 [建立新自訂位置] 視窗中選取 [建立]。 Learn more about custom locations
- Kubernetes configuration - Select a Kubernetes configuration template that best matches your Kubernetes distribution from the dropdown. 如果您選擇使用自己的設定,或有想要使用的自訂設定檔,請從下拉式清單中選取 [自訂範本] 選項。 在右側開啟的刀鋒視窗中,輸入 Docker 認證、存放庫資訊、映像標籤、映像提取原則、基礎結構類型、資料的儲存體設定、記錄及其大小、服務類型,以及控制器和管理 Proxy 的連接埠詳細資料。 當提供所有必要的資訊時,請選取 [套用]。 您也可以從刀鋒視窗頂端選取「上傳範本(JSON)」來選擇上傳您自己的範本檔案。 如果您使用自訂設定,而且想要下載這些設定的複本,請使用「下載此範本 (JSON)」來執行此動作。 深入了解 自訂設定設定檔。
- Select the appropriate Service Type for your environment
- 計量和記錄儀表板認證 - 輸入 Grafana 和 Kibana 儀表板的認證
- 選取「下一步: 其他設定」按鈕,以在提供所有必要資訊後繼續下一步。
- In the Additional Settings page:
- Metrics upload: Select this option to automatically upload your metrics to Azure Monitor so you can aggregate and analyze metrics, raise alerts, send notifications, or trigger automated actions. 必要的 監視計量發行者 角色會授與延伸模組的受控識別。
- Logs upload: Select this option to automatically upload logs to an existing Log Analytics workspace. 輸入 Log Analytics 工作區識別碼和 Log Analytics 共用存取金鑰。
- 選取「下一步:標籤」以繼續。
- In the Tags page, enter the Names and Values for your tags and select "Next: Review + Create".
- 在 [檢閱 + 建立] 頁面中,檢視部署的摘要。 請確定所有設定看起來都正確,然後選取「建立」以開始部署 Azure Arc 資料控制器。
從 Azure 入口網站監視建立
從上一個步驟中選取「建立」按鈕應該會啟動 Azure 部署概觀頁面,其中會顯示 Azure Arc 資料控制器的部署進度。
從 Kubernetes 叢集監視建立
您可以監視 Azure Arc 資料控制器部署的進度,如下所示:
- 從叢集執行
kubectl get crd,檢查是否已建立 CRD - 從您的叢集執行
kubectl get ns來檢查命名空間是否已建立 - 執行
az customlocation list --resource-group <resourcegroup> -o table來檢查自訂位置是否已建立 - 執行
kubectl get pods -ns <namespace>來檢查 Pod 部署的狀態