switched to deployments for easier restarts also moved pvc's after
accidntally deleting them :(
This commit is contained in:
44
k8s_manifests/radarr/deployment.yaml
Normal file
44
k8s_manifests/radarr/deployment.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: radarr
|
||||
labels:
|
||||
app.kubernetes.io/name: radarr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: radarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: radarr
|
||||
spec:
|
||||
volumes:
|
||||
- name: nfs-vol
|
||||
nfs:
|
||||
server: 192.168.0.114
|
||||
path: /mnt/test1/media/
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: config-radarr
|
||||
containers:
|
||||
- name: radarr
|
||||
image: ghcr.io/hotio/radarr:latest
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: UMASK
|
||||
value: "002"
|
||||
- name: TZ
|
||||
value: "Etc/UTC"
|
||||
ports:
|
||||
- containerPort: 7878
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: nfs-vol
|
||||
mountPath: /media
|
||||
|
@@ -1,35 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: radarr
|
||||
labels:
|
||||
app.kubernetes.io/name: radarr
|
||||
spec:
|
||||
volumes:
|
||||
- name: nfs-vol
|
||||
nfs:
|
||||
server: 192.168.0.114
|
||||
path: /mnt/test1/media/
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: config-radarr
|
||||
containers:
|
||||
- name: radarr
|
||||
image: ghcr.io/hotio/radarr:latest
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: UMASK
|
||||
value: "002"
|
||||
- name: TZ
|
||||
value: "Etc/UTC"
|
||||
ports:
|
||||
- containerPort: 7878
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: nfs-vol
|
||||
mountPath: /media
|
||||
|
@@ -1,9 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: config-radarr
|
||||
spec:
|
||||
accessModes: [ReadWriteOnce]
|
||||
resources: { requests: { storage: 1Gi } }
|
||||
|
Reference in New Issue
Block a user