Commit 3385d4e8 authored by 严国华's avatar 严国华

山西信息院云时代apaas政务云生产环境统一用户charts(amd) init

parent 6565f937
...@@ -2,4 +2,4 @@ configInfo: ...@@ -2,4 +2,4 @@ configInfo:
- name: global.host - name: global.host
text: 地址 text: 地址
type: text type: text
value: "bg-usma.ysdpaas.local" value: "bg-usma.zwyycs.local"
...@@ -9,5 +9,5 @@ data: ...@@ -9,5 +9,5 @@ data:
TOKEN_KEY: usmaToken TOKEN_KEY: usmaToken
# GIN_MODE: "release" # GIN_MODE: "release"
LOG_DIR_PREFIX: "/app/log" LOG_DIR_PREFIX: "/app/log"
USMA_HOST: "https://{{ .Values.global.host }}" USMA_HOST: "http://{{ .Values.global.host }}"
{{ toYaml .Values.usma.conf | indent 2 }} {{ toYaml .Values.usma.conf | indent 2 }}
...@@ -5,13 +5,11 @@ metadata: ...@@ -5,13 +5,11 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
entryPoints: entryPoints:
- websecure - web
routes: routes:
- kind: Rule - kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/bgfile`) match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/bgfile`)
services: services:
- kind: Service - kind: Service
name: file-upload name: file-upload
port: 80 port: 80
tls:
certResolver: default
...@@ -13,7 +13,8 @@ spec: ...@@ -13,7 +13,8 @@ spec:
port: 80 port: 80
protocol: TCP protocol: TCP
targetPort: 80 targetPort: 80
nodePort: 30094
selector: selector:
app: file-upload app: file-upload
type: ClusterIP type: NodePort
sessionAffinity: None sessionAffinity: None
...@@ -4,5 +4,5 @@ metadata: ...@@ -4,5 +4,5 @@ metadata:
name: usma name: usma
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
host: {{ .Values.global.host }} host: bg-usma.zwyycs.local
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"
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
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
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
...@@ -5,13 +5,11 @@ metadata: ...@@ -5,13 +5,11 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
entryPoints: entryPoints:
- websecure - web
routes: routes:
- kind: Rule - kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/api`) match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/api`)
services: services:
- kind: Service - kind: Service
name: usma-api name: usma-api
port: 80 port: 80
tls:
certResolver: default
...@@ -12,5 +12,7 @@ spec: ...@@ -12,5 +12,7 @@ spec:
- name: usma-api - name: usma-api
port: 80 port: 80
targetPort: 8080 targetPort: 8080
nodePort: 30091
selector: selector:
app: usma-api app: usma-api
type: NodePort
\ No newline at end of file
...@@ -5,13 +5,12 @@ metadata: ...@@ -5,13 +5,12 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
entryPoints: entryPoints:
- websecure - web
routes: routes:
- kind: Rule - kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/iam/api`) match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/iam/api`)
services: services:
- kind: Service - kind: Service
name: usma-login-api name: usma-login-api
port: 80 port: 80
tls:
certResolver: default
...@@ -13,7 +13,9 @@ spec: ...@@ -13,7 +13,9 @@ spec:
protocol: TCP protocol: TCP
port: 80 port: 80
targetPort: 80 targetPort: 80
nodePort: 30093
selector: selector:
app: usma-login-api app: usma-login-api
type: ClusterIP type: NodePort
sessionAffinity: None sessionAffinity: None
...@@ -5,13 +5,12 @@ metadata: ...@@ -5,13 +5,12 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
entryPoints: entryPoints:
- websecure - web
routes: routes:
- kind: Rule - kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/login`) match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/login`)
services: services:
- kind: Service - kind: Service
name: usma-login name: usma-login
port: 80 port: 80
tls:
certResolver: default
...@@ -13,7 +13,8 @@ spec: ...@@ -13,7 +13,8 @@ spec:
protocol: TCP protocol: TCP
port: 80 port: 80
targetPort: 80 targetPort: 80
nodePort: 30092
selector: selector:
app: usma-login app: usma-login
type: ClusterIP type: NodePort
sessionAffinity: None sessionAffinity: None
...@@ -7,6 +7,6 @@ data: ...@@ -7,6 +7,6 @@ data:
configmap: |- configmap: |-
window.defaultConfig = { window.defaultConfig = {
tokenName: "usmaToken", tokenName: "usmaToken",
gitLogoutUrl: "https://gitlab.ysdpaas.local/usma/rest/v5/git/sign_out", gitLogoutUrl: "http://183.201.253.162:10003/usma/rest/v5/git/sign_out",
usmaLoginUrl: "https://{{ .Values.global.host }}/usma/login/#/login" usmaLoginUrl: "http://{{ .Values.global.host }}/usma/login/#/login"
}; };
...@@ -5,13 +5,12 @@ metadata: ...@@ -5,13 +5,12 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
entryPoints: entryPoints:
- websecure - web
routes: routes:
- kind: Rule - kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/ui`) match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/ui`)
services: services:
- kind: Service - kind: Service
name: usma-ui name: usma-ui
port: 8080 port: 8080
tls:
certResolver: default
...@@ -13,5 +13,8 @@ spec: ...@@ -13,5 +13,8 @@ spec:
protocol: TCP protocol: TCP
port: 8080 port: 8080
targetPort: 8080 targetPort: 8080
nodePort: 30090
selector: selector:
app: usma-ui app: usma-ui
type: NodePort
...@@ -6,84 +6,79 @@ global: ...@@ -6,84 +6,79 @@ global:
# 镜像拉取策略 # 镜像拉取策略
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
# 镜像架构(amd64,arm64,ppc64le,mips64le),只控制servicechoreography业务系统的镜像架构,依赖组件不受此参数控制 # 镜像架构(amd64,arm64,ppc64le,mips64le),只控制servicechoreography业务系统的镜像架构,依赖组件不受此参数控制
imageArch: arm64 imageArch: amd64
usma: usma:
conf: conf:
DB_SCHEMA: "public" 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_URL: "redis://redis:6379"
REDIS_PASSWORD: "passwd123" REDIS_PASSWORD: "k6psy7kafT%U"
LOCATION_KEY: "QKFBZ-PGGWJ-VZQFF-FHPA7-QWT5H-YHF4T" LOCATION_KEY: "QKFBZ-PGGWJ-VZQFF-FHPA7-QWT5H-YHF4T"
LOCATION_URL: "https://apis.map.qq.com/ws/location/v1/ip" LOCATION_URL: "https://apis.map.qq.com/ws/location/v1/ip"
SMS_SERVICE: "http://sms-verify-api:80/sms/api" SMS_SERVICE: "http://sms-verify-api:80/sms/api"
fileUpload: fileUpload:
image: image:
repository: hub.wodcloud.com/devops/fileupload repository: registry.beagle.default:6444/devops/fileupload
tag: v2.0 tag: v2.0
storageClassName: "hostpath" storageClassName: "nfs-storage"
smsVerifyApi:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/sms-verify-api
tag: v2.4.0
usmaApi: usmaApi:
image: image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-api repository: registry.beagle.default:6444/apaas-sxxcy/usma-api
tag: v1.0.2 tag: v1.0.2
storageClassName: "hostpath" storageClassName: "nfs-storage"
usmaLoginApi: usmaLoginApi:
image: image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-login-api repository: registry.beagle.default:6444/apaas-sxxcy/usma-login-api
tag: v1.0.0 tag: v1.0.0
storageClassName: "hostpath" storageClassName: "nfs-storage"
usmaLogin: usmaLogin:
image: image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-login-ui repository: registry.beagle.default:6444/apaas-sxxcy/usma-login-ui
tag: v1.0.0 tag: v1.0.0
usmaUi: usmaUi:
image: image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-ui repository: registry.beagle.default:6444/apaas-sxxcy/usma-ui
tag: v1.0.1 tag: v1.0.1
# 初始化数据库job # 初始化数据库job
usmaDbInit: usmaDbInit:
image: image:
repository: hub.wodcloud.com/wod/usma-db-init repository: registry.beagle.default:6444/wod/usma-db-init
tag: v1.0.0 tag: v1.0.0
# redis中间件默认svc是 redis # redis中间件默认svc是 redis
redis: redis:
enabled: true enabled: true
image: image:
repository: redis repository: registry.beagle.default:6444/wod/redis
tag: 6.2.6 tag: 6.0.9
#redis的config #redis的config
conf: conf:
port: 'port 6379' port: 'port 6379'
db: 'databases 16' db: 'databases 16'
maxmem: 'maxmemory 256mb' maxmem: 'maxmemory 256mb'
apl: 'appendonly yes' apl: 'appendonly yes'
passwd: 'requirepass passwd123' passwd: 'requirepass k6psy7kafT%U'
#持久化存储类 #持久化存储类
storageClassName: "hostpath" storageClassName: "nfs-storage"
# postgresql中间件默认svc是 postgresql # postgresql中间件默认svc是 postgresql
postgresql: postgresql:
enabled: true enabled: true
image: image:
repository: postgres repository: registry.beagle.default:6444/wod/postgis
tag: 13.5 tag: 11-2.5
initImage: initImage:
repository: busybox repository: registry.beagle.default:6444/devops/busybox
tag: 1.33 tag: 1.33
#数据库密码 #数据库密码
POSTGRES_PASSWORD: "passwd123" POSTGRES_PASSWORD: "k6psy7kafT%U"
#持久化存储类 #持久化存储类
storageClassName: "hostpath" storageClassName: "nfs-storage"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment