diff --git a/apps/sonarr/deployment.yaml b/apps/sonarr/deployment.yaml index 693da90..6bcf86d 100644 --- a/apps/sonarr/deployment.yaml +++ b/apps/sonarr/deployment.yaml @@ -22,28 +22,35 @@ spec: app: sonarr spec: containers: - - name: sonarr - image: lscr.io/linuxserver/sonarr:4.0.8 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 8989 - livenessProbe: - httpGet: - path: /ping - port: 8989 - initialDelaySeconds: 5 - timeoutSeconds: 5 - readinessProbe: - httpGet: - path: /ping - port: 8989 - initialDelaySeconds: 5 - timeoutSeconds: 5 - resources: - limits: - cpu: 1000m - memory: 2Gi - requests: - cpu: 10m - memory: 64Mi \ No newline at end of file + - name: sonarr + image: lscr.io/linuxserver/sonarr:4.0.8 + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 8989 + livenessProbe: + httpGet: + path: /ping + port: 8989 + initialDelaySeconds: 5 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /ping + port: 8989 + initialDelaySeconds: 5 + timeoutSeconds: 5 + resources: + limits: + cpu: 1000m + memory: 2Gi + requests: + cpu: 10m + memory: 64Mi + volumeMounts: + - name: static-config + mountPath: /config + volumes: + - name: static-config + configMap: + name: static-config \ No newline at end of file diff --git a/apps/sonarr/files/config.xml b/apps/sonarr/files/config.xml new file mode 100644 index 0000000..eff123b --- /dev/null +++ b/apps/sonarr/files/config.xml @@ -0,0 +1,17 @@ + + Info + 8989 + / + * + 9898 + False + 82138601e4f44e23be8c2b4d18e58687 + External + develop + True + Docker + Sonarr + DisabledForLocalAddresses + + + \ No newline at end of file diff --git a/apps/sonarr/kustomization.yaml b/apps/sonarr/kustomization.yaml index 6421176..ed3e311 100644 --- a/apps/sonarr/kustomization.yaml +++ b/apps/sonarr/kustomization.yaml @@ -4,3 +4,8 @@ resources: - deployment.yaml - service.yaml - ingress.yaml +- pvc.yaml +configMapGenerator: + - name: static-config + files: + - ./config.xml \ No newline at end of file diff --git a/apps/sonarr/pvc.yaml b/apps/sonarr/pvc.yaml new file mode 100644 index 0000000..98dc42d --- /dev/null +++ b/apps/sonarr/pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: sonarr-pvc +spec: + accessModes: + - ReadWriteOncePod + storageClassName: longhorn + resources: + requests: + storage: 2Gi \ No newline at end of file