mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
migrate first service to virtual service
This commit is contained in:
@@ -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
|
||||
18
apps/charts/audiobookshelf/templates/virtual-service.yaml
Normal file
18
apps/charts/audiobookshelf/templates/virtual-service.yaml
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -7,3 +7,5 @@ globals:
|
||||
environment: prod
|
||||
domain: olsen.cloud
|
||||
timezone: Europe/Amsterdam
|
||||
istio:
|
||||
gateway: homelab/prod
|
||||
Reference in New Issue
Block a user