Unverified Commit 55433c12 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by GitHub

Merge pull request #105 from truenas/NAS-111605

Adapt minio chart to new console access feature
parents b4c34dc5 90ce95ea
...@@ -16,4 +16,4 @@ sources: ...@@ -16,4 +16,4 @@ sources:
- https://github.com/minio/minio - https://github.com/minio/minio
- https://github.com/minio/charts - https://github.com/minio/charts
upstream_version: 8.0.5 upstream_version: 8.0.5
version: 1.3.7 version: 1.3.8
...@@ -17,7 +17,7 @@ portals: ...@@ -17,7 +17,7 @@ portals:
host: host:
- "$node_ip" - "$node_ip"
ports: ports:
- "$variable-service.nodePort" - "$variable-service.consolePort"
questions: questions:
...@@ -124,13 +124,21 @@ questions: ...@@ -124,13 +124,21 @@ questions:
required: true required: true
attrs: attrs:
- variable: nodePort - variable: nodePort
label: "Node Port to use for Minio" label: "Node Port to use for Minio API"
schema: schema:
type: int type: int
min: 9000 min: 9000
max: 65535 max: 65535
default: 9000 default: 9000
required: true required: true
- variable: consolePort
label: "Node Port to use for Minio UI Access"
schema:
type: int
min: 9000
max: 65535
default: 9002
required: true
- variable: certificate - variable: certificate
description: "Minio Certificate" description: "Minio Certificate"
......
...@@ -33,10 +33,12 @@ spec: ...@@ -33,10 +33,12 @@ spec:
command: command:
- "/bin/sh" - "/bin/sh"
- "-ce" - "-ce"
- "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server /export {{ (.Values.extraArgs | default list) | join " " }}" - "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server /export --console-address=':9001' {{ (.Values.extraArgs | default list) | join " " }}"
ports: ports:
- name: http - name: api
containerPort: 9000 containerPort: 9000
- name: console
containerPort: 9001
env: env:
{{ $secretName := (include "minio.secretName" .) }} {{ $secretName := (include "minio.secretName" .) }}
{{ $envList := (default list .Values.environment) }} {{ $envList := (default list .Values.environment) }}
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} {{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }}
{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} {{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }}
{{ $ports := list }} {{ $ports := list }}
{{ $ports = mustAppend $ports (dict "name" "http" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }} {{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }}
{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" 9001) }}
{{ $params := . }} {{ $params := . }}
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
{{ $_1 := set .Values "extraSelectorLabels" $selectors }} {{ $_1 := set .Values "extraSelectorLabels" $selectors }}
......
...@@ -13,4 +13,5 @@ image: ...@@ -13,4 +13,5 @@ image:
tag: RELEASE.2021-07-30T00-02-00Z tag: RELEASE.2021-07-30T00-02-00Z
service: service:
nodePort: 32324 nodePort: 32324
consolePort: 32325
updateStrategy: RollingUpdate updateStrategy: RollingUpdate
...@@ -16,4 +16,4 @@ sources: ...@@ -16,4 +16,4 @@ sources:
- https://github.com/minio/minio - https://github.com/minio/minio
- https://github.com/minio/charts - https://github.com/minio/charts
upstream_version: 8.0.5 upstream_version: 8.0.5
version: 1.3.7 version: 1.3.8
...@@ -17,7 +17,7 @@ portals: ...@@ -17,7 +17,7 @@ portals:
host: host:
- "$node_ip" - "$node_ip"
ports: ports:
- "$variable-service.nodePort" - "$variable-service.consolePort"
questions: questions:
...@@ -124,13 +124,21 @@ questions: ...@@ -124,13 +124,21 @@ questions:
required: true required: true
attrs: attrs:
- variable: nodePort - variable: nodePort
label: "Node Port to use for Minio" label: "Node Port to use for Minio API"
schema: schema:
type: int type: int
min: 9000 min: 9000
max: 65535 max: 65535
default: 9000 default: 9000
required: true required: true
- variable: consolePort
label: "Node Port to use for Minio UI Access"
schema:
type: int
min: 9000
max: 65535
default: 9002
required: true
- variable: certificate - variable: certificate
description: "Minio Certificate" description: "Minio Certificate"
......
...@@ -33,10 +33,12 @@ spec: ...@@ -33,10 +33,12 @@ spec:
command: command:
- "/bin/sh" - "/bin/sh"
- "-ce" - "-ce"
- "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server /export {{ (.Values.extraArgs | default list) | join " " }}" - "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server /export --console-address=':9001' {{ (.Values.extraArgs | default list) | join " " }}"
ports: ports:
- name: http - name: api
containerPort: 9000 containerPort: 9000
- name: console
containerPort: 9001
env: env:
{{ $secretName := (include "minio.secretName" .) }} {{ $secretName := (include "minio.secretName" .) }}
{{ $envList := (default list .Values.environment) }} {{ $envList := (default list .Values.environment) }}
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} {{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }}
{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} {{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }}
{{ $ports := list }} {{ $ports := list }}
{{ $ports = mustAppend $ports (dict "name" "http" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }} {{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }}
{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" 9001) }}
{{ $params := . }} {{ $params := . }}
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
{{ $_1 := set .Values "extraSelectorLabels" $selectors }} {{ $_1 := set .Values "extraSelectorLabels" $selectors }}
......
...@@ -13,4 +13,5 @@ image: ...@@ -13,4 +13,5 @@ image:
tag: RELEASE.2021-07-30T00-02-00Z tag: RELEASE.2021-07-30T00-02-00Z
service: service:
nodePort: 32324 nodePort: 32324
consolePort: 32325
updateStrategy: RollingUpdate updateStrategy: RollingUpdate
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment