Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
commander-deploy
Project
Overview
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
cpd
commander-deploy
Commits
eb90f3cf
Commit
eb90f3cf
authored
Oct 13, 2025
by
李辉02
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(直接将/app/files/RevVideo /app/files/RevImages挂到主机上): ifs
parent
76dd12db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
25 deletions
+16
-25
deployment.yaml
charts/commander-ifs-service/templates/deployment.yaml
+8
-18
values.yaml
charts/commander-ifs-service/values.yaml
+8
-7
No files found.
charts/commander-ifs-service/templates/deployment.yaml
View file @
eb90f3cf
...
@@ -19,20 +19,6 @@ spec:
...
@@ -19,20 +19,6 @@ spec:
app
:
{{
.Chart.Name
}}
app
:
{{
.Chart.Name
}}
spec
:
spec
:
{{
- include "app.imagePullSecrets" . | nindent 6
}}
{{
- include "app.imagePullSecrets" . | nindent 6
}}
initContainers
:
-
name
:
init-dirs
image
:
busybox:latest
command
:
-
sh
-
-c
-
|
{{- range $storage.initDirs }}
mkdir -p {{ $storage.mountPath }}/{{ . }}
{{- end }}
chmod -R 777 {{ $storage.mountPath }}
volumeMounts
:
-
name
:
app-files
mountPath
:
{{
$storage.mountPath
}}
containers
:
containers
:
-
image
:
{{
.Values.global.app.imageUrl
}}{{
.Chart.Name
}}
:{{ index .Values.global .Chart.Name "imageVersion" }}
-
image
:
{{
.Values.global.app.imageUrl
}}{{
.Chart.Name
}}
:{{ index .Values.global .Chart.Name "imageVersion" }}
name
:
{{
.Chart.Name
}}
name
:
{{
.Chart.Name
}}
...
@@ -46,10 +32,14 @@ spec:
...
@@ -46,10 +32,14 @@ spec:
resources
:
resources
:
{{
- include "app.resources" . | nindent 12
}}
{{
- include "app.resources" . | nindent 12
}}
volumeMounts
:
volumeMounts
:
-
name
:
app-files
{{
- range $storage.volumes
}}
mountPath
:
{{
$storage.mountPath
}}
-
name
:
{{
.name
}}
mountPath
:
{{
.mountPath
}}
{{
- end
}}
volumes
:
volumes
:
-
name
:
app-files
{{
- range $storage.volumes
}}
-
name
:
{{
.name
}}
hostPath
:
hostPath
:
path
:
{{
$storage
.hostPath
}}
path
:
{{
.hostPath
}}
type
:
DirectoryOrCreate
type
:
DirectoryOrCreate
{{
- end
}}
charts/commander-ifs-service/values.yaml
View file @
eb90f3cf
...
@@ -26,11 +26,12 @@ global:
...
@@ -26,11 +26,12 @@ global:
charset
:
"
utf8"
charset
:
"
utf8"
sslmode
:
"
none"
sslmode
:
"
none"
allowUserVariables
:
"
true"
allowUserVariables
:
"
true"
# 存储配置 -
用于 /app/files/RevVideo/ 等
目录
# 存储配置 -
直接挂载宿主机
目录
storage
:
storage
:
mountPath
:
"
/app/files"
volumes
:
hostPath
:
"
/data/commander-ifs/files"
# 宿主机目录
-
name
:
rev-video
# 需要初始化创建的子目录列表
mountPath
:
"
/app/files/RevVideo"
initDirs
:
hostPath
:
"
/data/commander-ifs/RevVideo"
-
RevVideo
-
name
:
rev-images
-
RevImages
mountPath
:
"
/app/files/RevImages"
hostPath
:
"
/data/commander-ifs/RevImages"
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