kubernetes/k8s-wheatley/sonarr/deployments.yaml

50 lines
1.1 KiB
YAML

---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: sonarr
labels:
app: sonarr
spec:
replicas: 1
serviceName: sonarr
selector:
matchLabels:
app: sonarr
template:
metadata:
labels:
app: sonarr
spec:
containers:
- name: sonarr
image: linuxserver/sonarr
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8989
envFrom:
- configMapRef:
name: sonarr-envs
volumeMounts:
- mountPath: /config
name: sonarr-config
- mountPath: /shared/media
name: nfs-media
securityContext:
seccompProfile:
type: RuntimeDefault
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
add:
- "CHOWN"
- "SETUID"
- "SETGID"
volumes:
- name: sonarr-config
persistentVolumeClaim:
claimName: sonarr-storage
- name: nfs-media
persistentVolumeClaim:
claimName: nfs-media