migrate first service to virtual service

This commit is contained in:
Morten Olsen
2025-12-04 09:32:00 +01:00
parent d9b7dcd154
commit 0368d4e147
4 changed files with 23 additions and 12 deletions

View File

@@ -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

View 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

View File

@@ -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

View File

@@ -7,3 +7,5 @@ globals:
environment: prod
domain: olsen.cloud
timezone: Europe/Amsterdam
istio:
gateway: homelab/prod