Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s
85 lines
2.1 KiB
YAML
85 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lidarr
|
|
namespace: htpc
|
|
labels:
|
|
app.kubernetes.io/name: lidarr
|
|
app.kubernetes.io/part-of: htpc
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: lidarr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: lidarr
|
|
app.kubernetes.io/name: lidarr
|
|
app.kubernetes.io/part-of: htpc
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: vmserver
|
|
containers:
|
|
- name: lidarr
|
|
image: lscr.io/linuxserver/lidarr:latest
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: PUID
|
|
value: "33"
|
|
- name: PGID
|
|
value: "33"
|
|
- name: TZ
|
|
value: "Europe/Amsterdam"
|
|
- name: UMASK
|
|
value: "0002"
|
|
envFrom:
|
|
- secretRef:
|
|
name: lidarr-secret
|
|
ports:
|
|
- name: http
|
|
containerPort: 8686
|
|
hostPort: 8686
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 2Gi
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: datadisk
|
|
mountPath: /datadisk
|
|
- name: mnt-mp3
|
|
mountPath: /mnt/mp3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /lidarr/ping
|
|
port: 8686
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 20
|
|
timeoutSeconds: 5
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /lidarr/ping
|
|
port: 8686
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: lidarr-config
|
|
- name: datadisk
|
|
hostPath:
|
|
path: /datadisk
|
|
type: Directory
|
|
- name: mnt-mp3
|
|
hostPath:
|
|
path: /mnt/mp3
|
|
type: Directory
|