mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
add truenas route
This commit is contained in:
3
apps/charts/truenas/Chart.yaml
Normal file
3
apps/charts/truenas/Chart.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
version: 1.0.0
|
||||||
|
name: truenas
|
||||||
30
apps/charts/truenas/templates/a.yaml
Normal file
30
apps/charts/truenas/templates/a.yaml
Normal 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
|
||||||
18
apps/charts/truenas/templates/virtual-service.yaml
Normal file
18
apps/charts/truenas/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
|
||||||
1
apps/charts/truenas/values.yaml
Normal file
1
apps/charts/truenas/values.yaml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
subdomain: truenas
|
||||||
Reference in New Issue
Block a user