diff --git a/test/minio/1.3.7/questions.yaml b/test/minio/1.3.7/questions.yaml index 6b81889084..631941fbe3 100644 --- a/test/minio/1.3.7/questions.yaml +++ b/test/minio/1.3.7/questions.yaml @@ -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" diff --git a/test/minio/1.3.7/templates/deployment.yaml b/test/minio/1.3.7/templates/deployment.yaml index ae1a9f78ec..917f5cb339 100644 --- a/test/minio/1.3.7/templates/deployment.yaml +++ b/test/minio/1.3.7/templates/deployment.yaml @@ -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) }} diff --git a/test/minio/1.3.7/templates/service.yaml b/test/minio/1.3.7/templates/service.yaml index 34e44be851..fd2e6ba676 100644 --- a/test/minio/1.3.7/templates/service.yaml +++ b/test/minio/1.3.7/templates/service.yaml @@ -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 }} diff --git a/test/minio/1.3.7/test_values.yaml b/test/minio/1.3.7/test_values.yaml index 6d9ad0b44e..4f28c93eaa 100644 --- a/test/minio/1.3.7/test_values.yaml +++ b/test/minio/1.3.7/test_values.yaml @@ -13,4 +13,5 @@ image: tag: RELEASE.2021-07-30T00-02-00Z service: nodePort: 32324 + consolePort: 32325 updateStrategy: RollingUpdate