mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/sonatype-nexus] Allow for additional ingress/service customization (#15662)
Signed-off-by: Hector Maldonado <me@xynova.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
cfbcbb1ddd
commit
b5b1d5c6b9
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: sonatype-nexus
|
||||
version: 1.18.4
|
||||
version: 1.18.5
|
||||
appVersion: 3.15.2-01
|
||||
description: Sonatype Nexus is an open source repository manager
|
||||
keywords:
|
||||
|
||||
@@ -11,6 +11,7 @@ metadata:
|
||||
{{- end }}
|
||||
spec:
|
||||
rules:
|
||||
{{- if .Values.nexusProxy.enabled -}}
|
||||
{{- if .Values.nexusProxy.env.nexusHttpHost }}
|
||||
- host: {{ .Values.nexusProxy.env.nexusHttpHost }}
|
||||
http:
|
||||
@@ -37,6 +38,10 @@ spec:
|
||||
servicePort: {{ .Values.nexusProxy.port }}
|
||||
path: {{ .Values.ingress.path }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- with .Values.ingress.rules }}
|
||||
{{ toYaml . | indent 2 }}
|
||||
{{- end -}}
|
||||
{{- if .Values.ingress.tls.enabled }}
|
||||
tls:
|
||||
- hosts:
|
||||
|
||||
@@ -18,12 +18,17 @@ metadata:
|
||||
{{- end }}
|
||||
spec:
|
||||
ports:
|
||||
- name: {{ .Values.service.portName }}
|
||||
port: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
targetPort: {{ .Values.service.targetPort }}
|
||||
{{- if .Values.service.portName }}
|
||||
- name: {{ .Values.service.portName }}
|
||||
port: {{ .Values.service.port }}
|
||||
targetPort: {{ .Values.service.targetPort }}
|
||||
{{- end }}
|
||||
{{- with .Values.service.ports }}
|
||||
{{ toYaml . | indent 2 }}
|
||||
{{- end -}}
|
||||
selector:
|
||||
app: {{ template "nexus.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
type: {{ .Values.service.serviceType }}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
|
||||
@@ -155,6 +155,15 @@ ingress:
|
||||
tls:
|
||||
enabled: true
|
||||
secretName: nexus-tls
|
||||
# Specify custom rules in addition to or instead of the nexus-proxy rules
|
||||
rules:
|
||||
# - host: http://nexus.127.0.0.1.nip.io
|
||||
# http:
|
||||
# paths:
|
||||
# - backend:
|
||||
# serviceName: additional-svc
|
||||
# servicePort: 80
|
||||
|
||||
|
||||
tolerations: []
|
||||
|
||||
@@ -195,8 +204,9 @@ secret:
|
||||
service:
|
||||
# name: additional-svc
|
||||
enabled: false
|
||||
portName: nexus-service
|
||||
labels: {}
|
||||
annotations: {}
|
||||
targetPort: 80
|
||||
port: 80
|
||||
ports:
|
||||
- name: nexus-service
|
||||
targetPort: 80
|
||||
port: 80
|
||||
|
||||
Reference in New Issue
Block a user