Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
e07d9508
Commit
e07d9508
authored
Jun 06, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ee9ed356
d5d4d6a2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
yifu-upms-deployment.yaml
k8s-bash-test/yifu-upms-deployment.yaml
+2
-2
yifu-upms-service.yaml
k8s-bash-test/yifu-upms-service.yaml
+2
-2
CommonConstants.java
...ud.plus.v1/yifu/common/core/constant/CommonConstants.java
+1
-1
HttpDaprUtil.java
...ifu/cloud/plus/v1/yifu/common/dapr/util/HttpDaprUtil.java
+2
-2
daprConfig.properties
...yifu-common-dapr/src/main/resources/daprConfig.properties
+1
-1
No files found.
k8s-bash-test/yifu-upms-deployment.yaml
View file @
e07d9508
...
...
@@ -41,13 +41,13 @@ spec: # 资源规范字段
node-type
:
worker
# node标签
containers
:
# 容器
-
name
:
yifu-upms
# 容器的名字
image
:
hub.yifucenter.com:5500/qas-mvp/yifu-upms:1.0.0
# 容器镜像地址
image
:
hub.yifucenter.com:5500/qas-mvp/yifu-upms
-biz
:1.0.0
# 容器镜像地址
imagePullPolicy
:
Always
# 每次Pod启动拉取镜像策略,三个选择 Always、Never、IfNotPresent
# Always,每次都检查;Never,每次都不检查(不管本地是否有);IfNotPresent,如果本地有就不检查,如果没有就拉取(手动测试时,
# 已经打好镜像存在docker容器中时,使用存在不检查级别,
# 默认为每次都检查,然后会进行拉取新镜像,因镜像仓库不存在,导致部署失败)
ports
:
-
containerPort
:
3
000
# 容器端口
-
containerPort
:
4
000
# 容器端口
env
:
# 启动环境配置信息 active and timeZone set
-
name
:
SPRING_PROFILES_ACTIVE
value
:
test
...
...
k8s-bash-test/yifu-upms-service.yaml
View file @
e07d9508
...
...
@@ -7,9 +7,9 @@ metadata: # 资源的元数据/属性
namespace
:
qas-mvp
# 部署在哪个namespace中
spec
:
# 资源规范字段
ports
:
-
port
:
3
000
# service 端口
-
port
:
4
000
# service 端口
protocol
:
TCP
# 协议
targetPort
:
3
000
# 容器暴露的端口
targetPort
:
4
000
# 容器暴露的端口
#name: http # 端口名称
selector
:
# 选择器
app
:
yifu-upms
# 资源名称
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CommonConstants.java
View file @
e07d9508
...
...
@@ -70,7 +70,7 @@ public interface CommonConstants {
/**
* 成功标记
*/
Integer
SUCCESS
=
0
;
Integer
SUCCESS
=
20
0
;
/**
* 成功标记 200
...
...
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/HttpDaprUtil.java
View file @
e07d9508
...
...
@@ -51,7 +51,7 @@ public class HttpDaprUtil {
}
catch
(
Exception
e
)
{
return
R
.
failed
(
"获取信息失败:"
+
e
.
getMessage
());
}
if
(
null
!=
res
&&
CommonConstants
.
SUCCESS
_CODE
==
res
.
getStatusCodeValue
())
{
if
(
null
!=
res
&&
CommonConstants
.
SUCCESS
==
res
.
getStatusCodeValue
())
{
return
R
.
ok
(
res
.
getBody
());
}
else
{
return
R
.
failed
(
"获取信息失败!"
);
...
...
@@ -79,7 +79,7 @@ public class HttpDaprUtil {
}
catch
(
Exception
e
)
{
return
R
.
failed
(
"获取信息失败:"
+
e
.
getMessage
());
}
if
(
null
!=
res
&&
CommonConstants
.
SUCCESS
_CODE
==
res
.
getStatusCodeValue
())
{
if
(
null
!=
res
&&
CommonConstants
.
SUCCESS
==
res
.
getStatusCodeValue
())
{
return
R
.
ok
(
res
.
getBody
());
}
else
{
return
R
.
failed
(
"获取信息失败!"
);
...
...
yifu-common/yifu-common-dapr/src/main/resources/daprConfig.properties
View file @
e07d9508
dapr.upms.appUrl
=
http://localhost:3500/v1.0/invoke/
dapr.upms.appId
=
yifu
_upms_sider
dapr.upms.appId
=
yifu
-upms
dapr.upms.appPort
=
4000
dapr.upms.httpPort
=
3500
dapr.upms.grpcPort
=
52000
...
...
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