# SUSE Application Collection 與 Rancher 整合 * 將 SUSE Application Collection 的 OCI 註冊表新增至你的叢集,以便其應用程式可以在 Rancher 的「app 商店」安裝應用。 ## 在指定的叢集設定 * 需先登入 Application Collection 建立 token : https://docs.apps.rancher.io/get-started/authentication/ * 進到 Rancher 在 Apps -> Repository 創建一個 Repo,並填入以下資訊 ``` Name: application-collection Target: OCI Repository OCI Repository Host URL: oci://dp.apps.rancher.io/charts # 創建一個 secret 並且填入 Token Authentication: Create a HTTP Basic Auth Secret Username: the Application Collection username or service account name Password: the Application Collection password or access token ``` ![image](https://hackmd.io/_uploads/SylzCPIvyll.png) * 等待同步完成,這會需要一些時間 ![image](https://hackmd.io/_uploads/SJs4qUwyxx.png) * 在 Charts 就可以看到所有的 Application Collection 應用 ![image](https://hackmd.io/_uploads/HkEI9Uvylg.png) ## 設定 imagePullSecret * 在要部屬應用的 namepsace 建立一個 Registry 類型的 `application-collection` secret ``` Name: application-collection Registry Domain Name: dp.apps.rancher.io Username: the Application Collection username or service account name Password: the Application Collection password or access token ``` ![image](https://hackmd.io/_uploads/S1FVjUPygg.png) ## 安裝 cert-manager 應用 * 安裝前指定我們上一步創建的 imagepullSecrets 的名稱,如果自己有自定義名稱就需要更改這邊的名稱。 ![image](https://hackmd.io/_uploads/r1e7EPvJlx.png) ``` global: commonLabels: {} imagePullSecrets: [ "application-collection" ] ``` * 確認應用已安裝完成 ![image](https://hackmd.io/_uploads/HJ1VEDwkgg.png) ## 參考 https://docs.apps.rancher.io/howto-guides/integrate-with-rancher-manager/ https://stats.uptimerobot.com/KNq1mu8xpk https://docs.apps.rancher.io/get-started/rate-limits/