Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
bce2e26c
Commit
bce2e26c
authored
Oct 14, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow specifying host path volumes for minio application
parent
b4b36c65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
4 deletions
+40
-4
test/minio/1.4.0/questions.yaml
test/minio/1.4.0/questions.yaml
+28
-2
test/minio/1.4.0/templates/deployment.yaml
test/minio/1.4.0/templates/deployment.yaml
+11
-2
test/minio/1.4.0/test_values.yaml
test/minio/1.4.0/test_values.yaml
+1
-0
No files found.
test/minio/1.4.0/questions.yaml
View file @
bce2e26c
...
...
@@ -3,10 +3,10 @@ groups:
description
:
"
Image
to
be
used
for
container"
-
name
:
"
Workload
Configuration"
description
:
"
Configure
workload
deployment"
-
name
:
"
Storage"
description
:
"
Configure
Storage
for
Nextcloud"
-
name
:
"
Minio
Configuration"
description
:
"
Configure
Minio
credentials"
-
name
:
"
Storage"
description
:
"
Configure
Storage
for
Nextcloud"
-
name
:
"
Advanced
DNS
Settings"
description
:
"
Configure
DNS
settings"
...
...
@@ -186,6 +186,7 @@ questions:
group
:
"
Storage"
schema
:
type
:
dict
show_if
:
[[
"
distributedMode"
,
"
="
,
false
]]
attrs
:
-
variable
:
export
label
:
"
Data
Volume"
...
...
@@ -222,3 +223,28 @@ questions:
schema
:
type
:
hostpath
required
:
true
-
variable
:
extraAppVolumeMounts
label
:
"
Extra
Host
Path
Volumes"
group
:
"
Storage"
schema
:
type
:
list
items
:
-
variable
:
extraAppVolume
label
:
"
Host
Path
Volume"
description
:
"
Add
an
extra
host
path
volume
for
Minio
application"
schema
:
type
:
dict
attrs
:
-
variable
:
mountPath
label
:
"
Mount
Path
in
Pod"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
required
:
true
-
variable
:
hostPath
label
:
"
Host
Path"
description
:
"
Host
path"
schema
:
type
:
hostpath
required
:
true
test/minio/1.4.0/templates/deployment.yaml
View file @
bce2e26c
...
...
@@ -30,6 +30,10 @@ spec:
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
volumeMounts
:
{{
include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12
}}
{{
- include "minio.tlsKeysVolumeMount" . | nindent 12
}}
{{
range $index
,
$hostPathConfiguration
:
= .Values.extraAppVolumeMounts
}}
-
name
:
extrappvolume-{{ $index }}
mountPath
:
{{
$hostPathConfiguration.mountPath
}}
{{
end
}}
command
:
-
"
/bin/sh"
-
"
-ce"
...
...
@@ -50,5 +54,10 @@ spec:
{{
$envList = mustAppend $envList (dict "name" "MINIO_ROOT_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey")
}}
{{
include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12
}}
{{
include "common.networking.dnsConfiguration" .Values | nindent 6
}}
{{
include "common.storage.allAppVolumes" .Values | nindent 6
}}
{{
- include "minio.tlsKeysVolume" . | nindent 8
}}
volumes
:
{{
include "common.storage.configureAppVolumes" .Values | nindent 8
}}
{{
- include "minio.tlsKeysVolume" . | nindent 8
}}
{{
range $index
,
$hostPathConfiguration
:
= .Values.extraAppVolumeMounts
}}
-
name
:
extrappvolume-{{ $index }}
hostPath
:
path
:
{{
$hostPathConfiguration.hostPath
}}
{{
end
}}
test/minio/1.4.0/test_values.yaml
View file @
bce2e26c
...
...
@@ -18,3 +18,4 @@ service:
updateStrategy
:
RollingUpdate
distributedMode
:
false
distributedIps
:
[]
extraAppVolumeMounts
:
[]
\ No newline at end of file
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