This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
valinor/archive/fediverse/mastodon/app/mastodon-sidekiq/local/high-priority/helmrelease.yaml

52 lines
1.3 KiB
YAML
Raw Normal View History

2023-08-13 12:13:53 -05:00
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app mastodon-sidekiq-high-priority
namespace: fediverse
labels:
app: mastodon
component: sidekiq
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
values:
controller:
replicas: 1 #Cannot be more than one unless you split out scheduler.
strategy: Recreate #We don't want one to exist while the other is being created.
annotations:
reloader.stakater.com/auto: "true"
labels:
app: mastodon
component: sidekiq
image:
repository: ghcr.io/mastodon/mastodon
tag: v4.1.6@sha256:51405bec6529860c88640bbca3d30bf3a9a82456a3fdae122dc52f4f941808ff
command: ["bundle", "exec", "sidekiq", "-c", "25", "-q", "default"]
envFrom:
- secretRef:
name: mastodon-secret
env:
DB_NAME: "$(CP_SIDEKIQ_HIGH_PRIORITY)"
DB_PORT: "${CP_DB_PORT}"
PREPARED_STATEMENTS: "false" # neccessary for pgbouncer
service:
main:
enabled: false
# nodeSelector:
# doks.digitalocean.com/node-pool: pool-valinor
resources:
requests:
cpu: 1000m
memory: 250M
limits:
cpu: 3000m
memory: 972M