刘洪青 | a1bab15 | 2022-03-11 14:30:36 +0800 | [diff] [blame] | 1 | # 4.9.security-center-ui.yaml |
| 2 | |
| 3 | --- |
| 4 | apiVersion: v1 |
| 5 | kind: ConfigMap |
| 6 | metadata: |
| 7 | namespace: personal-security-center |
| 8 | name: security-center-ui-env |
| 9 | data: |
| 10 | # **修改** 学校的根域名 |
刘洪青 | 817b1fc | 2022-03-15 08:17:12 +0800 | [diff] [blame^] | 11 | # RESOURCE_PREFIX: http://authx-minio.paas.nwpu.edu.cn/security-center-ui |
| 12 | RESOURCE_PREFIX: "" |
| 13 | SCHOOL_NAME: "nwpu" |
| 14 | MAIN_SERVER: http://security-center.paas.nwpu.edu.cn |
刘洪青 | a1bab15 | 2022-03-11 14:30:36 +0800 | [diff] [blame] | 15 | |
刘洪青 | 817b1fc | 2022-03-15 08:17:12 +0800 | [diff] [blame^] | 16 | PERSONAL_CENTER_API: http://personal-security-center.paas.nwpu.edu.cn |
刘洪青 | a1bab15 | 2022-03-11 14:30:36 +0800 | [diff] [blame] | 17 | |
| 18 | # 可选 cas,uniauth |
| 19 | AUTH_TYPE: cas |
| 20 | |
| 21 | # AUTH_TYPE 为 uniauth 时,配置 |
刘洪青 | 817b1fc | 2022-03-15 08:17:12 +0800 | [diff] [blame^] | 22 | # UNIAUTH_IDTOKEN: http://uniauth.paas.xxx.edu.cn/idtoken |
| 23 | # UNIAUTH_IDTOKEN_ISS: "uniauth" |
| 24 | # UNIAUTH_CLIENT_ID: "22" |
刘洪青 | a1bab15 | 2022-03-11 14:30:36 +0800 | [diff] [blame] | 25 | |
| 26 | # AUTH_TYPE 为 cas 时,配置 AUTH_CAS、JWT_ISS、JWT_SECRET |
刘洪青 | 817b1fc | 2022-03-15 08:17:12 +0800 | [diff] [blame^] | 27 | AUTH_CAS: http://uis.paas.nwpu.edu.cn/cas |
| 28 | JWT_ISS: http://uis.paas.nwpu.edu.cn/cas |
刘洪青 | a1bab15 | 2022-03-11 14:30:36 +0800 | [diff] [blame] | 29 | JWT_SECRET: (@<rhnPaUYKC_k770*DuWwYQ_#Zc#8c(2rB?kae)rN)>K7qy)awCjxp$L653Mf$2 |
| 30 | |
| 31 | |
| 32 | --- |
| 33 | apiVersion: v1 |
| 34 | kind: Service |
| 35 | metadata: |
| 36 | namespace: personal-security-center |
| 37 | name: security-center-ui-svc |
| 38 | labels: |
| 39 | app: security-center-ui-svc |
| 40 | spec: |
| 41 | ports: |
| 42 | - port: 80 |
| 43 | targetPort: http |
| 44 | protocol: TCP |
| 45 | name: http |
| 46 | selector: |
| 47 | app: security-center-ui |
| 48 | |
| 49 | --- |
| 50 | apiVersion: apps/v1 |
| 51 | kind: Deployment |
| 52 | metadata: |
| 53 | namespace: personal-security-center |
| 54 | name: security-center-ui |
| 55 | spec: |
| 56 | selector: |
| 57 | matchLabels: |
| 58 | app: security-center-ui |
| 59 | replicas: 1 |
| 60 | template: |
| 61 | metadata: |
| 62 | labels: |
| 63 | app: security-center-ui |
| 64 | spec: |
| 65 | containers: |
| 66 | - name: security-center-ui |
| 67 | # 若使用了学校搭设的私有仓库,请修改 |
刘洪青 | 817b1fc | 2022-03-15 08:17:12 +0800 | [diff] [blame^] | 68 | image: paas.harbor.nwpu.edu.cn/personal-security-center/security-center-ui:1.3.6-RELEASE |
刘洪青 | a1bab15 | 2022-03-11 14:30:36 +0800 | [diff] [blame] | 69 | imagePullPolicy: Always |
| 70 | ports: |
| 71 | - containerPort: 80 |
| 72 | name: http |
| 73 | envFrom: |
| 74 | - configMapRef: |
| 75 | name: security-center-ui-env |
| 76 | resources: |
| 77 | requests: |
| 78 | memory: "128Mi" |
| 79 | limits: |
| 80 | memory: "256Mi" |
| 81 | imagePullSecrets: |
| 82 | - name: harbor-registry |