feat(helm-chart): add values for various Puma related settings

This commit is contained in:
Jim Myhrberg 2022-12-05 20:49:56 +00:00 committed by Renaud Chaput
parent 61194296af
commit f5e3c27ab6
2 changed files with 22 additions and 0 deletions

View File

@ -74,6 +74,22 @@ spec:
key: redis-password
- name: "PORT"
value: {{ .Values.mastodon.web.port | quote }}
{{- if .Values.mastodon.web.minThreads }}
- name: "MIN_THREADS"
value: {{ .Values.mastodon.web.minThreads | quote }}
{{- end }}
{{- if .Values.mastodon.web.maxThreads }}
- name: "MAX_THREADS"
value: {{ .Values.mastodon.web.maxThreads | quote }}
{{- end }}
{{- if .Values.mastodon.web.workers }}
- name: "WEB_CONCURRENCY"
value: {{ .Values.mastodon.web.workers | quote }}
{{- end }}
{{- if .Values.mastodon.web.persistentTimeout }}
- name: "PERSISTENT_TIMEOUT"
value: {{ .Values.mastodon.web.persistentTimeout | quote }}
{{- end }}
{{- if (and .Values.mastodon.s3.enabled .Values.mastodon.s3.existingSecret) }}
- name: "AWS_SECRET_ACCESS_KEY"
valueFrom:

View File

@ -190,6 +190,12 @@ mastodon:
# requests:
# cpu: 250m
# memory: 768Mi
# -- Puma-specific options. Below values are based on default behavior in
# config/puma.rb when no custom values are provided.
minThreads: "5"
maxThreads: "5"
workers: "2"
persistentTimeout: "20"
metrics:
statsd: