chore: Use StatefulSet for deployment with PVCs
This commit is contained in:
parent
ae1414eddf
commit
b845de559c
5 changed files with 35 additions and 30 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: plex
|
name: plex
|
||||||
labels:
|
labels:
|
||||||
app: plex
|
app: plex
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
serviceName: plex
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: plex
|
app: plex
|
||||||
|
|
@ -15,13 +16,6 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: plex
|
app: plex
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
|
||||||
- name: plex-config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: plex-storage
|
|
||||||
- name: nfs-media
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: nfs-media
|
|
||||||
containers:
|
containers:
|
||||||
- name: plex
|
- name: plex
|
||||||
image: plexinc/pms-docker
|
image: plexinc/pms-docker
|
||||||
|
|
@ -47,3 +41,10 @@ spec:
|
||||||
- "CHOWN"
|
- "CHOWN"
|
||||||
- "SETUID"
|
- "SETUID"
|
||||||
- "SETGID"
|
- "SETGID"
|
||||||
|
volumes:
|
||||||
|
- name: plex-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: plex-storage
|
||||||
|
- name: nfs-media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nfs-media
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: prowlarr
|
name: prowlarr
|
||||||
labels:
|
labels:
|
||||||
app: prowlarr
|
app: prowlarr
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
serviceName: prowlarr
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: prowlarr
|
app: prowlarr
|
||||||
|
|
@ -15,10 +16,6 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: prowlarr
|
app: prowlarr
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
|
||||||
- name: prowlarr-config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: prowlarr-storage
|
|
||||||
containers:
|
containers:
|
||||||
- name: flaresolverr
|
- name: flaresolverr
|
||||||
image: flaresolverr/flaresolverr
|
image: flaresolverr/flaresolverr
|
||||||
|
|
@ -57,3 +54,7 @@ spec:
|
||||||
- "CHOWN"
|
- "CHOWN"
|
||||||
- "SETUID"
|
- "SETUID"
|
||||||
- "SETGID"
|
- "SETGID"
|
||||||
|
volumes:
|
||||||
|
- name: prowlarr-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: prowlarr-storage
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: qbittorrent
|
name: qbittorrent
|
||||||
namespace: qbittorrent
|
namespace: qbittorrent
|
||||||
|
|
@ -8,6 +8,7 @@ metadata:
|
||||||
app: qbittorrent
|
app: qbittorrent
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
serviceName: qbittorrent
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: qbittorrent
|
app: qbittorrent
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: radarr
|
name: radarr
|
||||||
labels:
|
labels:
|
||||||
app: radarr
|
app: radarr
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
serviceName: radarr
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: radarr
|
app: radarr
|
||||||
|
|
@ -15,13 +16,6 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: radarr
|
app: radarr
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
|
||||||
- name: radarr-config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: radarr-storage
|
|
||||||
- name: nfs-media
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: nfs-media
|
|
||||||
containers:
|
containers:
|
||||||
- name: radarr
|
- name: radarr
|
||||||
image: linuxserver/radarr
|
image: linuxserver/radarr
|
||||||
|
|
@ -47,3 +41,10 @@ spec:
|
||||||
- "CHOWN"
|
- "CHOWN"
|
||||||
- "SETUID"
|
- "SETUID"
|
||||||
- "SETGID"
|
- "SETGID"
|
||||||
|
volumes:
|
||||||
|
- name: radarr-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: radarr-storage
|
||||||
|
- name: nfs-media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nfs-media
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
labels:
|
labels:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
serviceName: sonarr
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
|
|
@ -15,13 +16,6 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
|
||||||
- name: sonarr-config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: sonarr-storage
|
|
||||||
- name: nfs-media
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: nfs-media
|
|
||||||
containers:
|
containers:
|
||||||
- name: sonarr
|
- name: sonarr
|
||||||
image: linuxserver/sonarr
|
image: linuxserver/sonarr
|
||||||
|
|
@ -47,3 +41,10 @@ spec:
|
||||||
- "CHOWN"
|
- "CHOWN"
|
||||||
- "SETUID"
|
- "SETUID"
|
||||||
- "SETGID"
|
- "SETGID"
|
||||||
|
volumes:
|
||||||
|
- name: sonarr-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: sonarr-storage
|
||||||
|
- name: nfs-media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nfs-media
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue