mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 02:30:53 +08:00
Adapt minio chart to new console access feature
This commit is contained in:
@@ -17,7 +17,7 @@ portals:
|
||||
host:
|
||||
- "$node_ip"
|
||||
ports:
|
||||
- "$variable-service.nodePort"
|
||||
- "$variable-service.consolePort"
|
||||
|
||||
questions:
|
||||
|
||||
@@ -124,13 +124,21 @@ questions:
|
||||
required: true
|
||||
attrs:
|
||||
- variable: nodePort
|
||||
label: "Node Port to use for Minio"
|
||||
label: "Node Port to use for Minio API"
|
||||
schema:
|
||||
type: int
|
||||
min: 9000
|
||||
max: 65535
|
||||
default: 9000
|
||||
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
|
||||
description: "Minio Certificate"
|
||||
|
||||
@@ -33,10 +33,12 @@ spec:
|
||||
command:
|
||||
- "/bin/sh"
|
||||
- "-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:
|
||||
- name: http
|
||||
- name: api
|
||||
containerPort: 9000
|
||||
- name: console
|
||||
containerPort: 9001
|
||||
env:
|
||||
{{ $secretName := (include "minio.secretName" .) }}
|
||||
{{ $envList := (default list .Values.environment) }}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }}
|
||||
{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }}
|
||||
{{ $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 := . }}
|
||||
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
|
||||
{{ $_1 := set .Values "extraSelectorLabels" $selectors }}
|
||||
|
||||
@@ -13,4 +13,5 @@ image:
|
||||
tag: RELEASE.2021-07-30T00-02-00Z
|
||||
service:
|
||||
nodePort: 32324
|
||||
consolePort: 32325
|
||||
updateStrategy: RollingUpdate
|
||||
|
||||
Reference in New Issue
Block a user