UNCLASSIFIED

Commit b8ebc3db authored by Thomas Runyon's avatar Thomas Runyon
Browse files

added more vs for docker registires

parent 8255ea74
Pipeline #234043 passed with stages
in 2 minutes and 50 seconds
......@@ -14,7 +14,9 @@ metadata:
app.kubernetes.io/component: {{ include "nexus.name" . }}
spec:
gateways:
- istio-system/main
{{- range .Values.istio.nexus.gateways }}
- {{ . }}
{{- end }}
hosts:
- "{{ .Values.hostname }}.{{ .Values.domain }}"
http:
......@@ -24,3 +26,28 @@ spec:
number: {{ .Values.nexus.nexusPort }}
host: {{ $serviceName }}
{{- end }}
{{- $fullName := include "nexus.fullname" . -}}
{{ if .Values.nexus.docker.enabled }}
{{ range $registry := .Values.nexus.docker.registries }}
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ $fullName | trunc 49 }}-docker-{{ $registry.port }}
namespace: {{ $.Release.Namespace }}
spec:
gateways:
{{- range $.Values.istio.nexus.gateways }}
- {{ . }}
{{- end }}
hosts:
- {{ $registry.host | quote }}
http:
- route:
- destination:
port:
number: {{ $registry.port }}
host: {{ $fullName | trunc 49 }}-docker-{{ $registry.port }}
{{- end }}
{{- end }}
......@@ -3,6 +3,9 @@ hostname: nexus
domain: bigbang.dev
istio:
enabled: false
nexus:
gateways:
- "istio-system/main"
monioring:
enabled: false
license_key: ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment