Edge for Private Cloud v4.18.01
本文档介绍了如何安装 Edge for 私有云 的新版 Edge 体验 Beta 版。新版 Edge 体验是 Edge 的新一代界面。
如需在 Edge for Private Cloud 安装中试用新版 Edge 体验,您必须:
- 在 Edge 上启用 SAML。新版 Edge 体验仅支持将 SAML 作为身份验证机制。
- 在自己的节点上安装新版 Edge 体验。您无法将其安装在包含其他 Edge 组件的节点上。
如需详细了解新版 Edge 体验,请参阅 私有云的新版 Edge 体验。
安装概览
如需安装适用于 Edge for 私有云 的新版 Edge 体验 Beta 版,您需要执行两个不同的安装过程:
- 安装基本 Edge 界面(称为 shoehorn),并将基本 Edge 界面配置为使用 SAML 向 Edge 进行身份验证。
- 安装新版 Edge 体验,并配置新版 Edge 体验以使用 SAML 向 Edge 进行身份验证。安装新版 Edge 体验后,您可以登录并使用它来处理 Edge。
安装前提条件
- 您必须先在 Edge 上启用 SAML,然后才能安装新版 Edge 体验。新版 Edge 体验仅支持 SAML 作为其身份验证机制。
注意:在非生产环境中,您可以在 Edge 上保持启用基本身份验证,以便传统界面和 Edge API 的用户仍然可以使用基本身份验证。
如需了解如何在 Edge 上启用 SAML,请参阅在 Edge for Private Cloud 上支持 SAML。 - 您必须在自己的节点上安装新版 Edge 体验。您无法将其安装在包含其他 Edge 组件的节点上。节点必须满足以下要求:
- JAVA 1.8
- 4 GB RAM
- 2 核
- 60GB 磁盘可用空间
- 您必须先在节点上安装 4.18.01 版本的
apigee-setup实用程序,如安装 Edge apigee-setup 实用程序中所述。
安装新版 Edge 体验之前的注意事项
如上文的前提条件中所述,新版 Edge 体验要求您在 Edge 上启用 SAML。这意味着用户身份验证由 SAML IDP 控制,您可以在其中将 SAML IDP 配置为使用电子邮件地址作为用户 ID。因此,所有新版 Edge 体验用户都必须在 SAML IDP 中注册。
Edge 传统版界面(您通过 Edge for 私有云 安装的默认界面)不需要 SAML。它可以使用 SAML 或基本身份验证。这意味着,您可以:
- 在 Edge 以及传统版界面和新版 Edge 体验中启用 SAML 支持。
在这种情况下,所有传统界面和新版 Edge 体验用户都会在 SAML IDP 中注册。 如需了解如何向 SAML IDP 添加新用户,请参阅注册新的 Edge 用户。 - 在 Edge 上启用 SAML 支持,但保留基本身份验证。新版 Edge 体验使用 SAML,而传统界面仍使用基本身份验证。
在此场景中,所有传统版界面用户都使用基本身份验证凭证登录,其凭证存储在 Edge OpenLDAP 数据库中。新版 Edge 体验用户在 SAML IDP 中注册,并使用 SAML 登录。
但是,在您按照注册新 Edge 用户中所述将该用户添加到 SAML IDP 之前,经典版界面用户无法登录新版 Edge 体验。
安装配置文件
配置文件包含安装和配置新版 Edge 体验所需的所有信息。您可以使用同一配置文件来安装和配置基本界面和新版 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 界面 (shoehorn)
您必须先安装基本 Edge 界面(称为 shoehorn),然后才能安装新版 Edge 体验。
如需安装基本界面,请执行以下操作:
- 按照安装 Edge apigee-setup 实用程序中的说明,在节点上安装 4.18.01 版本的
apigee-setup实用程序。 - 清理 Yum:
> sudo yum clean all
- 按照上述说明创建配置文件,并确保其归“apigee”用户所有:
> chown apigee:apigee configFile
其中,configFile 是安装配置文件中描述的配置文件。
- 安装 Shoehorn 版本的 Edge 界面:
> /opt/apigee/apigee-service/bin/apigee-service edge-ui install
- 配置 Edge 界面:
> /opt/apigee/apigee-service/bin/apigee-service edge-ui setup -f configFile
- 在 Edge 界面上启用 SAML:
> /opt/apigee/apigee-service/bin/apigee-service edge-ui configure-sso -f configFile
安装新版 Edge 体验
安装基本 Edge 界面后,您可以安装和配置新版 Edge 体验。
如需安装新版 Edge 体验,请执行以下操作:
- 安装新版 Edge 体验:
> /opt/apigee/apigee-service/bin/apigee-service edge-management-ui install
- 切换到
edge-management-ui目录:> cd /opt/apigee/edge-management-ui
- 配置新版 Edge 体验:
> /opt/apigee/apigee-service/bin/apigee-service edge-management-ui setup -f configFile
其中,configFile 是安装配置文件中描述的配置文件。
- 在新版 Edge 体验中启用 SAML:
> /opt/apigee/apigee-service/bin/apigee-service edge-management-ui configure-sso -f configFile
- 在浏览器中打开以下网址,登录新版 Edge 体验:
http://newEdgeExperienceIP:3001
其中 newEdgeExperienceIP 是托管新版 Edge 体验的节点的 IP 地址。系统会提示您输入 SAML 凭据。输入凭据后,系统会显示新版 Edge 体验。
- 如需了解详情,包括有关使用新版 Edge 体验的信息的链接,请参阅面向私有云的新版 Edge 体验(Beta 版)。
卸载新版 Edge 体验
如需卸载新版 Edge 体验,请执行以下操作:
> /opt/apigee/apigee-service/bin/apigee-service edge-management-ui uninstall
如需卸载基本 Edge 界面 (shoehorn),请执行以下操作:
> /opt/apigee/apigee-service/bin/apigee-service edge-ui uninstall
如需从节点中彻底移除 Edge,请执行以下操作:
- 停止机器上运行的所有 Edge 服务:
> /opt/apigee/apigee-service/bin/apigee-all stop
- 清除 yum 缓存:
> sudo yum clean all
- 移除所有 Apigee RPM:
> sudo rpm -e $(rpm -qa | egrep "(apigee-|edge-|baas)")
- 移除安装根目录:
> sudo rm -rf /opt/apigee