Switched to use existing PVC for emby config

This commit is contained in:
jenkins-x-bot
2020-09-25 11:25:35 +08:00
parent b0f63cc06f
commit b35a47aec2
6 changed files with 12 additions and 58 deletions
+5 -43
View File
@@ -23,31 +23,12 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}-sidecar
image: harbor.ervine.dev/public/x86_64/alpine/sonarr-sidecar:v3.12.0
securityContext:
privileged: true
lifecycle:
preStop:
exec:
command:
- umount
- /mnt/app-local-config
volumeMounts:
- name: radarr-config
mountPath: /app-remote-config
- name: radarr-local-config
mountPath: /mnt/app-local-config
mountPropagation: Bidirectional
resources:
requests:
cpu: 20m
memory: 32Mi
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
ports:
- name: radarr
containerPort: 7878
@@ -61,24 +42,15 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: radarr-local-config
- name: radarr-config
mountPath: /config
mountPropagation: HostToContainer
- name: radarr-config
mountPath: /config/Backups
subPath: Backups
- name: radarr-config
mountPath: /config/MediaCover
subPath: MediaCover
- name: radarr-config
mountPath: /config/logs
subPath: logs
- name: radarr-media
mountPath: /movies
subPath: movies
volumes:
- emptyDir: {}
name: radarr-local-config
- name: radarr-config
persistentVolumeClaim:
claimName: {{ .Values.config.configPvc }}
- name: radarr-media
persistentVolumeClaim:
claimName: {{ .Values.mediaPvc }}
@@ -94,13 +66,3 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: {{ .Chart.Name }}-config
spec:
accessModes: ['ReadWriteOnce']
storageClassName: {{ .Values.config.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.config.storageSize }}