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

View File

@ -71,4 +71,4 @@ config:
storageClassName: nfs-client-hermes
storageSize: 5Gi
mediaPvc: nzbget-media-pvc
mediaPvc: nzbget-hermes-media-pvc

View File

@ -14,7 +14,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.4
version: 0.1.5
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.

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 }}

View File

@ -68,7 +68,6 @@ tolerations: []
affinity: {}
config:
storageClassName: nfs-client-hermes
storageSize: 5Gi
configPvc: sonarr-hermes-config-pvc
mediaPvc: sonarr-media-pvc

BIN
sonarr/~?

Binary file not shown.

View File

@ -14,7 +14,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.3
version: 0.1.6
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.

View File

@ -45,6 +45,10 @@ spec:
volumeMounts:
- name: tautulli-config
mountPath: /config
volumes:
- name: tautulli-config
persistentVolumeClaim:
claimName: {{ .Values.config.configPvc }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
@ -57,12 +61,3 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: tautulli-config
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.config.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.config.storageSize }}

View File

@ -67,5 +67,4 @@ tolerations: []
affinity: {}
config:
storageClassName: nfs-client-icarus
storageSize: 5Gi
configPvc: tautulli-icarus-config-pvc