From 8e313c485cb3201d7bd8874e34cbdc353edb80b4 Mon Sep 17 00:00:00 2001 From: Peter Shilo Date: Tue, 17 Jul 2018 19:11:38 +0300 Subject: [PATCH] [stable/minio] nodeport and externalips support added (#6680) * nodeport and externalips support added * Update Chart.yaml --- stable/minio/Chart.yaml | 2 +- stable/minio/templates/service.yaml | 9 +++++++++ stable/minio/values.yaml | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/stable/minio/Chart.yaml b/stable/minio/Chart.yaml index c3def5df64..ed1cc4c696 100755 --- a/stable/minio/Chart.yaml +++ b/stable/minio/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Minio is a high performance distributed object storage server, designed for large-scale private cloud infrastructure. name: minio -version: 1.5.0 +version: 1.6.0 appVersion: RELEASE.2018-07-10T01-42-11Z keywords: - storage diff --git a/stable/minio/templates/service.yaml b/stable/minio/templates/service.yaml index e2d6a144fd..7c6af56813 100644 --- a/stable/minio/templates/service.yaml +++ b/stable/minio/templates/service.yaml @@ -28,6 +28,15 @@ spec: port: 9000 targetPort: {{ .Values.service.port }} protocol: TCP +{{- if (and (eq .Values.service.type "NodePort") ( .Values.service.nodePort)) }} + nodePort: {{ .Values.service.nodePort }} +{{- end}} +{{- if .Values.service.externalIPs }} + externalIPs: +{{- range $i , $ip := .Values.service.externalIPs }} + - {{ $ip }} +{{- end }} +{{- end }} selector: app: {{ template "minio.name" . }} release: {{ .Release.Name }} diff --git a/stable/minio/values.yaml b/stable/minio/values.yaml index d8642247ae..9c93550e9b 100644 --- a/stable/minio/values.yaml +++ b/stable/minio/values.yaml @@ -71,6 +71,7 @@ service: type: ClusterIP clusterIP: None port: 9000 + # nodePort: 31311 annotations: {} # prometheus.io/scrape: 'true' # prometheus.io/path: '/minio/prometheus/metrics'