From e0c71f04fe6ec318a529e5b6ae92a913a0c2204b Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Thu, 25 Jul 2024 02:40:10 +1000 Subject: [PATCH] use standalone ingress for plex --- apps/plex/base/values.yaml | 4 ---- apps/plex/env/k3s-cluster/ingress.yaml | 21 ++++++++++++++++++++ apps/plex/env/k3s-cluster/kustomization.yaml | 3 ++- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 apps/plex/env/k3s-cluster/ingress.yaml diff --git a/apps/plex/base/values.yaml b/apps/plex/base/values.yaml index 60191c9..44c2301 100644 --- a/apps/plex/base/values.yaml +++ b/apps/plex/base/values.yaml @@ -1,7 +1,3 @@ -ingress: - enabled: true - ingressClassName: nginx - url: plex.cluster.edward.sydney pms: configExistingClaim: plex-config-pvc nodeSelector: diff --git a/apps/plex/env/k3s-cluster/ingress.yaml b/apps/plex/env/k3s-cluster/ingress.yaml new file mode 100644 index 0000000..d0446bd --- /dev/null +++ b/apps/plex/env/k3s-cluster/ingress.yaml @@ -0,0 +1,21 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: plex-ingress + namespace: plex + annotations: + nginx.ingress.kubernetes.io/ssl-redirect: "false" + nginx.ingress.kubernetes.io/use-regex: "true" +spec: + ingressClassName: nginx + rules: + - host: "plex.cluster.edward.sydney" + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: plex-media-server + port: + number: 32400 \ No newline at end of file diff --git a/apps/plex/env/k3s-cluster/kustomization.yaml b/apps/plex/env/k3s-cluster/kustomization.yaml index a227ac4..3ea3085 100644 --- a/apps/plex/env/k3s-cluster/kustomization.yaml +++ b/apps/plex/env/k3s-cluster/kustomization.yaml @@ -1,4 +1,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ../../base \ No newline at end of file + - ../../base + - ./ingress.yaml \ No newline at end of file