fix: 调整authx-management 相关域名的部署yaml
author刘洪青 <hongqing.liu@supwisdom.com>
Wed, 21 Jul 2021 05:09:45 +0000 (13:09 +0800)
committer刘洪青 <hongqing.liu@supwisdom.com>
Wed, 21 Jul 2021 05:09:45 +0000 (13:09 +0800)
deploy-manifests/k8s-rancher/0.1.3.认证授权服务升级文档(V1.2-V1.3).md
deploy-manifests/k8s-rancher/1.authx-service/0.authx-service/2.authx-service-ingresses.yaml

index 5f02067..6304ddf 100644 (file)
@@ -8,9 +8,7 @@
 
 1. 新增 authx-service/authx-management ,用户认证授权管理前端
 
-2. 新增 authx-service/authx-ingress ,提供 authx-management 的外网域名访问
-
-3. 新增域名要求 authx-management.paas.xxx.edu.cn ,若无发提供新域名的,可以使用  admin-platform.paas.xxx.edu.cn
+2. 新增 authx-service/authx-ingress ,提供 authx-management 的外网域名访问,暂用 `admin-platform.paas.xxx.edu.cn`
 
 
 
@@ -32,4 +30,8 @@
 
   修改 ConfigMap admin-platform/admin-platform-spa-env 下的配置项 `CAS_SERVER_SPA_URL`, `USER_SERVER_SPA_URL`, `AUTH_SERVER_SPA_URL`
 
-  将 配置中的 域名地址 修改为 步骤3 中配置的域名
+  ```
+  CAS_SERVER_SPA_URL: http://admin-platform.paas.xxx.edu.cn/authx-management/cas-server
+  USER_SERVER_SPA_URL: http://admin-platform.paas.xxx.edu.cn/authx-management/user-server
+  AUTH_SERVER_SPA_URL: http://admin-platform.paas.xxx.edu.cn/authx-management/auth-server
+  ```
index 5c80294..abf1755 100644 (file)
@@ -7,21 +7,16 @@ kind: Ingress
 metadata:
   namespace: authx-service
   name: authx-management-ingress
+  annotations:
+    nginx.ingress.kubernetes.io/use-regex: "true"
+    nginx.ingress.kubernetes.io/rewrite-target: /$1
 spec:
   rules:
   # 修改为学校的根域名
-  - host: authx-management.paas.xxx.edu.cn
+  - host: admin-platform.paas.xxx.edu.cn
     http:
       paths:
-      - path: /cas-server
-        backend:
-          serviceName: authx-management-svc
-          servicePort: http
-      - path: /user-server
-        backend:
-          serviceName: authx-management-svc
-          servicePort: http
-      - path: /auth-server
+      - path: /authx-management/(.*)
         backend:
           serviceName: authx-management-svc
           servicePort: http