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
18ccba76
Commit
18ccba76
authored
Oct 13, 2025
by
李辉02
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(使用pvc挂载目录): ifs
parent
6eb30df1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
4 deletions
+52
-4
deployment.yaml
charts/commander-ifs-service/templates/deployment.yaml
+24
-0
pvc.yaml
charts/commander-ifs-service/templates/pvc.yaml
+16
-0
values.yaml
charts/commander-ifs-service/values.yaml
+12
-4
No files found.
charts/commander-ifs-service/templates/deployment.yaml
View file @
18ccba76
{{
- $storage
:
= (index .Values.global .Chart.Name "storage")
}}
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
...
@@ -7,6 +8,8 @@ metadata:
...
@@ -7,6 +8,8 @@ metadata:
app
:
{{
.Chart.Name
}}
app
:
{{
.Chart.Name
}}
spec
:
spec
:
replicas
:
{{
.Values.global.app.replicas
}}
replicas
:
{{
.Values.global.app.replicas
}}
strategy
:
type
:
Recreate
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
{{
.Chart.Name
}}
app
:
{{
.Chart.Name
}}
...
@@ -16,6 +19,20 @@ spec:
...
@@ -16,6 +19,20 @@ 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
}}
...
@@ -28,3 +45,10 @@ spec:
...
@@ -28,3 +45,10 @@ spec:
protocol
:
TCP
protocol
:
TCP
resources
:
resources
:
{{
- include "app.resources" . | nindent 12
}}
{{
- include "app.resources" . | nindent 12
}}
volumeMounts
:
-
name
:
app-files
mountPath
:
{{
$storage.mountPath
}}
volumes
:
-
name
:
app-files
persistentVolumeClaim
:
claimName
:
{{
.Chart.Name
}}
-pvc
charts/commander-ifs-service/templates/pvc.yaml
0 → 100644
View file @
18ccba76
{{
- $storage
:
= (index .Values.global .Chart.Name "storage")
}}
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
{{
.Chart.Name
}}
-pvc
namespace
:
{{
.Values.global.app.namespace
}}
labels
:
app
:
{{
.Chart.Name
}}
spec
:
accessModes
:
-
{{
$storage.accessMode | default "ReadWriteOnce"
}}
resources
:
requests
:
storage
:
{{
$storage.size | quote
}}
storageClassName
:
{{
$storage.storageClassName | quote
}}
charts/commander-ifs-service/values.yaml
View file @
18ccba76
...
@@ -19,10 +19,18 @@ global:
...
@@ -19,10 +19,18 @@ global:
imageVersion
:
"
2.1.2"
imageVersion
:
"
2.1.2"
port
:
8090
port
:
8090
database
:
database
:
server
:
"
10.100.16.66
"
server
:
"
mysql-service.storage.svc.cluster.local
"
database
:
"
db_commander
_2.0.8
"
database
:
"
db_commander"
uid
:
"
admin
"
uid
:
"
commander_cpd_rm
"
pwd
:
"
superadmin
"
pwd
:
"
XumBeK40fRIBc4Hw
"
charset
:
"
utf8"
charset
:
"
utf8"
sslmode
:
"
none"
sslmode
:
"
none"
allowUserVariables
:
"
true"
allowUserVariables
:
"
true"
# 存储配置 - 用于 /app/files/RevVideo/ 等目录
storage
:
size
:
"
20Gi"
mountPath
:
"
/app/files"
# 需要初始化创建的子目录列表
initDirs
:
-
RevVideo
-
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