--- apiVersion: apps/v1 kind: Deployment metadata: name: lidarr namespace: media labels: app: lidarr app.kubernetes.io/name: lidarr app.kubernetes.io/component: music-management spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: lidarr template: metadata: labels: app: lidarr spec: containers: - name: lidarr image: lscr.io/linuxserver/lidarr:latest ports: - name: http containerPort: 8686 protocol: TCP envFrom: - configMapRef: name: media-config volumeMounts: - name: config mountPath: /config subPath: lidarr - name: downloads mountPath: /downloads - name: media mountPath: /media resources: requests: memory: "256Mi" cpu: "100m" limits: memory: "1Gi" cpu: "1000m" livenessProbe: httpGet: path: /ping port: http initialDelaySeconds: 30 periodSeconds: 30 timeoutSeconds: 10 readinessProbe: httpGet: path: /ping port: http initialDelaySeconds: 15 periodSeconds: 10 timeoutSeconds: 5 volumes: - name: config persistentVolumeClaim: claimName: media-config - name: downloads persistentVolumeClaim: claimName: media-downloads - name: media persistentVolumeClaim: claimName: media-library --- apiVersion: v1 kind: Service metadata: name: lidarr namespace: media labels: app: lidarr spec: type: NodePort selector: app: lidarr ports: - name: http port: 8686 targetPort: 8686 nodePort: 30686 protocol: TCP