Working services using NodePorts and still no ingress
This commit is contained in:
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
+30
-21
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -14,7 +14,6 @@ resources:
|
||||
- bazarr.yaml
|
||||
- transmission.yaml
|
||||
- emby.yaml
|
||||
- plex.yml
|
||||
- prowlarr.yml
|
||||
- ingress.yaml
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
---
|
||||
|
||||
+6
-1
@@ -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"]
|
||||
|
||||
+6
-1
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
+7
-20
@@ -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
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user