diff --git a/step.yaml b/step.yaml index 92bd673b500a648e98f023f3c79b7889002afb52..557977bf524673c7ba12c4ac9d340c2502602fdf 100644 --- a/step.yaml +++ b/step.yaml @@ -2,4 +2,4 @@ configInfo: - name: global.host text: 地址 type: text - value: "bg-usma.ysdpaas.local" + value: "bg-usma.zwyycs.local" diff --git a/templates/configmap.yaml b/templates/configmap.yaml index cc68a359168aa0459d56fcf6c31c5fc3a1720ba3..8198a4521ea58e99a2b7a52140e6887697ac89f9 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -9,5 +9,5 @@ data: TOKEN_KEY: usmaToken # GIN_MODE: "release" LOG_DIR_PREFIX: "/app/log" - USMA_HOST: "https://{{ .Values.global.host }}" + USMA_HOST: "http://{{ .Values.global.host }}" {{ toYaml .Values.usma.conf | indent 2 }} diff --git a/templates/file-upload/ingressroute.yaml b/templates/file-upload/ingressroute.yaml index b4e1783a0167d4c53a2c064e2dae482081b125c6..4b19c16b5546316b403f7e8bbd0bcc30c1260d54 100644 --- a/templates/file-upload/ingressroute.yaml +++ b/templates/file-upload/ingressroute.yaml @@ -2,16 +2,14 @@ apiVersion: bcc.bd-apaas.com/v1alpha1 kind: IngressRoute metadata: name: file-upload - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} spec: entryPoints: - - websecure + - web routes: - - kind: Rule - match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/bgfile`) + - kind: Rule + match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/bgfile`) services: - kind: Service name: file-upload port: 80 - tls: - certResolver: default diff --git a/templates/file-upload/service.yaml b/templates/file-upload/service.yaml index f0a947909b9b77e8096788f5e775d55f13095e5d..c502b9f603c6f8ff3c6e5baed950c99492ad3213 100644 --- a/templates/file-upload/service.yaml +++ b/templates/file-upload/service.yaml @@ -13,7 +13,8 @@ spec: port: 80 protocol: TCP targetPort: 80 + nodePort: 30094 selector: app: file-upload - type: ClusterIP + type: NodePort sessionAffinity: None diff --git a/templates/ingresshost.yaml b/templates/ingresshost.yaml index db910cd23aae074154477c89de7a71adb7436699..c2592c6342116272d13dccdc7442a5a5ce6f11f6 100644 --- a/templates/ingresshost.yaml +++ b/templates/ingresshost.yaml @@ -4,5 +4,5 @@ metadata: name: usma namespace: {{ .Release.Namespace }} spec: - host: {{ .Values.global.host }} + host: bg-usma.zwyycs.local diff --git a/templates/sms/configmap.yaml b/templates/sms/configmap.yaml deleted file mode 100644 index 2733fe03bf30cf1f540153215b7bab3a7c49c7ed..0000000000000000000000000000000000000000 --- a/templates/sms/configmap.yaml +++ /dev/null @@ -1,20 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: sms-verify-api - namespace: {{ .Release.Namespace }} -data: - GIN_MODE: "debug" - REDIS_URL: {{ .Values.usma.conf.REDIS_URL }} - REDIS_PASSWORD: {{ .Values.usma.conf.REDIS_PASSWORD }} - ACCESS_KEY_ID: "LTAI4GBcVubRjzX7ABPcHnhB" - ACCESS_SECRET: "dYE2dtABFOqYtK1ijcrits0yedHkw7" - TPL_CODE_LOGIN: "SMS_212925130" - TPL_CODE_PWD: "SMS_212925127" - TPL_CODE_REGISTRY: "SMS_212925128" - TPL_CODE_LOGIN_ABNORMAL: "SMS_212925129" - TPL_CODE_ID_CARD: "SMS_460741011" - TPL_CODE_MOBILE: "SMS_212925126" - TPL_CODE_SYSTEM: "SMS_229477217" - SIGN_NAME: "比格数据" - SMS_MODE: "aliYun" diff --git a/templates/sms/deployment.yaml b/templates/sms/deployment.yaml deleted file mode 100644 index 6ed8f2135d352c5260115d92df08b7aecfd17808..0000000000000000000000000000000000000000 --- a/templates/sms/deployment.yaml +++ /dev/null @@ -1,44 +0,0 @@ -kind: Deployment -apiVersion: apps/v1 -metadata: - name: sms-verify-api - namespace: {{ .Release.Namespace }} - labels: -{{ include "sms-verify-api.labels" . | indent 4 }} - app: sms-verify-api - versoin: {{ .Values.smsVerifyApi.image.tag }} -spec: - replicas: 1 - selector: - matchLabels: - app: sms-verify-api - template: - metadata: - labels: -{{ include "sms-verify-api.labels" . | indent 8 }} - app: sms-verify-api - version: {{ .Values.smsVerifyApi.image.tag }} - spec: - volumes: - - name: localtime - hostPath: - path: /etc/localtime - type: '' - containers: - - name: sms-verify-api - {{- if contains "/" .Values.smsVerifyApi.image.repository }} - image: "{{ .Values.smsVerifyApi.image.repository }}:{{ .Values.smsVerifyApi.image.tag }}{{ template "beagle.imageArch" . }}" - {{- else }} - image: "{{ .Values.global.hub }}/{{ .Values.smsVerifyApi.image.repository }}:{{ .Values.smsVerifyApi.image.tag }}{{ template "beagle.imageArch" . }}" - {{- end }} - imagePullPolicy: "{{ .Values.global.imagePullPolicy }}" - ports: - - containerPort: 8080 - protocol: TCP - envFrom: - - configMapRef: - name: sms-verify-api - volumeMounts: - - name: localtime - mountPath: /etc/localtime - restartPolicy: Always diff --git a/templates/sms/ingressroute.yaml b/templates/sms/ingressroute.yaml deleted file mode 100644 index 52bc058b27314deced8167defdbb3c62213b9c30..0000000000000000000000000000000000000000 --- a/templates/sms/ingressroute.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: bcc.bd-apaas.com/v1alpha1 -kind: IngressRoute -metadata: - name: sms-verify-api - namespace: {{ .Release.Namespace }} -spec: - entryPoints: - - websecure - routes: - - kind: Rule - match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/sms/api`) - services: - - kind: Service - name: sms-verify-api - port: 80 - tls: - certResolver: default diff --git a/templates/sms/service.yaml b/templates/sms/service.yaml deleted file mode 100644 index bd32e1366b32b73f3cbd330a671c741c923070ef..0000000000000000000000000000000000000000 --- a/templates/sms/service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - name: sms-verify-api - namespace: {{ .Release.Namespace }} - labels: -{{ include "sms-verify-api.labels" . | indent 4 }} - app: sms-verify-api - versoin: {{ .Values.smsVerifyApi.image.tag }} -spec: - ports: - - name: sms-verify-api - protocol: TCP - port: 80 - targetPort: 8080 - selector: - app: sms-verify-api - type: ClusterIP - sessionAffinity: None diff --git a/templates/usma-api/ingressroute.yaml b/templates/usma-api/ingressroute.yaml index cd1d158cfb8ca3690a92238b1bf814fab1b919eb..1eb274bbe58465ca19295cc2aeccb7ceb56f0cd6 100644 --- a/templates/usma-api/ingressroute.yaml +++ b/templates/usma-api/ingressroute.yaml @@ -2,16 +2,14 @@ apiVersion: bcc.bd-apaas.com/v1alpha1 kind: IngressRoute metadata: name: usma-api - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} spec: entryPoints: - - websecure + - web routes: - - kind: Rule - match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/api`) + - kind: Rule + match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/api`) services: - kind: Service name: usma-api port: 80 - tls: - certResolver: default diff --git a/templates/usma-api/service.yaml b/templates/usma-api/service.yaml index 7a1ecb3df6b4620da66c3d6303d80a98de972aa5..310086fa4c9ee6e026227daabaef12a15bbdeb07 100644 --- a/templates/usma-api/service.yaml +++ b/templates/usma-api/service.yaml @@ -12,5 +12,7 @@ spec: - name: usma-api port: 80 targetPort: 8080 + nodePort: 30091 selector: - app: usma-api \ No newline at end of file + app: usma-api + type: NodePort \ No newline at end of file diff --git a/templates/usma-login/api/ingressroute.yaml b/templates/usma-login/api/ingressroute.yaml index 40e1b0bf1956a685163f1e4035f3eb932e890ef4..0536687a128b9f8668f2e5a85767ea6f1d711b45 100644 --- a/templates/usma-login/api/ingressroute.yaml +++ b/templates/usma-login/api/ingressroute.yaml @@ -2,16 +2,15 @@ apiVersion: bcc.bd-apaas.com/v1alpha1 kind: IngressRoute metadata: name: usma-login-api - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} spec: entryPoints: - - websecure + - web routes: - - kind: Rule - match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/iam/api`) + - kind: Rule + match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/iam/api`) services: - kind: Service name: usma-login-api port: 80 - tls: - certResolver: default + diff --git a/templates/usma-login/api/service.yaml b/templates/usma-login/api/service.yaml index dddc89ccd7e33f95934e309a77d26e63827e281b..2744129f6ed02e099a27a59e56a9c58719396b7a 100644 --- a/templates/usma-login/api/service.yaml +++ b/templates/usma-login/api/service.yaml @@ -13,7 +13,9 @@ spec: protocol: TCP port: 80 targetPort: 80 + nodePort: 30093 selector: app: usma-login-api - type: ClusterIP + type: NodePort sessionAffinity: None + diff --git a/templates/usma-login/ui/ingressroute.yaml b/templates/usma-login/ui/ingressroute.yaml index 6052688c0d44ed6af5e53d01d9e3bb962d31544f..d4260a96507e38d92f8411fba37a69d552dc6667 100644 --- a/templates/usma-login/ui/ingressroute.yaml +++ b/templates/usma-login/ui/ingressroute.yaml @@ -2,16 +2,15 @@ apiVersion: bcc.bd-apaas.com/v1alpha1 kind: IngressRoute metadata: name: usma-login - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} spec: entryPoints: - - websecure + - web routes: - - kind: Rule - match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/login`) + - kind: Rule + match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/login`) services: - kind: Service name: usma-login port: 80 - tls: - certResolver: default + diff --git a/templates/usma-login/ui/service.yaml b/templates/usma-login/ui/service.yaml index 0a89e745bdb7dd39d036cb9d7ba42e88a1912a15..cc624bb5ddb4770e73c40fc4865d3e68b5d24c84 100644 --- a/templates/usma-login/ui/service.yaml +++ b/templates/usma-login/ui/service.yaml @@ -13,7 +13,8 @@ spec: protocol: TCP port: 80 targetPort: 80 + nodePort: 30092 selector: app: usma-login - type: ClusterIP + type: NodePort sessionAffinity: None diff --git a/templates/usma-ui.yaml b/templates/usma-ui.yaml index 059084e782cce241076867c5fea0362f5ee25dcb..bfa5de8798002ba55df4f0d39a6f0ad38b4b39b7 100644 --- a/templates/usma-ui.yaml +++ b/templates/usma-ui.yaml @@ -7,6 +7,6 @@ data: configmap: |- window.defaultConfig = { tokenName: "usmaToken", - gitLogoutUrl: "https://gitlab.ysdpaas.local/usma/rest/v5/git/sign_out", - usmaLoginUrl: "https://{{ .Values.global.host }}/usma/login/#/login" + gitLogoutUrl: "http://183.201.253.162:10003/usma/rest/v5/git/sign_out", + usmaLoginUrl: "http://{{ .Values.global.host }}/usma/login/#/login" }; diff --git a/templates/usma-ui/ingressroute.yaml b/templates/usma-ui/ingressroute.yaml index 9c29aa59a70c3be5f9db592cf58a7ae3fd55d8a7..4c9bf0496b1933487123a7d713c0dd0537fb52cb 100644 --- a/templates/usma-ui/ingressroute.yaml +++ b/templates/usma-ui/ingressroute.yaml @@ -2,16 +2,15 @@ apiVersion: bcc.bd-apaas.com/v1alpha1 kind: IngressRoute metadata: name: usma-ui - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} spec: entryPoints: - - websecure + - web routes: - - kind: Rule - match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/ui`) + - kind: Rule + match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/ui`) services: - kind: Service name: usma-ui port: 8080 - tls: - certResolver: default + diff --git a/templates/usma-ui/service.yaml b/templates/usma-ui/service.yaml index 9874b397d4f730b0a031d251c393f00e9d9488d7..b6c082f294b7e8eedb81cea7d7fa5f0c5e56fbaf 100644 --- a/templates/usma-ui/service.yaml +++ b/templates/usma-ui/service.yaml @@ -13,5 +13,8 @@ spec: protocol: TCP port: 8080 targetPort: 8080 + nodePort: 30090 selector: app: usma-ui + type: NodePort + diff --git a/values.yaml b/values.yaml index acf643fc416682f542b028547f96f0ca7657e3a9..4647729e3ac7eaa43641ebfcfdee1fc820fe25e2 100644 --- a/values.yaml +++ b/values.yaml @@ -6,84 +6,79 @@ global: # 镜像拉取策略 imagePullPolicy: "IfNotPresent" # 镜像架构(amd64,arm64,ppc64le,mips64le),只控制servicechoreography业务系统的镜像架构,依赖组件不受此参数控制 - imageArch: arm64 + imageArch: amd64 usma: conf: DB_SCHEMA: "public" - DB_URL: "host=postgresql port=5432 user=postgres password=passwd123 dbname=postgres sslmode=disable search_path=public" + DB_URL: "host=postgresql port=5432 user=postgres password=k6psy7kafT%U dbname=postgres sslmode=disable search_path=public" REDIS_URL: "redis://redis:6379" - REDIS_PASSWORD: "passwd123" + REDIS_PASSWORD: "k6psy7kafT%U" LOCATION_KEY: "QKFBZ-PGGWJ-VZQFF-FHPA7-QWT5H-YHF4T" LOCATION_URL: "https://apis.map.qq.com/ws/location/v1/ip" SMS_SERVICE: "http://sms-verify-api:80/sms/api" fileUpload: image: - repository: hub.wodcloud.com/devops/fileupload + repository: registry.beagle.default:6444/devops/fileupload tag: v2.0 - storageClassName: "hostpath" - -smsVerifyApi: - image: - repository: registry.cn-qingdao.aliyuncs.com/wod/sms-verify-api - tag: v2.4.0 + storageClassName: "nfs-storage" usmaApi: image: - repository: hub.wodcloud.com/apaas-sxxcy/usma-api + repository: registry.beagle.default:6444/apaas-sxxcy/usma-api tag: v1.0.2 - storageClassName: "hostpath" + storageClassName: "nfs-storage" usmaLoginApi: image: - repository: hub.wodcloud.com/apaas-sxxcy/usma-login-api + repository: registry.beagle.default:6444/apaas-sxxcy/usma-login-api tag: v1.0.0 - storageClassName: "hostpath" + storageClassName: "nfs-storage" usmaLogin: image: - repository: hub.wodcloud.com/apaas-sxxcy/usma-login-ui + repository: registry.beagle.default:6444/apaas-sxxcy/usma-login-ui tag: v1.0.0 usmaUi: image: - repository: hub.wodcloud.com/apaas-sxxcy/usma-ui + repository: registry.beagle.default:6444/apaas-sxxcy/usma-ui tag: v1.0.1 # 初始化数据库job usmaDbInit: image: - repository: hub.wodcloud.com/wod/usma-db-init + repository: registry.beagle.default:6444/wod/usma-db-init tag: v1.0.0 # redis中间件默认svc是 redis redis: enabled: true image: - repository: redis - tag: 6.2.6 + repository: registry.beagle.default:6444/wod/redis + tag: 6.0.9 #redis的config conf: port: 'port 6379' db: 'databases 16' maxmem: 'maxmemory 256mb' apl: 'appendonly yes' - passwd: 'requirepass passwd123' + passwd: 'requirepass k6psy7kafT%U' #持久化存储类 - storageClassName: "hostpath" + storageClassName: "nfs-storage" # postgresql中间件默认svc是 postgresql postgresql: enabled: true image: - repository: postgres - tag: 13.5 + repository: registry.beagle.default:6444/wod/postgis + tag: 11-2.5 initImage: - repository: busybox + repository: registry.beagle.default:6444/devops/busybox tag: 1.33 #数据库密码 - POSTGRES_PASSWORD: "passwd123" + POSTGRES_PASSWORD: "k6psy7kafT%U" #持久化存储类 - storageClassName: "hostpath" + storageClassName: "nfs-storage"