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:
parent
e06be9178e
commit
1aa6b2dfd6
|
@ -47,10 +47,10 @@ spec:
|
||||||
- name: {{ include "mastodon.fullname" . }}-deploy-search
|
- name: {{ include "mastodon.fullname" . }}-deploy-search
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
{{- with .Values.mastodon.hooks.deploySearch.resources }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
{{- toYaml . | nindent 12 }}
|
||||||
cpu: 700m
|
{{- end }}
|
||||||
memory: 768Mi
|
|
||||||
command:
|
command:
|
||||||
- bin/tootctl
|
- bin/tootctl
|
||||||
- search
|
- search
|
||||||
|
|
|
@ -40,6 +40,11 @@ mastodon:
|
||||||
concurrency: 5
|
concurrency: 5
|
||||||
resetChewy: true
|
resetChewy: true
|
||||||
only: "" # one index name. Possible values: instances, accounts, tags, statuses, public_statuses
|
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.
|
# Upload website assets to S3 before deploying using rclone.
|
||||||
# Whenever there is an update to Mastodon, sometimes there are assets files
|
# 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
|
# that are renamed. As the pods are getting redeployed, and old/new pods are
|
||||||
|
|
Loading…
Reference in New Issue
Block a user