Fixed volumes

This commit is contained in:
jenkins-x-bot
2020-09-27 14:50:37 +08:00
parent 138a883571
commit afce3aa892
8 changed files with 13 additions and 56 deletions
+4 -40
View File
@@ -23,26 +23,6 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: sonarr-sidecar
image: harbor.ervine.dev/public/x86_64/alpine/sonarr-sidecar:v3.12.0
securityContext:
privileged: true
lifecycle:
preStop:
exec:
command:
- umount
- /mnt/sonarr-local-config
volumeMounts:
- name: sonarr-config
mountPath: /app-remote-config
- name: sonarr-local-config
mountPath: /mnt/app-local-config
mountPropagation: Bidirectional
resources:
requests:
cpu: 20m
memory: 32Mi
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
@@ -63,18 +43,8 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: sonarr-local-config
- name: sonarr-config
mountPath: /config
mountPropagation: HostToContainer
- name: sonarr-config
mountPath: /config/Backups
subPath: Backups
- name: sonarr-config
mountPath: /config/MediaCover
subPath: MediaCover
- name: sonarr-config
mountPath: /config/logs
subPath: logs
- name: sonarr-media
mountPath: /tv
subPath: tv
@@ -87,6 +57,9 @@ spec:
- name: sonarr-media
persistentVolumeClaim:
claimName: {{ .Values.mediaPvc }}
- name: sonarr-config
persistentVolumeClaim:
claimName: {{ .Values.config.configPvc }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
@@ -99,12 +72,3 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: sonarr-config
spec:
accessModes: ['ReadWriteOnce']
storageClassName: {{ .Values.config.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.config.storageSize }}