diff --git a/apps/plex/env/k3s-cluster/ingress.yaml b/apps/plex/env/k3s-cluster/ingress.yaml deleted file mode 100644 index 03f2bd9..0000000 --- a/apps/plex/env/k3s-cluster/ingress.yaml +++ /dev/null @@ -1,31 +0,0 @@ -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 - - host: "plex.cluster.local" - 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 3ea3085..a227ac4 100644 --- a/apps/plex/env/k3s-cluster/kustomization.yaml +++ b/apps/plex/env/k3s-cluster/kustomization.yaml @@ -1,5 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ../../base - - ./ingress.yaml \ No newline at end of file + - ../../base \ No newline at end of file diff --git a/resources/ingress-nginx-configmap/base/configmap.yaml b/resources/ingress-nginx-configmap/base/configmap.yaml index ee8cdf0..7a3bf05 100644 --- a/resources/ingress-nginx-configmap/base/configmap.yaml +++ b/resources/ingress-nginx-configmap/base/configmap.yaml @@ -9,6 +9,7 @@ data: "1888": "rlpa/rlpa-server:1888" "5443": "adguard-home/adguard-home:5443" "6060": "adguard-home/adguard-home:6060" + "32400": "plex/plex-media-server:32400" --- apiVersion: v1 kind: ConfigMap diff --git a/scripts/ingress-nginx/plex.yaml b/scripts/ingress-nginx/plex.yaml new file mode 100644 index 0000000..13e37dd --- /dev/null +++ b/scripts/ingress-nginx/plex.yaml @@ -0,0 +1,6 @@ +spec: + ports: + - name: pms + port: 32400 + targetPort: 32400 + protocol: TCP \ No newline at end of file