3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Switch from static resources to dynamic via values

This commit is contained in:
Matthew Abbott 2025-03-10 16:28:52 -05:00
parent e06be9178e
commit 1aa6b2dfd6
No known key found for this signature in database
2 changed files with 8 additions and 3 deletions

View File

@ -47,10 +47,10 @@ spec:
- name: {{ include "mastodon.fullname" . }}-deploy-search
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.mastodon.hooks.deploySearch.resources }}
resources:
requests:
cpu: 700m
memory: 768Mi
{{- toYaml . | nindent 12 }}
{{- end }}
command:
- bin/tootctl
- search

View File

@ -40,6 +40,11 @@ mastodon:
concurrency: 5
resetChewy: true
only: "" # one index name. Possible values: instances, accounts, tags, statuses, public_statuses
resources:
requests:
cpu: 700m
memory: 768Mi
# Upload website assets to S3 before deploying using rclone.
# Whenever there is an update to Mastodon, sometimes there are assets files
# that are renamed. As the pods are getting redeployed, and old/new pods are