From f0018750a5aaea31dab89f400b4d0eee8b136a88 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Sat, 31 May 2025 03:14:18 +0530 Subject: [PATCH] use LB instead of nodePort --- cluster/apps/authelia/authelia-svc.yml | 3 +-- cluster/apps/bazarr/bazarr-svc.yml | 3 +-- cluster/apps/code-server/code-server-svc.yml | 4 +--- cluster/apps/ersatztv/ersatztv-svc.yml | 4 +--- cluster/apps/flaresolverr/flaresolverr-svc.yml | 5 +---- cluster/apps/ghostfolio/ghostfolio-svc.yml | 5 ++--- cluster/apps/gitea/gitea-svc.yml | 10 ++++------ cluster/apps/gluetun/gluetun-svc.yml | 11 ++++------- cluster/apps/homepage/homepage-svc.yml | 6 ++---- cluster/apps/immich/immich-svc.yml | 10 +++------- cluster/apps/invidious/invidious-svc.yml | 7 +++---- cluster/apps/jellyfin/jellyfin-svc.yml | 4 +--- cluster/apps/jellyseerr/jellyseerr-svc.yml | 3 +-- cluster/apps/jellystat/jellystat-svc.yml | 5 ++--- cluster/apps/nextcloud/nextcloud-svc.yml | 8 +++----- cluster/apps/open-webui/open-webui-svc.yml | 6 ++---- cluster/apps/paperless-ngx/paperless-ngx-svc.yml | 6 ++---- cluster/apps/prowlarr/prowlarr-svc.yml | 5 +---- cluster/apps/qbittorrent/qbittorrent-svc.yml | 5 +---- cluster/apps/radarr/radarr-svc.yml | 5 +---- cluster/apps/searxng/searxng-svc.yml | 7 ++----- cluster/apps/semaphore/semaphore-svc.yml | 6 ++---- cluster/apps/sonarr/sonarr-svc.yml | 5 +---- cluster/apps/speedtest/speedtest-svc.yml | 5 ++--- cluster/apps/vaultwarden/vaultwarden-svc.yml | 7 ++----- 25 files changed, 46 insertions(+), 99 deletions(-) diff --git a/cluster/apps/authelia/authelia-svc.yml b/cluster/apps/authelia/authelia-svc.yml index b9e1d55..6519143 100644 --- a/cluster/apps/authelia/authelia-svc.yml +++ b/cluster/apps/authelia/authelia-svc.yml @@ -5,11 +5,10 @@ metadata: name: authelia-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: authelia ports: - port: 9091 targetPort: 9091 - nodePort: 9091 protocol: TCP diff --git a/cluster/apps/bazarr/bazarr-svc.yml b/cluster/apps/bazarr/bazarr-svc.yml index 971906e..2ec5890 100644 --- a/cluster/apps/bazarr/bazarr-svc.yml +++ b/cluster/apps/bazarr/bazarr-svc.yml @@ -5,11 +5,10 @@ metadata: name: bazarr-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: bazarr ports: - protocol: TCP port: 6767 targetPort: 6767 - nodePort: 6767 diff --git a/cluster/apps/code-server/code-server-svc.yml b/cluster/apps/code-server/code-server-svc.yml index 7f39d02..7e6ee6b 100644 --- a/cluster/apps/code-server/code-server-svc.yml +++ b/cluster/apps/code-server/code-server-svc.yml @@ -7,10 +7,8 @@ metadata: spec: selector: app: code-server - type: NodePort + type: LoadBalancer ports: - port: 8443 targetPort: 8443 - nodePort: 8443 protocol: TCP - diff --git a/cluster/apps/ersatztv/ersatztv-svc.yml b/cluster/apps/ersatztv/ersatztv-svc.yml index fa24695..7afcbce 100644 --- a/cluster/apps/ersatztv/ersatztv-svc.yml +++ b/cluster/apps/ersatztv/ersatztv-svc.yml @@ -5,12 +5,10 @@ metadata: name: ersatztv-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: ersatztv ports: - port: 8409 targetPort: 8409 - nodePort: 8409 protocol: TCP - diff --git a/cluster/apps/flaresolverr/flaresolverr-svc.yml b/cluster/apps/flaresolverr/flaresolverr-svc.yml index 2b1c16b..c8149e3 100644 --- a/cluster/apps/flaresolverr/flaresolverr-svc.yml +++ b/cluster/apps/flaresolverr/flaresolverr-svc.yml @@ -7,10 +7,7 @@ metadata: spec: selector: app: flaresolverr - type: NodePort + type: LoadBalancer ports: - port: 8191 targetPort: 8191 - nodePort: 8191 - protocol: TCP - diff --git a/cluster/apps/ghostfolio/ghostfolio-svc.yml b/cluster/apps/ghostfolio/ghostfolio-svc.yml index d56eff2..aba09fe 100644 --- a/cluster/apps/ghostfolio/ghostfolio-svc.yml +++ b/cluster/apps/ghostfolio/ghostfolio-svc.yml @@ -5,11 +5,10 @@ metadata: name: ghostfolio-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: ghostfolio ports: - - port: 3333 + - port: 3232 targetPort: 3333 - nodePort: 3232 protocol: TCP diff --git a/cluster/apps/gitea/gitea-svc.yml b/cluster/apps/gitea/gitea-svc.yml index 6876901..58cfdb5 100644 --- a/cluster/apps/gitea/gitea-svc.yml +++ b/cluster/apps/gitea/gitea-svc.yml @@ -5,13 +5,12 @@ metadata: name: gitea-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: gitea-app ports: - - port: 3000 + - port: 3011 targetPort: 3000 - nodePort: 3011 protocol: TCP --- @@ -21,13 +20,12 @@ metadata: name: gitea-ssh-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: gitea-app ports: - - port: 22 + - port: 222 targetPort: 22 - nodePort: 222 --- apiVersion: v1 diff --git a/cluster/apps/gluetun/gluetun-svc.yml b/cluster/apps/gluetun/gluetun-svc.yml index e2396e1..e6ad5a7 100644 --- a/cluster/apps/gluetun/gluetun-svc.yml +++ b/cluster/apps/gluetun/gluetun-svc.yml @@ -5,14 +5,12 @@ metadata: name: gluetun-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: gluetun ports: - - port: 8888 + - port: 8388 targetPort: 8888 - nodePort: 8388 - protocol: TCP --- apiVersion: v1 @@ -21,11 +19,10 @@ metadata: name: gluetun-p2p-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: gluetun ports: - - port: 6881 + - port: 30881 targetPort: 6881 - nodePort: 30881 protocol: TCP diff --git a/cluster/apps/homepage/homepage-svc.yml b/cluster/apps/homepage/homepage-svc.yml index a34a9a1..9f44df1 100644 --- a/cluster/apps/homepage/homepage-svc.yml +++ b/cluster/apps/homepage/homepage-svc.yml @@ -5,11 +5,9 @@ metadata: name: homepage-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app.kubernetes.io/name: homepage ports: - - port: 3000 + - port: 30001 targetPort: 3000 - nodePort: 30001 - protocol: TCP diff --git a/cluster/apps/immich/immich-svc.yml b/cluster/apps/immich/immich-svc.yml index c04024d..ffd293f 100644 --- a/cluster/apps/immich/immich-svc.yml +++ b/cluster/apps/immich/immich-svc.yml @@ -5,14 +5,12 @@ metadata: name: immich-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: immich-app ports: - port: 2283 targetPort: 2283 - nodePort: 2283 - protocol: TCP --- apiVersion: v1 @@ -21,14 +19,12 @@ metadata: name: immich-machine-learning-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: immich-app ports: - - port: 3003 + - port: 3333 targetPort: 3003 - nodePort: 3333 - protocol: TCP --- apiVersion: v1 diff --git a/cluster/apps/invidious/invidious-svc.yml b/cluster/apps/invidious/invidious-svc.yml index c8c62af..8e3a118 100644 --- a/cluster/apps/invidious/invidious-svc.yml +++ b/cluster/apps/invidious/invidious-svc.yml @@ -5,11 +5,10 @@ metadata: name: invidious-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: invidious ports: - - port: 3000 + - port: 3111 targetPort: 3000 - nodePort: 3111 - protocol: TCP \ No newline at end of file + protocol: TCP diff --git a/cluster/apps/jellyfin/jellyfin-svc.yml b/cluster/apps/jellyfin/jellyfin-svc.yml index 66b996d..2bc7656 100644 --- a/cluster/apps/jellyfin/jellyfin-svc.yml +++ b/cluster/apps/jellyfin/jellyfin-svc.yml @@ -5,12 +5,10 @@ metadata: name: jellyfin-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: jellyfin ports: - port: 8096 targetPort: 8096 - nodePort: 8096 protocol: TCP - diff --git a/cluster/apps/jellyseerr/jellyseerr-svc.yml b/cluster/apps/jellyseerr/jellyseerr-svc.yml index 3be4826..3eb1199 100644 --- a/cluster/apps/jellyseerr/jellyseerr-svc.yml +++ b/cluster/apps/jellyseerr/jellyseerr-svc.yml @@ -5,11 +5,10 @@ metadata: name: jellyseerr-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: jellyseerr ports: - port: 5055 targetPort: 5055 - nodePort: 5055 protocol: TCP diff --git a/cluster/apps/jellystat/jellystat-svc.yml b/cluster/apps/jellystat/jellystat-svc.yml index f71dab8..e192212 100644 --- a/cluster/apps/jellystat/jellystat-svc.yml +++ b/cluster/apps/jellystat/jellystat-svc.yml @@ -5,11 +5,10 @@ metadata: name: jellystat-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: jellystat ports: - - port: 3000 + - port: 3001 targetPort: 3000 - nodePort: 3001 protocol: TCP diff --git a/cluster/apps/nextcloud/nextcloud-svc.yml b/cluster/apps/nextcloud/nextcloud-svc.yml index 8bb78a0..75abdbd 100644 --- a/cluster/apps/nextcloud/nextcloud-svc.yml +++ b/cluster/apps/nextcloud/nextcloud-svc.yml @@ -5,14 +5,13 @@ metadata: name: nextcloud-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: nextcloud ports: - protocol: TCP - port: 443 + port: 9200 targetPort: 443 - nodePort: 9200 --- apiVersion: v1 @@ -21,14 +20,13 @@ metadata: name: collabora-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: collabora ports: - protocol: TCP port: 9980 targetPort: 9980 - nodePort: 9980 --- apiVersion: v1 diff --git a/cluster/apps/open-webui/open-webui-svc.yml b/cluster/apps/open-webui/open-webui-svc.yml index 6ac6b05..2624726 100644 --- a/cluster/apps/open-webui/open-webui-svc.yml +++ b/cluster/apps/open-webui/open-webui-svc.yml @@ -5,11 +5,9 @@ metadata: name: open-webui-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: open-webui ports: - - port: 8080 + - port: 4321 targetPort: 8080 - nodePort: 4321 - protocol: TCP diff --git a/cluster/apps/paperless-ngx/paperless-ngx-svc.yml b/cluster/apps/paperless-ngx/paperless-ngx-svc.yml index 3188b85..10f3125 100644 --- a/cluster/apps/paperless-ngx/paperless-ngx-svc.yml +++ b/cluster/apps/paperless-ngx/paperless-ngx-svc.yml @@ -5,11 +5,9 @@ metadata: name: paperless-ngx-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: paperless-ngx ports: - - port: 8000 + - port: 8001 targetPort: 8000 - nodePort: 8001 - protocol: TCP diff --git a/cluster/apps/prowlarr/prowlarr-svc.yml b/cluster/apps/prowlarr/prowlarr-svc.yml index 0723ffb..7c47d5f 100644 --- a/cluster/apps/prowlarr/prowlarr-svc.yml +++ b/cluster/apps/prowlarr/prowlarr-svc.yml @@ -5,12 +5,9 @@ metadata: name: prowlarr-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: prowlarr ports: - port: 9696 targetPort: 9696 - nodePort: 9696 - protocol: TCP - diff --git a/cluster/apps/qbittorrent/qbittorrent-svc.yml b/cluster/apps/qbittorrent/qbittorrent-svc.yml index 78e35bd..8ec7bab 100644 --- a/cluster/apps/qbittorrent/qbittorrent-svc.yml +++ b/cluster/apps/qbittorrent/qbittorrent-svc.yml @@ -5,12 +5,9 @@ metadata: name: qbittorrent-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: qbittorrent ports: - port: 8080 targetPort: 8080 - nodePort: 8080 - protocol: TCP - diff --git a/cluster/apps/radarr/radarr-svc.yml b/cluster/apps/radarr/radarr-svc.yml index 993f0c7..9e4b381 100644 --- a/cluster/apps/radarr/radarr-svc.yml +++ b/cluster/apps/radarr/radarr-svc.yml @@ -5,12 +5,9 @@ metadata: name: radarr-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: radarr ports: - port: 7878 targetPort: 7878 - nodePort: 7878 - protocol: TCP - diff --git a/cluster/apps/searxng/searxng-svc.yml b/cluster/apps/searxng/searxng-svc.yml index 3a1c3dc..32743df 100644 --- a/cluster/apps/searxng/searxng-svc.yml +++ b/cluster/apps/searxng/searxng-svc.yml @@ -7,10 +7,7 @@ metadata: spec: selector: app: searxng - type: NodePort + type: LoadBalancer ports: - - port: 8080 + - port: 8085 targetPort: 8080 - nodePort: 8085 - protocol: TCP - diff --git a/cluster/apps/semaphore/semaphore-svc.yml b/cluster/apps/semaphore/semaphore-svc.yml index e71bf13..edaf825 100644 --- a/cluster/apps/semaphore/semaphore-svc.yml +++ b/cluster/apps/semaphore/semaphore-svc.yml @@ -5,11 +5,9 @@ metadata: name: semaphore-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: semaphore ports: - - port: 3000 + - port: 3002 targetPort: 3000 - nodePort: 3002 - protocol: TCP diff --git a/cluster/apps/sonarr/sonarr-svc.yml b/cluster/apps/sonarr/sonarr-svc.yml index 797ecf4..20e686d 100644 --- a/cluster/apps/sonarr/sonarr-svc.yml +++ b/cluster/apps/sonarr/sonarr-svc.yml @@ -5,12 +5,9 @@ metadata: name: sonarr-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: sonarr ports: - port: 8989 targetPort: 8989 - nodePort: 8989 - protocol: TCP - diff --git a/cluster/apps/speedtest/speedtest-svc.yml b/cluster/apps/speedtest/speedtest-svc.yml index 017f9c5..241b1b4 100644 --- a/cluster/apps/speedtest/speedtest-svc.yml +++ b/cluster/apps/speedtest/speedtest-svc.yml @@ -5,12 +5,11 @@ metadata: name: speedtest-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: speedtest ports: - - port: 80 + - port: 8181 targetPort: 80 - nodePort: 8181 protocol: TCP diff --git a/cluster/apps/vaultwarden/vaultwarden-svc.yml b/cluster/apps/vaultwarden/vaultwarden-svc.yml index 8215f1c..c33327e 100644 --- a/cluster/apps/vaultwarden/vaultwarden-svc.yml +++ b/cluster/apps/vaultwarden/vaultwarden-svc.yml @@ -5,12 +5,9 @@ metadata: name: vaultwarden-service namespace: default spec: - type: NodePort + type: LoadBalancer selector: app: vaultwarden ports: - - port: 80 + - port: 8241 targetPort: 80 - nodePort: 8241 - protocol: TCP -