add truenas route

This commit is contained in:
Morten Olsen
2025-12-05 08:38:39 +01:00
parent 79d434a79f
commit 066c3ce78e
4 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
apiVersion: v2
version: 1.0.0
name: truenas

View File

@@ -0,0 +1,30 @@
apiVersion: v1
kind: Service
metadata:
name: truenas
namespace: prod
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
clusterIP: None
type: ClusterIP
---
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: truenas
namespace: prod
labels:
kubernetes.io/service-name: truenas
annotations:
argocd.argoproj.io/sync-options: Prune=false;ServerSideApply=true
addressType: IPv4
endpoints:
- addresses:
- "192.168.20.106"
ports:
- port: 80
protocol: TCP

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

@@ -0,0 +1 @@
subdomain: truenas