安裝新的 Edge 體驗 (Beta 版)

私有雲 v4.18.01 的邊緣

本文說明如何安裝適用於 Private Cloud 的 New Edge 體驗 Beta 版。新版 Edge 是新一代的 Edge UI,

如要試用 Edge for Private Cloud 中的 New Edge 體驗,請務必完成下列事項:

  • 在 Edge 啟用 SAML。New Edge 服務僅支援 SAML 做為驗證機制。
  • 在自己的節點中安裝 New Edge 服務。無法在含有其他 Edge 元件的節點中安裝。

如要進一步瞭解 New Edge 體驗,請參閱私有雲的新版 Edge 體驗

安裝總覽

如要安裝 Edge for Private Cloud 的 New Edge 體驗 Beta 版,請執行以下兩種安裝程序:

  • 安裝基本 Edge UI (名為 shoehorn),並將基礎 Edge UI 設定為透過 Edge 進行驗證。
  • 安裝 New Edge 服務,並將 New Edge 服務設為使用 SAML 進行 Edge 驗證。安裝 New Edge 服務後,即可登入帳戶並用於 Edge。

安裝的必要條件

  • 您必須先啟用 Edge on Edge,才能安裝 New Edge 服務。New Edge 服務僅支援 SAML 做為驗證機制。

    注意:在非實際工作環境中,您可以在 Edge 上保持啟用基本驗證功能,讓傳統版 UI 和 Edge API 的使用者仍可使用基本驗證功能。

    如要瞭解如何在 Edge 中啟用 SAML,請參閱在 Edge 上支援 Private Cloud 的 SAML
  • 您必須在自己的節點中安裝 New Edge 服務。您無法將其安裝在包含其他 Edge 元件的節點上。節點必須符合下列條件:

安裝 New Edge 服務前的注意事項

如前所述,New Edge 服務會要求您在 Edge 上啟用 SAML。這表示使用者驗證作業是由 SAML IDP 控管,您在其中將 SAML 設為將電子郵件地址設為使用者 ID。因此,所有 New Edge 服務使用者都必須在 SAML IDP 中註冊。

Edge 傳統版 UI 是您以 Edge 為私有雲安裝的預設 UI,不需要使用 SAML,可支援 SAML 或基本驗證。也就是說,您可以採取下列做法:

  • 同時在 Edge、傳統版 UI 和新 Edge 服務中啟用 SAML 支援。

    在這種情況下,所有傳統版 UI 和 New Edge 體驗的使用者都會在 SAML IDP 中註冊。 如要瞭解如何將新使用者新增至 SAML IDP,請參閱「註冊新的 Edge 使用者」。
  • 啟用 Edge 的 SAML 支援,但保持基本驗證功能啟用。New Edge 服務會使用 SAML,而傳統版 UI 仍會使用基本驗證功能。

    在這個情境中,所有傳統版 UI 使用者都會以基本驗證憑證登入,也就是他們的憑證儲存在 Edge OpenLDAP 資料庫中。新的 Edge 體驗使用者已在 SAML IDP 中註冊,並使用 SAML 登入。

    不過,您必須先按照註冊新的 Edge 使用者一文的說明,將使用者新增至 SAML IDP,傳統版 UI 使用者才能登入 New Edge 服務。

安裝設定檔

設定檔包含安裝及設定 New Edge 服務所需的所有資訊。您可以使用同一個設定檔安裝及設定基本 UI 和 New Edge 服務。

設定檔範例如下所示:

# IP of the Edge Management Server. 
# This node also hosts the Edge SSO module and the current, or classic, Edge UI.
IP1=11.111.111.111

# IP of the New Edge experience node.
IP2=22.222.222.222 

# Edge sys admin credentials.
ADMIN_EMAIL=your@email.com
APIGEE_ADMINPW=yourPassword    # If omitted, you are prompted for it.

# Edge Management Server information.
APIGEE_PORT_HTTP_MS=8080
MSIP=$IP1
MS_SCHEME=http

# URLs for the different UIs.
# URL of classic Edge UI.
ROUTES_CLASSICUI="http://$IP1:9000"
# URL of New Edge experience.
ROUTES_SHOEHORN="http://$IP2:9000"

# New Edge experience configuration.
# Enable the New Edge experience.
EDGEUI_ENABLE_UNIFIED_UI=y
# Access port for the New Edge experience.
MANAGEMENT_UI_PORT=3001
MANAGEMENT_UI_APP_ENV=OPDK
MANAGEMENT_UI_IP=$IP2
# Disable TLS on the New Edge experience.
# This release does not support TLS.
MANAGEMENT_UI_USE_HTTPS=n

# SSO configuration for the New Edge experience.
MANAGEMENT_UI_SSO_ENABLED=y
MANAGEMENT_UI_SSO_CLIENT_OVERWRITE=y
MANAGEMENT_UI_SSO_CLIENT_ID=newueclient
MANAGEMENT_UI_SSO_CLIENT_SECRET=secret111

# Location of New Edge experience.
MANAGEMENT_UI_PUBLIC_URIS=http://$IP2:3001
MANAGEMENT_UI_SSO_REGISTERED_PUBLIC_URIS=$MANAGEMENT_UI_PUBLIC_URIS
MANAGEMENT_UI_SSO_CSRF_SECRET=secret222
MANAGEMENT_UI_SSO_CSRF_EXPIRATION_HOURS=24
MANAGEMENT_UI_SSO_STRICT_TRANSPORT_SECURITY_AGE_HOURS=24
MANAGEMENT_UI_SSO_PUBLIC_KEY_CACHE_HOURS=0.5

# Edge SSO configuration.
# Some settings are for the classic UI, 
# but are still required to configure the New Edge experience.
# Enable SSO.
EDGEUI_SSO_ENABLED=y

# Information about Classic UI
EDGEUI_PUBLIC_URIS=http://$IP1:9000
# Information about publicly accessible URL for Classic UI.
EDGEUI_SSO_REGISTERED_PUBLIC_URIS=$EDGEUI_PUBLIC_URIS
# The name of the OAuth client used to connect to apigee-sso. 
# The default client name is edgeui.
# Apigee recommends that you use the same settings as you used
# when enabling SAML on the classic Edge UI.
EDGEUI_SSO_CLIENT_NAME=edgeui
# Oauth client password using uppercase, lowercase, number, and special chars. 
EDGEUI_SSO_CLIENT_SECRET=ssoClient123
# If set, existing EDGEUI client will deleted and new one will be created.
EDGEUI_SSO_CLIENT_OVERWRITE=y

# Information about Edge SSO module.
# Externally accessible IP or DNS of Edge SSO module.
SSO_PUBLIC_URL_HOSTNAME=$IP1
SSO_PUBLIC_URL_PORT=9099
# Default is http. Set to https if you enabled TLS on the Edge SSO module.
# If Edge SSO uses a self-signed cert, you must also set MANAGEMENT_UI_SKIP_VERIFY to "y".
# MANAGEMENT_UI_SKIP_VERIFY=y
SSO_PUBLIC_URL_SCHEME=http
# SSO admin credentials as set when you installed Edge SSO module.
SSO_ADMIN_NAME=ssoadmin
SSO_ADMIN_SECRET=Secret123

# Required SMTP information.
SKIP_SMTP=n       # Skip now and configure later by specifying "y".
SMTPHOST=smtp.gmail.com
SMTPUSER=your@email.com
SMTPPASSWORD=yourEmailPassword
SMTPSSL=y
SMTPPORT=465      # If no SSL, use a different port, such as 25.
SMTPMAILFROM="My Company <myco@company.com>"

安裝基本 Edge UI (鞋子)

您必須先安裝基本 Edge UI (名為 shoehorn),才能安裝 New Edge 服務。

如何安裝基本 UI:

  1. 按照安裝 Edge apigee-setup 公用程式的說明,在節點上安裝 4.18.01 版的 apigee-setup 公用程式。
  2. Clean Yum:
    > sudo yum clean all
  3. 按照上述說明建立設定檔,並確保為「apigee」使用者擁有:
    > chown apigee:apigee configFile

    其中 configFile 是上方安裝設定檔中所述的設定檔。

  4. 安裝 Edge UI 的 Shoehorn 版本:
    > /opt/apigee/apigee-service/bin/apigee-service edge-ui install
  5. 設定 Edge UI:
    > /opt/apigee/apigee-service/bin/apigee-service edge-ui setup -f configFile
  6. 在 Edge UI 中啟用 SAML:
    > /opt/apigee/apigee-service/bin/apigee-service edge-ui configure-sso -f configFile

安裝 New Edge 服務

安裝基本 Edge UI 後,即可安裝並設定 New Edge 服務。

如要安裝 New Edge 服務,請按照下列步驟操作:

  1. 安裝 New Edge 服務:
    > /opt/apigee/apigee-service/bin/apigee-service edge-management-ui install
  2. 變更為 edge-management-ui 目錄:
    > cd /opt/apigee/edge-management-ui
  3. 設定新版 Edge 服務:
    > /opt/apigee/apigee-service/bin/apigee-service edge-management-ui setup -f configFile

    其中 configFile 是上方安裝設定檔中所述的設定檔。

  4. 在 New Edge 服務中啟用 SAML:
    > /opt/apigee/apigee-service/bin/apigee-service edge-management-ui configure-sso -f configFile
  5. 在瀏覽器中開啟下列網址,以便登入 New Edge 服務:
    http://newEdgeExperienceIP:3001

    其中 newEdgeExperienceIP 是託管 New Edge 體驗的節點 IP 位址。系統會提示您輸入 SAML 憑證。輸入憑證後,畫面上會顯示 New Edge 服務。

  6. 詳情請參閱 The New Edge Experience for Private Cloud (Beta 版),包括使用 New Edge 服務的連結。

解除安裝 New Edge 服務

如何解除安裝新版 Edge 服務:

> /opt/apigee/apigee-service/bin/apigee-service edge-management-ui uninstall

如何解除安裝基本 Edge UI (鞋子):

> /opt/apigee/apigee-service/bin/apigee-service edge-ui uninstall

如何將 Edge 從節點上完全移除:

  1. 停止在機器上執行的所有 Edge 服務:
    > /opt/apigee/apigee-service/bin/apigee-all stop
  2. 清除 yum 快取:
    > sudo yum clean all
  3. 移除所有 Apigee RPM:
    > sudo rpm -e $(rpm -qa | egrep "(apigee-|edge-|baas)")
  4. 移除安裝根目錄:
    > sudo rm -rf /opt/apigee