From 79109a7a4eeeb2e6e61fd6e26cd8bdb7415cf2bb Mon Sep 17 00:00:00 2001 From: Thomas Runyon Date: Mon, 26 Apr 2021 05:31:02 -0400 Subject: [PATCH] added bigbang things --- chart/templates/bigbang/virtualservice.yaml | 33 +++++++++++++++++++++ chart/values.yaml | 11 +++++++ 2 files changed, 44 insertions(+) create mode 100644 chart/templates/bigbang/virtualservice.yaml diff --git a/chart/templates/bigbang/virtualservice.yaml b/chart/templates/bigbang/virtualservice.yaml new file mode 100644 index 0000000..d7414c1 --- /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 c6da164..0484f28 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 -- GitLab