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
be9b1815
Commit
be9b1815
authored
Jun 04, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
e3965048
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
yifu-upms-deployment.yaml
k8s-bash-test/yifu-upms-deployment.yaml
+1
-1
yifu-upms-service.yaml
k8s-bash-test/yifu-upms-service.yaml
+1
-1
No files found.
k8s-bash-test/yifu-upms-deployment.yaml
View file @
be9b1815
...
...
@@ -47,7 +47,7 @@ spec: # 资源规范字段
# 已经打好镜像存在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 @
be9b1815
...
...
@@ -7,7 +7,7 @@ metadata: # 资源的元数据/属性
namespace
:
qas-mvp
# 部署在哪个namespace中
spec
:
# 资源规范字段
ports
:
-
port
:
3
000
# service 端口
-
port
:
4
000
# service 端口
protocol
:
TCP
# 协议
targetPort
:
3000
# 容器暴露的端口
#name: http # 端口名称
...
...
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