diff --git a/base/bazarr.yaml b/base/bazarr.yaml index ae5a363..22e273d 100644 --- a/base/bazarr.yaml +++ b/base/bazarr.yaml @@ -3,11 +3,13 @@ kind: Service metadata: name: bazarr spec: + type: NodePort ports: - port: 6767 protocol: TCP targetPort: 6767 name: webui + nodePort: 30003 selector: run: bazarr --- diff --git a/base/emby.yaml b/base/emby.yaml index 6e1e9f6..7fb1546 100644 --- a/base/emby.yaml +++ b/base/emby.yaml @@ -3,11 +3,13 @@ kind: Service metadata: name: emby spec: + type: NodePort ports: - port: 8096 protocol: TCP targetPort: 8096 name: webui + nodePort: 30002 selector: run: emby --- diff --git a/base/ingress.yaml b/base/ingress.yaml index a936200..bbc3916 100644 --- a/base/ingress.yaml +++ b/base/ingress.yaml @@ -1,64 +1,73 @@ +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: htpc + annotations: + kubernetes.io/ingress.class: traefik + ingress.kubernetes.io/protocol: http + ingress.kubernetes.io/ssl-redirect: false spec: + ingressClassName: traefik rules: - http: paths: - path: / - pathType: Exact + pathType: Prefix backend: service: name: emby port: - number: 8096 + name: webui - path: /jackett - pathType: Exact + pathType: Prefix backend: service: name: jackett port: - number: 9117 + name: webui - path: /sonarr - pathType: Exact + pathType: Prefix backend: service: name: sonarr port: - number: 8989 + name: webui - path: /radarr - pathType: Exact + pathType: Prefix backend: service: name: radarr port: - number: 7878 + name: webui - path: /bazarr - pathType: Exact + pathType: Prefix backend: service: name: bazarr port: - number: 6767 + name: webui - path: /transmission - pathType: Exact + pathType: Prefix backend: service: name: transmission port: - number: 9091 - - path: /plex - pathType: Exact - backend: - service: - name: plex - port: - number: 32400 + name: webui - path: /prowlarr - pathType: Exact + pathType: Prefix backend: service: name: prowlarr port: - number: 9696 + name: webui +--- +apiVersion: networking.k8s.io/v1 +kind: IngressClass +metadata: + name: traefik + annotations: + ingressclass.kubernetes.io/is-default-class: "true" +spec: + controller: traefik.io/ingress-controller +--- diff --git a/base/jackett.yaml b/base/jackett.yaml index 5b61d00..88ee23b 100644 --- a/base/jackett.yaml +++ b/base/jackett.yaml @@ -3,11 +3,13 @@ kind: Service metadata: name: jackett spec: + type: NodePort ports: - port: 9117 protocol: TCP targetPort: 9117 name: webui + nodePort: 30004 selector: run: jackett --- diff --git a/base/kustomization.yaml b/base/kustomization.yaml index 10fb1d9..d91b72c 100644 --- a/base/kustomization.yaml +++ b/base/kustomization.yaml @@ -14,7 +14,6 @@ resources: - bazarr.yaml - transmission.yaml - emby.yaml -- plex.yml - prowlarr.yml - ingress.yaml diff --git a/base/plex.yml b/base/plex.yml deleted file mode 100644 index 960308a..0000000 --- a/base/plex.yml +++ /dev/null @@ -1,56 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: plex -spec: - ports: - - port: 32400 - protocol: TCP - targetPort: 32400 - name: webui - selector: - run: plex ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - run: plex - name: plex -spec: - replicas: 1 - selector: - matchLabels: - run: plex - template: - metadata: - labels: - run: plex - spec: - securityContext: - fsGroup: 1000 - containers: - - env: - - name: PUID - value: "1000" - - name: PGID - value: "1000" - image: linuxserver/plex - name: plex - ports: - - containerPort: 32400 - name: webui - protocol: TCP - - containerPort: 32400 - name: webui-ssl - protocol: TCP - volumeMounts: - - mountPath: /config - name: htpc-home - subPath: plex - - mountPath: /tv - name: htpc-home - subPath: media/tv - - mountPath: /movies - name: htpc-home - subPath: media/movies diff --git a/base/prowlarr.yml b/base/prowlarr.yml index 75942f4..172c3d0 100644 --- a/base/prowlarr.yml +++ b/base/prowlarr.yml @@ -3,11 +3,13 @@ kind: Service metadata: name: prowlarr spec: + type: NodePort ports: - port: 9696 protocol: TCP targetPort: 9696 name: webui + nodePort: 30005 selector: run: prowlarr --- diff --git a/base/radarr.yaml b/base/radarr.yaml index e67906d..d42fbd8 100644 --- a/base/radarr.yaml +++ b/base/radarr.yaml @@ -3,11 +3,13 @@ kind: Service metadata: name: radarr spec: + type: NodePort ports: - port: 7878 protocol: TCP targetPort: 7878 name: webui + nodePort: 30006 selector: run: radarr --- @@ -34,7 +36,7 @@ spec: initContainers: - name: chown image: busybox - command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /movies"] + command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /movies && chown -R 1000:1000 /downloads"] volumeMounts: - mountPath: /config name: htpc-home @@ -42,6 +44,9 @@ spec: - mountPath: /movies name: htpc-home subPath: media/movies + - mountPath: /downloads + name: htpc-home + subPath: downloads - name: config image: busybox command: ["sh", "-c"] diff --git a/base/sonarr.yaml b/base/sonarr.yaml index 585337f..74d9152 100644 --- a/base/sonarr.yaml +++ b/base/sonarr.yaml @@ -3,11 +3,13 @@ kind: Service metadata: name: sonarr spec: + type: NodePort ports: - port: 8989 protocol: TCP targetPort: 8989 name: webui + nodePort: 30001 selector: run: sonarr --- @@ -34,7 +36,7 @@ spec: initContainers: - name: chown image: busybox - command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /tv"] + command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /tv && chown -R 1000:1000 /downloads"] volumeMounts: - mountPath: /config name: htpc-home @@ -42,6 +44,9 @@ spec: - mountPath: /tv name: htpc-home subPath: media/tv + - mountPath: /downloads + name: htpc-home + subPath: downloads - name: config image: busybox command: ["sh", "-c"] diff --git a/base/transmission.yaml b/base/transmission.yaml index d4fffa4..1fa3c61 100644 --- a/base/transmission.yaml +++ b/base/transmission.yaml @@ -3,11 +3,13 @@ kind: Service metadata: name: transmission spec: + type: NodePort ports: - port: 9091 protocol: TCP targetPort: 9091 name: webui + nodePort: 30007 selector: run: transmission --- @@ -34,7 +36,7 @@ spec: initContainers: - name: chown image: busybox - command: ["sh", "-c", "chown -R 1000:1000 /config"] + command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /downloads"] volumeMounts: - mountPath: /config name: htpc-home diff --git a/base/volumes_patch.yaml b/base/volumes_patch.yaml index 5b05b39..ab76f1d 100644 --- a/base/volumes_patch.yaml +++ b/base/volumes_patch.yaml @@ -7,7 +7,7 @@ spec: spec: volumes: - hostPath: - path: /opt/htpc + path: /nfs/htpc type: DirectoryOrCreate name: htpc-home --- @@ -20,7 +20,7 @@ spec: spec: volumes: - hostPath: - path: /opt/htpc + path: /nfs/htpc type: DirectoryOrCreate name: htpc-home --- @@ -33,7 +33,7 @@ spec: spec: volumes: - hostPath: - path: /opt/htpc + path: /nfs/htpc type: DirectoryOrCreate name: htpc-home --- @@ -46,7 +46,7 @@ spec: spec: volumes: - hostPath: - path: /opt/htpc + path: /nfs/htpc type: DirectoryOrCreate name: htpc-home --- @@ -59,7 +59,7 @@ spec: spec: volumes: - hostPath: - path: /opt/htpc + path: /nfs/htpc type: DirectoryOrCreate name: htpc-home --- @@ -72,7 +72,7 @@ spec: spec: volumes: - hostPath: - path: /opt/htpc + path: /nfs/htpc type: DirectoryOrCreate name: htpc-home # persistentVolumeClaim: @@ -80,19 +80,6 @@ spec: --- apiVersion: apps/v1 kind: Deployment -metadata: - name: plex -spec: - template: - spec: - volumes: - - hostPath: - path: /opt/htpc - type: DirectoryOrCreate - name: htpc-home ---- -apiVersion: apps/v1 -kind: Deployment metadata: name: prowlarr spec: @@ -100,7 +87,7 @@ spec: spec: volumes: - hostPath: - path: /opt/htpc + path: /nfs/htpc type: DirectoryOrCreate name: htpc-home --- diff --git a/overlays/armhf/.kustomization.yaml.swp b/overlays/armhf/.kustomization.yaml.swp deleted file mode 100644 index 7732a1e..0000000 Binary files a/overlays/armhf/.kustomization.yaml.swp and /dev/null differ diff --git a/overlays/armhf/kustomization.yaml b/overlays/armhf/kustomization.yaml index 59052cb..1de50e3 100644 --- a/overlays/armhf/kustomization.yaml +++ b/overlays/armhf/kustomization.yaml @@ -18,7 +18,5 @@ images: - name: emby/embyserver newName: emby/embyserver_arm32v7 newTag: latest - - name: linuxserver/plex - newTag: arm32v7-latest - name: linuxserver/prowlarr newTag: arm32v7-nightly