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 }}
|
environment: {{ .Values.globals.environment }}
|
||||||
domain: {{ .Values.globals.domain }}
|
domain: {{ .Values.globals.domain }}
|
||||||
timezone: {{ .Values.globals.timezone }}
|
timezone: {{ .Values.globals.timezone }}
|
||||||
|
istio:
|
||||||
|
gateway: {{ .Values.globals.istio.gateway }}
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: prod
|
namespace: prod
|
||||||
|
|||||||
@@ -6,4 +6,6 @@ project: "apps"
|
|||||||
globals:
|
globals:
|
||||||
environment: prod
|
environment: prod
|
||||||
domain: olsen.cloud
|
domain: olsen.cloud
|
||||||
timezone: Europe/Amsterdam
|
timezone: Europe/Amsterdam
|
||||||
|
istio:
|
||||||
|
gateway: homelab/prod
|
||||||
Reference in New Issue
Block a user