diff --git a/transmission/Chart.yaml b/transmission/Chart.yaml index 492f087..009e218 100644 --- a/transmission/Chart.yaml +++ b/transmission/Chart.yaml @@ -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.2 +version: 0.1.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/watcher/Chart.yaml b/watcher/Chart.yaml index b7a3adc..9710aa4 100644 --- a/watcher/Chart.yaml +++ b/watcher/Chart.yaml @@ -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.10 +version: 0.1.11 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/watcher/templates/statefulset.yaml b/watcher/templates/statefulset.yaml index fd63f13..7753b65 100644 --- a/watcher/templates/statefulset.yaml +++ b/watcher/templates/statefulset.yaml @@ -43,48 +43,14 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - - name: app-local-config + - name: watcher-config mountPath: /config - mountPropagation: HostToContainer - - name: watcher-config - mountPath: /config/backup - subPath: backup - - name: watcher-config - mountPath: /config/posters - subPath: posters - - name: watcher-config - mountPath: /config/logs - subPath: logs - - name: watcher-config - mountPath: /config/templates - subPath: templates - name: watcher-media-pv mountPath: /media - - name: {{ .Chart.Name }}-sidecar - image: harbor.ervine.dev/public/x86_64/alpine/db-sidecar:v3.12.0 - imagePullPolicy: Always - env: - - name: LIVE_DB - value: /app-remote-config/watcher.sqlite - - name: BACKUP_DB - value: /app-remote-config/watcher.backup.sqlite - securityContext: - privileged: true - lifecycle: - preStop: - exec: - command: - - umount - - /mnt/app-local-config - volumeMounts: - - name: watcher-config - mountPath: /app-remote-config - - name: app-local-config - mountPath: /mnt/app-local-config - mountPropagation: Bidirectional volumes: - - name: app-local-config - emptyDir: {} + - name: watcher-config + persistentVolumeClaim: + claimName: {{ .Values.config.configPvc }} - name: watcher-media-pv persistentVolumeClaim: claimName: {{ .Values.mediaPvc }} @@ -100,12 +66,3 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} - volumeClaimTemplates: - - metadata: - name: watcher-config - spec: - accessModes: ['ReadWriteOnce'] - storageClassName: {{ .Values.config.storageClassName | quote }} - resources: - requests: - storage: {{ .Values.config.storageSize }} diff --git a/watcher/values.yaml b/watcher/values.yaml index 5c298e4..83d2418 100644 --- a/watcher/values.yaml +++ b/watcher/values.yaml @@ -68,7 +68,6 @@ tolerations: [] affinity: {} config: - storageClassName: nfs-client-hermes - storageSize: 5Gi + configPvc: watcher-hermes-config-pvc mediaPvc: watcher-media-pvc