From f07589ce4a0e6be17b5fe2f6a1e57650a5af9971 Mon Sep 17 00:00:00 2001 From: bvanroll Date: Sat, 7 Jun 2025 11:02:50 +0200 Subject: [PATCH] snip --- ingress.yaml | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++ yaml.snippets | 19 +++++++ 2 files changed, 156 insertions(+) create mode 100644 ingress.yaml diff --git a/ingress.yaml b/ingress.yaml new file mode 100644 index 0000000..9236fec --- /dev/null +++ b/ingress.yaml @@ -0,0 +1,137 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: main-ingress +spec: + rules: + - host: "truenas.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-truenas + port: + number: 443 + - host: "mylar3.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-mylar3 + port: + number: 80 + - host: "readarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-readarr + port: + number: 80 + - host: "tdarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-tdarr + port: + number: 80 + - host: "slskd.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-slskd + port: + number: 80 + - host: "bazarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-bazarr + port: + number: 80 + - host: "prowlarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-prowlarr + port: + number: 80 + - host: "radarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-radarr + port: + number: 80 + - host: "lidarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-lidarr + port: + number: 80 + - host: "qbittorrent.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-qbittorrent + port: + number: 80 + - host: "plex.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-plex + port: + number: 80 + - host: "sonarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-sonarr + port: + number: 80 + - host: "flaresolverr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-flaresolverr + port: + number: 80 diff --git a/yaml.snippets b/yaml.snippets index 6b7eba2..65df766 100644 --- a/yaml.snippets +++ b/yaml.snippets @@ -10,3 +10,22 @@ spec: - name: _name image: _image endsnippet + +snippet tpl_ing "ingress template" b +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: _name +spec: + rules: + - host: "_hostname" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: _service + port: + number: _port +endsnippet