gl router
This commit is contained in:
1 parent
3ee533514f
commit
c090c7a3d7
2 files changed
+21
-3
No files matched your search
@@ -8,8 +8,12 @@ subsets:
|
||||
- addresses:
|
||||
- ip: "{{ $data.ip }}"
|
||||
ports:
|
||||
- port: {{ $data.port }}
|
||||
- port: {{ $data.port | default 80 }}
|
||||
protocol: TCP
|
||||
{{ range $p := ($data.additionalPorts | default [] )}}
|
||||
- port: "{{ $p.port }}"
|
||||
protocol: "{{ $p.protocol | default 'TCP' }}"
|
||||
{{ end }}`
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -20,11 +24,19 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: {{ $data.port }}
|
||||
|
||||
targetPort: {{ $data.port | default 80 }}
|
||||
{{ range $p := ($data.additionalPorts | default [])}}
|
||||
- port: "{{ $p.port }}"
|
||||
protocol: "{{ $p.protocol | default 'TCP' }}"
|
||||
targetPort: "{{ $p.port }}"
|
||||
name: "{{ $p.name | default $p.port }}"
|
||||
{{ end }}`
|
||||
{{ if (not $data.disableIngress) }}
|
||||
{{- $ingressDef := (dict "service" (printf "reverse-proxy-%s" $prefix) "prefix" $prefix "global" $.Values.global "namespace" $.Release.Namespace "group" "reverse-proxies" ) -}}
|
||||
{{- $ingressDef := (merge ($data.overrides | default (dict)) $ingressDef) -}}
|
||||
|
||||
{{ include "homelab.ingress" $ingressDef}}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
@@ -21,8 +21,14 @@ reverseProxy:
|
||||
icon: https://basement.home.sosnovsky.ca/static/icons/favicon.ico
|
||||
|
||||
scrypted:
|
||||
disableIngress: true
|
||||
ip: "192.168.0.200"
|
||||
port: "11080"
|
||||
|
||||
glroutermetrics:
|
||||
disableIngress: true
|
||||
ip: "192.168.8.1"
|
||||
port: "11080"
|
||||
|
||||
cloudflare:
|
||||
enabled: true
|
||||
Reference in new issue
Block a user