diff --git a/chart/templates/bigbang/virtualservice.yaml b/chart/templates/bigbang/virtualservice.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d7414c1b7a8449577544d1a81979c83f395ada89 --- /dev/null +++ b/chart/templates/bigbang/virtualservice.yaml @@ -0,0 +1,33 @@ +{{- if .Values.istio.enabled }} +apiVersion: networking.istio.io/v1alpha3 +kind: VirtualService +metadata: + name: nexus + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: {{ include "nexus.name" . }} + helm.sh/chart: {{ include "nexus.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} + app.kubernetes.io/part-of: nexus + app.kubernetes.io/component: developer-tools +spec: + gateways: + {{- range .Values.istio.nexus.gateways }} + - {{ . }} + {{- end }} + hosts: + {{- range .Values.istio.nexus.hosts }} + - {{ tpl . $}} + {{- end }} + http: + - route: + - destination: + port: + number: {{ .Values.service.port }} + {{- if .Values.service.name }} + name: {{ .Values.service.name }}.{{ .Release.Namespace }}.svc + {{- else }} + name: {{ template "nexus.name" . }}-service.{{ .Release.Namespace }}.svc + {{- end }} +{{- end }} \ No newline at end of file diff --git a/chart/values.yaml b/chart/values.yaml index c6da164ba1f382868cc710a790e4791d91c2d01e..0484f284d83b94760f5d3d99b91824182aa06f9d 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1,6 +1,17 @@ ## Overrides for generated resource names # namespaceOverride: + +hostname: bigbang.dev + +istio: + enabled: false + nexus: + gateways: + - "istio-system/main" + hosts: + - nexus.{{ .Values.hostname }} + statefulset: enabled: false replicaCount: 1