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
b4b36c65
Commit
b4b36c65
authored
Oct 14, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ability to run minio in distributed mode
parent
999d80fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletion
+38
-1
test/minio/1.4.0/questions.yaml
test/minio/1.4.0/questions.yaml
+22
-0
test/minio/1.4.0/templates/_helpers.tpl
test/minio/1.4.0/templates/_helpers.tpl
+13
-0
test/minio/1.4.0/templates/deployment.yaml
test/minio/1.4.0/templates/deployment.yaml
+1
-1
test/minio/1.4.0/test_values.yaml
test/minio/1.4.0/test_values.yaml
+2
-0
No files found.
test/minio/1.4.0/questions.yaml
View file @
b4b36c65
...
@@ -60,6 +60,28 @@ questions:
...
@@ -60,6 +60,28 @@ questions:
-
value
:
"
Recreate"
-
value
:
"
Recreate"
description
:
"
Kill
existing
pods
before
creating
new
ones"
description
:
"
Kill
existing
pods
before
creating
new
ones"
-
variable
:
distributedMode
label
:
"
Enable
Distributed
Mode"
group
:
"
Minio
Configuration"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
distributedIps
label
:
"
Distributed
Minio
URI(s)"
schema
:
type
:
list
required
:
true
default
:
[]
items
:
-
variable
:
ip
label
:
"
Distributed
Minio
URI"
schema
:
type
:
string
empty
:
false
-
variable
:
extraArgs
-
variable
:
extraArgs
label
:
"
Minio
Extra
Arguments"
label
:
"
Minio
Extra
Arguments"
group
:
"
Minio
Configuration"
group
:
"
Minio
Configuration"
...
...
test/minio/1.4.0/templates/_helpers.tpl
View file @
b4b36c65
...
@@ -50,3 +50,16 @@ Retrieve scheme/protocol for minio
...
@@ -50,3 +50,16 @@ Retrieve scheme/protocol for minio
{{- print "http" -}}
{{- print "http" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{
{
/*
Retrieve
command
for
minio
application
*/
}
}
{{- define "minio.commandArgs" -}}
{{- $arg := "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':9001'" -}}
{{- if .Values.distributedMode -}}
{{- printf "%s %s" $arg ((concat (.Values.distributedIps | default list) (.Values.extraArgs | default list)) | join " ") -}}
{{- else -}}
{{- printf "%s %s" $arg ((concat (list "/export") (.Values.extraArgs | default list)) | join " ") -}}
{{- end -}}
{{- end -}}
test/minio/1.4.0/templates/deployment.yaml
View file @
b4b36c65
...
@@ -33,7 +33,7 @@ spec:
...
@@ -33,7 +33,7 @@ spec:
command
:
command
:
-
"
/bin/sh"
-
"
/bin/sh"
-
"
-ce"
-
"
-ce"
-
"
/usr/bin/docker-entrypoint.sh
minio
-S
/etc/minio/certs
server
/export
--console-address=':9001'
{{
(.Values.extraArgs
|
default
list)
|
join
"
"
}}"
-
{{
include "minio.commandArgs" .
}}
ports
:
ports
:
-
name
:
api
-
name
:
api
containerPort
:
9000
containerPort
:
9000
...
...
test/minio/1.4.0/test_values.yaml
View file @
b4b36c65
...
@@ -16,3 +16,5 @@ service:
...
@@ -16,3 +16,5 @@ service:
consolePort
:
32325
consolePort
:
32325
nodePort
:
32324
nodePort
:
32324
updateStrategy
:
RollingUpdate
updateStrategy
:
RollingUpdate
distributedMode
:
false
distributedIps
:
[]
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