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
8c45edea
Commit
8c45edea
authored
Aug 10, 2022
by
zhangyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时使用本地镜像
parent
dc9f7f0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
yifu-insurances-deployment.yaml
k8s-bash-test/yifu-insurances-deployment.yaml
+3
-2
pom.xml
pom.xml
+1
-1
No files found.
k8s-bash-test/yifu-insurances-deployment.yaml
View file @
8c45edea
...
@@ -44,8 +44,9 @@ spec: # 资源规范字段
...
@@ -44,8 +44,9 @@ spec: # 资源规范字段
kubernetes.io/hostname
:
yfmaster1
kubernetes.io/hostname
:
yfmaster1
containers
:
# 容器
containers
:
# 容器
-
name
:
yifu-insurances
# 容器的名字
-
name
:
yifu-insurances
# 容器的名字
image
:
192.168.1.110:5500/qas-mvp/yifu-insurances-biz:1.0.0
# 容器镜像地址
image
:
localhost:5000/yifu-insurances-biz:1.0.0
#临时地址
imagePullPolicy
:
Never
# 每次Pod启动拉取镜像策略,三个选择 Always、Never、IfNotPresent
# image: 192.168.1.110:5500/qas-mvp/yifu-insurances-biz:1.0.0 # 容器镜像地址
imagePullPolicy
:
IfNotPresent
# 每次Pod启动拉取镜像策略,三个选择 Always、Never、IfNotPresent
# Always,每次都检查;Never,每次都不检查(不管本地是否有);IfNotPresent,如果本地有就不检查,如果没有就拉取(手动测试时,
# Always,每次都检查;Never,每次都不检查(不管本地是否有);IfNotPresent,如果本地有就不检查,如果没有就拉取(手动测试时,
# 已经打好镜像存在docker容器中时,使用存在不检查级别,
# 已经打好镜像存在docker容器中时,使用存在不检查级别,
# 默认为每次都检查,然后会进行拉取新镜像,因镜像仓库不存在,导致部署失败)
# 默认为每次都检查,然后会进行拉取新镜像,因镜像仓库不存在,导致部署失败)
...
...
pom.xml
View file @
8c45edea
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
<!-- 环境标识,需要与配置文件的名称相对应 -->
<!-- 环境标识,需要与配置文件的名称相对应 -->
<profiles.active>
test
</profiles.active>
<profiles.active>
test
</profiles.active>
<!-- 天翼云-->
<!-- 天翼云-->
<my.hub.host>
192.168.1.110
:5500
</my.hub.host>
<my.hub.host>
local
:5500
</my.hub.host>
<map.group.name>
qas-mvp
</map.group.name>
<map.group.name>
qas-mvp
</map.group.name>
<!-- 众多参数配置 -->
<!-- 众多参数配置 -->
</properties>
</properties>
...
...
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