helm: enable using different ports for minioAPIPort and minioConsolePort (#15259)

This commit is contained in:
chel-ou 2022-07-14 23:28:34 +02:00 committed by GitHub
parent 7e32a17742
commit 3af41cd37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 8 deletions

View File

@ -35,7 +35,7 @@ spec:
{{- if (and (eq .Values.consoleService.type "NodePort") ( .Values.consoleService.nodePort)) }} {{- if (and (eq .Values.consoleService.type "NodePort") ( .Values.consoleService.nodePort)) }}
nodePort: {{ .Values.consoleService.nodePort }} nodePort: {{ .Values.consoleService.nodePort }}
{{- else }} {{- else }}
targetPort: {{ .Values.consoleService.port }} targetPort: {{ .Values.minioConsolePort }}
{{- end}} {{- end}}
{{- if .Values.consoleService.externalIPs }} {{- if .Values.consoleService.externalIPs }}
externalIPs: externalIPs:

View File

@ -16,8 +16,8 @@ spec:
release: {{ .Release.Name }} release: {{ .Release.Name }}
ingress: ingress:
- ports: - ports:
- port: {{ .Values.service.port }} - port: {{ .Values.minioAPIPort }}
- port: {{ .Values.consoleService.port }} - port: {{ .Values.minioConsolePort }}
{{- if not .Values.networkPolicy.allowExternal }} {{- if not .Values.networkPolicy.allowExternal }}
from: from:
- podSelector: - podSelector:

View File

@ -36,7 +36,7 @@ spec:
{{- if (and (eq .Values.service.type "NodePort") ( .Values.service.nodePort)) }} {{- if (and (eq .Values.service.type "NodePort") ( .Values.service.nodePort)) }}
nodePort: {{ .Values.service.nodePort }} nodePort: {{ .Values.service.nodePort }}
{{- else }} {{- else }}
targetPort: {{ .Values.service.port }} targetPort: {{ .Values.minioAPIPort }}
{{- end}} {{- end}}
{{- if .Values.service.externalIPs }} {{- if .Values.service.externalIPs }}
externalIPs: externalIPs:

View File

@ -30,6 +30,7 @@ spec:
- name: {{ $scheme }} - name: {{ $scheme }}
port: {{ .Values.service.port }} port: {{ .Values.service.port }}
protocol: TCP protocol: TCP
targetPort: {{ .Values.minioAPIPort }}
selector: selector:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}

View File

@ -46,10 +46,12 @@ ignoreChartChecksums: false
## Additional arguments to pass to minio binary ## Additional arguments to pass to minio binary
extraArgs: [] extraArgs: []
## Port number for MinIO S3 API Access ## Internal port number for MinIO S3 API container
## Change service.port to change external port number
minioAPIPort: "9000" minioAPIPort: "9000"
## Port number for MinIO Browser COnsole Access ## Internal port number for MinIO Browser Console container
## Change consoleService.port to change external port number
minioConsolePort: "9001" minioConsolePort: "9001"
## Update strategy for Deployments ## Update strategy for Deployments
@ -162,7 +164,6 @@ persistence:
service: service:
type: ClusterIP type: ClusterIP
clusterIP: ~ clusterIP: ~
## Make sure to match it to minioAPIPort
port: "9000" port: "9000"
nodePort: 32000 nodePort: 32000
@ -194,7 +195,6 @@ ingress:
consoleService: consoleService:
type: ClusterIP type: ClusterIP
clusterIP: ~ clusterIP: ~
## Make sure to match it to minioConsolePort
port: "9001" port: "9001"
nodePort: 32001 nodePort: 32001