diff --git a/charts/servarr/Chart.yaml b/charts/servarr/Chart.yaml index 2626522..3837ab1 100644 --- a/charts/servarr/Chart.yaml +++ b/charts/servarr/Chart.yaml @@ -15,10 +15,10 @@ 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. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.7 +version: 1.1.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.0.7" \ No newline at end of file +appVersion: "1.1.0" \ No newline at end of file diff --git a/charts/servarr/templates/statefulset.yaml b/charts/servarr/templates/statefulset.yaml index 2967788..b2df62e 100644 --- a/charts/servarr/templates/statefulset.yaml +++ b/charts/servarr/templates/statefulset.yaml @@ -45,18 +45,34 @@ spec: {{- toYaml .Values.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.volumeMounts }} volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} + - name: config + mountPath: /config + - name: downloads + mountPath: /downloads + - name: data + mountPath: /data {{- with .Values.env }} env: {{- toYaml . | nindent 12 }} {{- end }} - {{- with .Values.volumes }} volumes: - {{- toYaml . | nindent 8 }} - {{- end }} + - name: config + hostPath: + path: {{ .Values.volumes.config }} + type: Directory + {{- if .Values.volumes.downloads }} + - name: downloads + hostPath: + path: {{ .Values.volumes.downloads }} + type: Directory + {{- end }} + {{- if .Values.volumes.data }} + - name: data + hostPath: + path: {{ .Values.volumes.data }} + type: Directory + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/servarr/values.yaml b/charts/servarr/values.yaml index 178b9be..e3822df 100644 --- a/charts/servarr/values.yaml +++ b/charts/servarr/values.yaml @@ -30,16 +30,15 @@ podLabels: {} podSecurityContext: {} # fsGroup: 2000 -# Environment Variables -env: [] +securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 +# Environment Variables +env: + - name: TZ + value: Europe/Riga service: type: ClusterIP @@ -82,20 +81,15 @@ readinessProbe: path: / port: http -# Additional volumes on the output Statefulset definition. -volumes: [] -# - name: foo -# secret: -# secretName: mysecret -# optional: false +# Volumes to mount +volumes: {} +# config: +# downloads: +# media -# Additional volumeMounts on the output Statefulset definition. -volumeMounts: [] -# - name: config -# mountPath: /config +nodeselector: {} -nodeSelector: {} +tolerations: {} -tolerations: [] affinity: {}