using an alternative stack
This commit is contained in:
parent
c237e060fd
commit
ac4d2c3fa3
@ -20,4 +20,31 @@ images:
|
||||
newTag: latest
|
||||
- name: radarr
|
||||
newName: lscr.io/linuxserver/radarr
|
||||
newTag: 5.4.6
|
||||
newTag: 5.4.6
|
||||
|
||||
|
||||
---
|
||||
# 2nd version
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: media-downloads
|
||||
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- pvc.yaml
|
||||
- qbittorrent.deployment.yaml
|
||||
- qbittorrent.service.yaml
|
||||
- qbittorrent.configmap.yaml
|
||||
- radarr.deployment.yaml
|
||||
- radarr.service.yaml
|
||||
- radarr.configmap.yaml
|
||||
- openvpn.secret.yaml
|
||||
|
||||
images:
|
||||
- name: qbittorrent
|
||||
newName: binhex/arch-qbittorrentvpn
|
||||
newTag: 5.0.1-1-02
|
||||
- name: radarr
|
||||
newName: hotio/radarr
|
||||
newTag: release-5.14.0.9383
|
||||
|
@ -2,3 +2,5 @@ apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: placeholder
|
||||
labels:
|
||||
pod-security.kubernetes.io/enforce: privileged
|
||||
|
@ -1,42 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: media-downloads
|
||||
spec:
|
||||
capacity:
|
||||
storage: "1Ti"
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
path: /export/jellyfin-media/downloads
|
||||
server: 192.168.1.157
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: media-downloads
|
||||
spec:
|
||||
storageClassName: ""
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: "1Ti"
|
||||
volumeName: media-downloads
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: jackett-config
|
||||
spec:
|
||||
storageClassName: "nfs-client"
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: "100Mi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: radarr-config
|
||||
@ -46,17 +8,28 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: "100Mi"
|
||||
storage: "1Gi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: transmission-config
|
||||
name: qbittorrent-config
|
||||
spec:
|
||||
storageClassName: "nfs-client"
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: "100Mi"
|
||||
---
|
||||
storage: "1Gi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: data
|
||||
spec:
|
||||
storageClassName: "nfs-client"
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: "10Gi"
|
||||
|
15
apps/media-downloads/qbittorrent.configmap.yaml
Normal file
15
apps/media-downloads/qbittorrent.configmap.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
labels:
|
||||
app: qbittorrent
|
||||
data:
|
||||
VPN_ENABLED: yes
|
||||
VPN_USER: vpnbook
|
||||
VPN_PASS: e83zu76
|
||||
VPN_PROV: custom
|
||||
VPN_CLIENT: openvpn
|
||||
LAN_NETWORK: 10.244.0.0/24,10.9.0.0/24
|
||||
WEBUI_PORT: "8080"
|
||||
ENABLE_STARTUP_SCRIPTS: no
|
40
apps/media-downloads/qbittorrent.deployment.yaml
Normal file
40
apps/media-downloads/qbittorrent.deployment.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: qbittorrent
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: qbittorrent
|
||||
spec:
|
||||
containers:
|
||||
- name: qbittorrent
|
||||
image: qbittorrent
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: qbittorrent
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
- name: config
|
||||
mountPath: /config
|
||||
|
||||
securityContext:
|
||||
capabilities:
|
||||
add:
|
||||
- NET_ADMIN
|
||||
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: qbittorrent-config
|
12
apps/media-downloads/qbittorrent.service.yaml
Normal file
12
apps/media-downloads/qbittorrent.service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
spec:
|
||||
selector:
|
||||
app: qbittorrent
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: qbittorrent
|
||||
port: 8080
|
||||
targetPort: 8080
|
20
apps/media-downloads/radarr.configmap.yaml
Normal file
20
apps/media-downloads/radarr.configmap.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: radarr
|
||||
labels:
|
||||
app: radarr
|
||||
data:
|
||||
# VPN_ENABLED: "true"
|
||||
# VPN_CONF: "wg0"
|
||||
# VPN_PROVIDER: "generic"
|
||||
# VPN_LAN_NETWORK: "192.168.1.0/24"
|
||||
# VPN_LAN_LEAK_ENABLED: "false"
|
||||
# VPN_EXPOSE_PORTS_ON_LAN: ""
|
||||
# VPN_AUTO_PORT_FORWARD: "false"
|
||||
# VPN_AUTO_PORT_FORWARD_TO_PORTS: ""
|
||||
# VPN_KEEP_LOCAL_DNS: "false"
|
||||
# VPN_FIREWALL_TYPE: "auto"
|
||||
# VPN_HEALTHCHECK_ENABLED: "false"
|
||||
# PRIVOXY_ENABLED: "false"
|
||||
# UNBOUND_ENABLED: "false"
|
@ -6,6 +6,7 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: radarr
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
@ -14,34 +15,20 @@ spec:
|
||||
containers:
|
||||
- name: radarr
|
||||
image: radarr
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 7878
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: radarr
|
||||
volumeMounts:
|
||||
- name: media
|
||||
mountPath: /media
|
||||
- name: data
|
||||
mountPath: /data
|
||||
- name: config
|
||||
mountPath: /config
|
||||
volumes:
|
||||
- name: media
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: media-downloads
|
||||
claimName: data
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: transmission-config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: radarr
|
||||
spec:
|
||||
selector:
|
||||
app: radarr
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 7878
|
||||
targetPort: 7878
|
||||
type: ClusterIP
|
||||
claimName: radarr-config
|
||||
|
12
apps/media-downloads/radarr.service.yaml
Normal file
12
apps/media-downloads/radarr.service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: radarr
|
||||
spec:
|
||||
selector:
|
||||
app: radarr
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: radarr
|
||||
port: 7878
|
||||
targetPort: 7878
|
Loading…
x
Reference in New Issue
Block a user