Skip to content

Commit

Permalink
Volume restrictions and hardcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
iaacautomation committed Sep 5, 2024
1 parent 36feb0f commit 909ae05
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 29 deletions.
4 changes: 2 additions & 2 deletions charts/servarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
appVersion: "1.1.0"
28 changes: 22 additions & 6 deletions charts/servarr/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
36 changes: 15 additions & 21 deletions charts/servarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: {}

0 comments on commit 909ae05

Please sign in to comment.