mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-05-14 08:35:22 +00:00
80 lines
1.9 KiB
YAML
80 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lidarr
|
|
namespace: stack-arr
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: lidarr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: lidarr
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: lidarr
|
|
image: ghcr.io/hotio/lidarr:release-563b232
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- containerPort: 8686
|
|
name: webui
|
|
env:
|
|
- name: PUID
|
|
value: "1013"
|
|
- name: PGID
|
|
value: "1013"
|
|
- name: TZ
|
|
value: 'Etc/UTC'
|
|
- name: LIDARR__POSTGRES__HOST
|
|
value: 'stolon-proxy-service.postgresql.svc.cluster.local'
|
|
- name: LIDARR__POSTGRES__PORT
|
|
value: '5432'
|
|
- name: LIDARR__POSTGRES__USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: lidarr-secret
|
|
key: username
|
|
- name: LIDARR__POSTGRES__PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: lidarr-secret
|
|
key: password
|
|
- name: LIDARR__POSTGRES__MAINDB
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: lidarr-secret
|
|
key: maindb
|
|
- name: LIDARR__POSTGRES__LOGDB
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: lidarr-secret
|
|
key: logsdb
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: downloads
|
|
mountPath: /downloads
|
|
- name: music
|
|
mountPath: /data
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: lidarr-config-pvc
|
|
- name: downloads
|
|
persistentVolumeClaim:
|
|
claimName: qbittorrent-downloads-pvc
|
|
- name: music
|
|
persistentVolumeClaim:
|
|
claimName: lidarr-music-pvc
|
|
|
|
|
|
|
|
|