Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
usma
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
market
usma
Commits
fbed8d2c
Commit
fbed8d2c
authored
Aug 30, 2023
by
周魏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加初始化sql job
parent
f9879058
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
7 deletions
+39
-7
charts/portal/templates/service.yaml
charts/portal/templates/service.yaml
+1
-1
templates/usma-api/usma-db-init.yaml
templates/usma-api/usma-db-init.yaml
+21
-0
values.yaml
values.yaml
+17
-6
No files found.
charts/portal/templates/service.yaml
View file @
fbed8d2c
...
@@ -12,7 +12,7 @@ spec:
...
@@ -12,7 +12,7 @@ spec:
-
name
:
portal-ui
-
name
:
portal-ui
protocol
:
TCP
protocol
:
TCP
port
:
80
port
:
80
targetPort
:
80
targetPort
:
80
80
selector
:
selector
:
app
:
portal-ui
app
:
portal-ui
type
:
ClusterIP
type
:
ClusterIP
...
...
templates/usma-api/usma-db-init.yaml
0 → 100644
View file @
fbed8d2c
apiVersion
:
batch/v1
kind
:
Job
metadata
:
name
:
usma-db-init
spec
:
template
:
spec
:
restartPolicy
:
Never
containers
:
-
name
:
usma-db-init
{{
- if contains "/" .Values.usmaDbInit.image.repository
}}
image
:
"
{{
.Values.usmaDbInit.image.repository
}}:{{
.Values.usmaDbInit.image.tag
}}{{
template
"beagle.imageArch" . }}"
{{
- else
}}
image
:
"
{{
.Values.global.hub
}}/{{
.Values.usmaDbInit.image.repository
}}:{{
.Values.usmaDbInit.image.tag
}}{{
template
"beagle.imageArch" . }}"
{{
- end
}}
imagePullPolicy
:
Always
envFrom
:
-
configMapRef
:
name
:
"
usma"
backoffLimit
:
2
values.yaml
View file @
fbed8d2c
...
@@ -10,8 +10,8 @@ global:
...
@@ -10,8 +10,8 @@ global:
usma
:
usma
:
conf
:
conf
:
DB_URL
:
"
host=postgresql.
test
port=5432
user=postgres
password=passwd123
dbname=usma
sslmode=disable"
DB_URL
:
"
host=postgresql.
usma
port=5432
user=postgres
password=passwd123
dbname=postgres
sslmode=disable"
REDIS_URL
:
"
redis://redis.
test
:6379"
REDIS_URL
:
"
redis://redis.
usma
:6379"
REDIS_PASSWORD
:
"
passwd123"
REDIS_PASSWORD
:
"
passwd123"
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"
...
@@ -50,6 +50,17 @@ usmaUi:
...
@@ -50,6 +50,17 @@ usmaUi:
repository
:
hub.wodcloud.com/usma/usma-ui
repository
:
hub.wodcloud.com/usma/usma-ui
tag
:
v2.2.2
tag
:
v2.2.2
# 初始化数据库job
usmaDbInit
:
image
:
repository
:
usma-db-init
tag
:
v2.4.0
# 跨域的ingressroute
cros
:
apaasNamespace
:
apaas
# apaas命名空间
cloudNamespace
:
beagle-system
# 容器云命名空间
# 统一门户
# 统一门户
portal
:
portal
:
enabled
:
true
enabled
:
true
...
@@ -59,11 +70,10 @@ portal:
...
@@ -59,11 +70,10 @@ portal:
conf
:
conf
:
configmap
:
"
window.serviceConfig
=
{
\n
apaas:
'https://apaas.hbyjkffn.hb.cegn.cn:30443/apaas/ui/#/',
\n
}"
configmap
:
"
window.serviceConfig
=
{
\n
apaas:
'https://apaas.hbyjkffn.hb.cegn.cn:30443/apaas/ui/#/',
\n
}"
cros
:
apaasNamespace
:
apaas
# redis中间件默认svc是 redis
cloudNamespace
:
beagle-system
redis
:
redis
:
enabled
:
true
enabled
:
true
image
:
image
:
repository
:
redis
repository
:
redis
tag
:
6.2.6
tag
:
6.2.6
...
@@ -77,6 +87,7 @@ redis:
...
@@ -77,6 +87,7 @@ redis:
#持久化存储类
#持久化存储类
storageClassName
:
"
hostpath"
storageClassName
:
"
hostpath"
# postgresql中间件默认svc是 postgresql
postgresql
:
postgresql
:
enabled
:
true
enabled
:
true
image
:
image
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment