diff --git a/apps/charts/audiobookshelf/templates/http-service.yaml b/apps/charts/audiobookshelf/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/audiobookshelf/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 diff --git a/apps/charts/audiobookshelf/templates/virtual-service.yaml b/apps/charts/audiobookshelf/templates/virtual-service.yaml new file mode 100644 index 0000000..0af9b24 --- /dev/null +++ b/apps/charts/audiobookshelf/templates/virtual-service.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: "{{ .Release.Name }}" + namespace: "{{ .Release.Namespace }}" +spec: + gateways: + - "{{ .Values.globals.istio.gateway }}" + - mesh + hosts: + - "{{ .Values.subdomain }}.{{ .Values.globals.domain }}" + - mesh + http: + - route: + - destination: + host: "{{ .Release.Name }}" + port: + number: 80 diff --git a/apps/root/templates/applicationset.yaml b/apps/root/templates/applicationset.yaml index d62085e..7cdba93 100644 --- a/apps/root/templates/applicationset.yaml +++ b/apps/root/templates/applicationset.yaml @@ -29,6 +29,8 @@ spec: environment: {{ .Values.globals.environment }} domain: {{ .Values.globals.domain }} timezone: {{ .Values.globals.timezone }} + istio: + gateway: {{ .Values.globals.istio.gateway }} destination: server: https://kubernetes.default.svc namespace: prod diff --git a/apps/root/values.yaml b/apps/root/values.yaml index ce61142..c184400 100644 --- a/apps/root/values.yaml +++ b/apps/root/values.yaml @@ -6,4 +6,6 @@ project: "apps" globals: environment: prod domain: olsen.cloud - timezone: Europe/Amsterdam \ No newline at end of file + timezone: Europe/Amsterdam + istio: + gateway: homelab/prod \ No newline at end of file