mastodon: bump to v4.4.1, helm chart v6.5.0
This commit is contained in:
@ -6,13 +6,15 @@ image:
|
||||
# built from the most recent commit
|
||||
#
|
||||
# tag: latest
|
||||
tag: "v4.2.22"
|
||||
tag: ""
|
||||
# use `Always` when using `latest` tag
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
mastodon:
|
||||
# Labels added to every Mastodon-related object
|
||||
labels: {}
|
||||
# Labes added to every deployed mastodon pod
|
||||
podLabels: {}
|
||||
|
||||
# -- create an initial administrator user; the password is autogenerated and will
|
||||
# have to be reset
|
||||
@ -25,13 +27,81 @@ mastodon:
|
||||
password: not_gargron
|
||||
# @ignored
|
||||
email: not@example.com
|
||||
# Node(s) on which we will deploy this job
|
||||
nodeSelector: {}
|
||||
hooks:
|
||||
# Whether to perform DB schema creation on `helm install`.
|
||||
# Please note that this does not work when using the included database
|
||||
# (postgresql.enabled=true).
|
||||
# NOTE: When using certain GitOps solutions such as Argo CD, this should be
|
||||
# disabled, as these apps do not necessarily differentiate between `pre-install`
|
||||
# and `pre-upgrade`.
|
||||
dbPrepare:
|
||||
enabled: true
|
||||
# Node(s) on which we will deploy this job
|
||||
nodeSelector: {}
|
||||
# Whether to perform DB migrations on `helm upgrade`.
|
||||
dbMigrate:
|
||||
enabled: true
|
||||
assetsPrecompile:
|
||||
enabled: true
|
||||
# Node(s) on which we will deploy this job
|
||||
nodeSelector: {}
|
||||
|
||||
# WARNING: deploySearch is potentially a very expensive job!
|
||||
# Only enable this once at a time, when you deploy elasticsearch or when
|
||||
# the upgrade notes for a new mastodon version request rebuilding search.
|
||||
# Recommended use is via `-f mastodon.hooks.deploySearch.enabled=true`
|
||||
# to ensure the job is only dispatched for a single upgrade when required.
|
||||
# This job may take days to run on very large instances. Even small
|
||||
# instances may take long enough to trigger helm's completion timeout, so
|
||||
# DO NOT PANIC if helm complains; simply verify the job is still running.
|
||||
#
|
||||
# Builds or rebuilds the elasticsearch indices via `tootctl deploy search`
|
||||
# with timing hooks to ensure the job runs immediately after install/upgrade
|
||||
# and will be restarted if another, corrective upgrade is triggered.
|
||||
# Please check the tootctl documentation and upgrade notes to pick values.
|
||||
#
|
||||
# NOTE: The resource stanza set below is intentionally very conservative.
|
||||
# Consider assigning a liberal chunk of your cluster's typical headroom.
|
||||
deploySearch:
|
||||
enabled: false
|
||||
resetChewy: true
|
||||
# one index name. Possible values: instances, accounts, tags, statuses, public_statuses
|
||||
only: ""
|
||||
concurrency: 5
|
||||
resources: # this accepts any keys in a full container resources stanza.
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
|
||||
# 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
|
||||
# present simultaneously, there is a chance that old asset files are
|
||||
# requested from pods that don't have them anymore, or new asset files are
|
||||
# requested from old pods. Uploading asset files to S3 in this manner solves
|
||||
# this potential conflict.
|
||||
# Note that you will need to CDN/proxy to send all requests to /assets and
|
||||
# /packs to this bucket.
|
||||
s3Upload:
|
||||
enabled: false
|
||||
endpoint:
|
||||
bucket:
|
||||
acl: public-read
|
||||
secretRef:
|
||||
name:
|
||||
keys:
|
||||
accesKeyId: acces-key-id
|
||||
secretAccessKey: secret-access-key
|
||||
rclone:
|
||||
# Any additional environment variables to pass to rclone.
|
||||
env: {}
|
||||
# Node(s) on which we will deploy this job
|
||||
nodeSelector: {}
|
||||
# Custom labels to add to kubernetes resources
|
||||
#labels:
|
||||
|
||||
cron:
|
||||
# -- run `tootctl media remove` every week
|
||||
removeMedia:
|
||||
@ -39,8 +109,15 @@ mastodon:
|
||||
enabled: true
|
||||
# @ignored
|
||||
schedule: "0 0 * * 0"
|
||||
# Node(s) on which we will deploy this job
|
||||
nodeSelector: {}
|
||||
|
||||
# Sets the default locale for this server.
|
||||
# NOTICE: This will force this locale on every user who is not logged in, and
|
||||
# the instance will no longer do any local detection for clients.
|
||||
# -- available locales: https://github.com/mastodon/mastodon/blob/main/config/application.rb#L71
|
||||
locale: en
|
||||
locale:
|
||||
|
||||
local_domain: mastodon.local
|
||||
# -- Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation
|
||||
# You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described
|
||||
@ -49,6 +126,9 @@ mastodon:
|
||||
# -- If you have multiple domains pointed at your Mastodon server, this setting will allow Mastodon to recognize
|
||||
# itself when users are addressed using those other domains.
|
||||
alternate_domains: []
|
||||
# -- Comma-separated list of public IP addresses of trusted reverse proxy servers reaching Mastodon web and streaming servers
|
||||
# Specifying overrides default list. More info: https://docs.joinmastodon.org/admin/config/#trusted_proxy_ip
|
||||
# trusted_proxy_ip:
|
||||
# -- If set to true, the frontpage of your Mastodon server will always redirect to the first profile in the database and registrations will be disabled.
|
||||
singleUserMode: false
|
||||
# -- Enables "Secure Mode" for more details see: https://docs.joinmastodon.org/admin/config/#authorized_fetch
|
||||
@ -140,6 +220,39 @@ mastodon:
|
||||
resources: {}
|
||||
# -- Affinity for all Sidekiq Deployments unless overwritten, overwrites .Values.affinity
|
||||
affinity: {}
|
||||
# Node(s) on which we will deploy sidekiq in general
|
||||
# Any worker-specific configuration will override this setting.
|
||||
nodeSelector: {}
|
||||
# -- Annotations to apply to the deployment object(s) for sidekiq.
|
||||
# -- These are applied in addition to deploymentAnnotations.
|
||||
annotations: {}
|
||||
# -- Labels to apply to the deployment object(s) for sidekiq.
|
||||
# -- These are applied in addition to mastodon.labels.
|
||||
labels: {}
|
||||
# -- Annotations to apply to the sidekiq pods.
|
||||
# -- These are applied in addition to the global podAnnotations.
|
||||
podAnnotations: {}
|
||||
# -- Labels to apply to the sidekiq pods.
|
||||
# -- These are applied in addition to mastodon.labels.
|
||||
podLabels: {}
|
||||
# Rollout strategy to use when updating pods.
|
||||
# Recreate will help reduce the number of retried jobs when updating when
|
||||
# the code introduces a new job as the pods are all replaced immediately.
|
||||
# RollingUpdate can help with larger clusters if job retries aren't an
|
||||
# issue, as it will reduce strain by replacing pods more slowly. It is
|
||||
# strongly recommended to enable the readinessProbe when using RollingUpdate.
|
||||
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
|
||||
updateStrategy:
|
||||
type: Recreate
|
||||
# Readiness probe configuration
|
||||
# NOTE: Readiness probe will only work on versions of Mastodon built after 2024-07-10.
|
||||
readinessProbe:
|
||||
enabled: false
|
||||
path: /opt/mastodon/tmp/sidekiq_process_has_started_and_will_begin_processing_jobs
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 2
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 1
|
||||
# -- Topology spread constraints for Sidekiq Pods, overwrites .Values.topologySpreadConstraints
|
||||
topologySpreadConstraints: {}
|
||||
# limits:
|
||||
@ -148,6 +261,14 @@ mastodon:
|
||||
# requests:
|
||||
# cpu: 250m
|
||||
# memory: 512Mi
|
||||
|
||||
# Open Telemetry configuration for sidekiq pods. Overrides global settings.
|
||||
otel:
|
||||
enabled:
|
||||
exporterUri:
|
||||
namePrefix:
|
||||
nameSeparator:
|
||||
|
||||
workers:
|
||||
- name: all-queues
|
||||
# -- Number of threads / parallel sidekiq jobs that are executed per Pod
|
||||
@ -158,8 +279,11 @@ mastodon:
|
||||
resources: {}
|
||||
# -- Affinity for this specific deployment, overwrites .Values.affinity and .Values.mastodon.sidekiq.affinity
|
||||
affinity: {}
|
||||
# -- Node(s) on which we will deploy this sidekiq worker
|
||||
nodeSelector: {}
|
||||
# -- Topology spread constraints for this specific deployment, overwrites .Values.topologySpreadConstraints and .Values.mastodon.sidekiq.topologySpreadConstraints
|
||||
topologySpreadConstraints: {}
|
||||
|
||||
# -- Sidekiq queues for Mastodon that are handled by this worker. See https://docs.joinmastodon.org/admin/scaling/#concurrency
|
||||
# See https://github.com/mperham/sidekiq/wiki/Advanced-Options#queues for how to weight queues as argument
|
||||
queues:
|
||||
@ -169,6 +293,7 @@ mastodon:
|
||||
- mailers,2
|
||||
- pull
|
||||
- scheduler # Make sure the scheduler queue only exists once and with a worker that has 1 replica.
|
||||
- fasp
|
||||
image:
|
||||
repository:
|
||||
tag:
|
||||
@ -213,10 +338,35 @@ mastodon:
|
||||
# -- Instead of defining login/password above, you can specify the name of an existing secret here. Login and
|
||||
# password must be located in keys named `login` and `password` respectively.
|
||||
existingSecret:
|
||||
|
||||
# Configuration for bulk/broadcast messages.
|
||||
# Some transactional email providers require customers to use a separate set
|
||||
# of SMTP credentials to send emails that are not transactional in nature.
|
||||
# For more information, refer to the docs:
|
||||
# https://docs.joinmastodon.org/admin/config/#optional-bulk-email-settings
|
||||
bulk:
|
||||
enabled: false
|
||||
auth_method: plain
|
||||
ca_file: /etc/ssl/certs/ca-certificates.crt
|
||||
domain:
|
||||
enable_starttls: "auto"
|
||||
from_address: notifications@example.com
|
||||
openssl_verify_mode: peer
|
||||
port: 587
|
||||
server: smtp.mailgun.org
|
||||
tls:
|
||||
login:
|
||||
password:
|
||||
# -- Instead of defining login/password above, you can specify the name of an existing secret here. Login and
|
||||
# password must be located in keys named `login` and `password` respectively.
|
||||
existingSecret:
|
||||
|
||||
streaming:
|
||||
image:
|
||||
repository:
|
||||
tag:
|
||||
# streaming image split in Mastodon v4.3.0
|
||||
repository: ghcr.io/mastodon/mastodon-streaming
|
||||
# other options: `latest` for the latest release or `edge` for most recent commit
|
||||
tag: ""
|
||||
port: 4000
|
||||
# -- this should be set manually since os.cpus() returns the number of CPUs on
|
||||
# the node running the pod, which is unrelated to the resources allocated to
|
||||
@ -229,6 +379,27 @@ mastodon:
|
||||
replicas: 1
|
||||
# -- Affinity for Streaming Pods, overwrites .Values.affinity
|
||||
affinity: {}
|
||||
# -- Node(s) on which we will deploy the streaming pods
|
||||
nodeSelector: {}
|
||||
# -- Annotations to apply to the deployment object for streaming.
|
||||
# -- These are applied in addition to deploymentAnnotations.
|
||||
annotations: {}
|
||||
# -- Labels to apply to the deployment object for streaming.
|
||||
# -- These are applied in addition to mastodon.labels.
|
||||
labels: {}
|
||||
# -- Annotations to apply to the streaming pods.
|
||||
# -- These are applied in addition to the global podAnnotations.
|
||||
podAnnotations: {}
|
||||
# -- Labels to apply to the streaming pods.
|
||||
# -- These are applied in addition to mastodon.labels.
|
||||
podLabels: {}
|
||||
# Rollout strategy to use when updating pods
|
||||
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 10%
|
||||
maxUnavailable: 25%
|
||||
# -- Topology spread constraints for Streaming Pods, overwrites .Values.topologySpreadConstraints
|
||||
topologySpreadConstraints: {}
|
||||
# -- Pod Security Context for Streaming Pods, overwrites .Values.podSecurityContext
|
||||
@ -268,6 +439,27 @@ mastodon:
|
||||
replicas: 1
|
||||
# -- Affinity for Web Pods, overwrites .Values.affinity
|
||||
affinity: {}
|
||||
# -- Node(s) on which we will deploy the web pods
|
||||
nodeSelector: {}
|
||||
# -- Annotations to apply to the deployment object for web.
|
||||
# -- These are applied in addition to deploymentAnnotations.
|
||||
annotations: {}
|
||||
# -- Labels to apply to the deployment object for web.
|
||||
# -- These are applied in addition to mastodon.labels.
|
||||
labels: {}
|
||||
# -- Annotations to apply to the web pods.
|
||||
# -- These are applied in addition to the global podAnnotations.
|
||||
podAnnotations: {}
|
||||
# -- Labels to apply to the web pods.
|
||||
# -- These are applied in addition to mastodon.labels.
|
||||
podLabels: {}
|
||||
# Rollout strategy to use when updating pods
|
||||
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 10%
|
||||
maxUnavailable: 25%
|
||||
# -- Topology spread constraints for Web Pods, overwrites .Values.topologySpreadConstraints
|
||||
topologySpreadConstraints: {}
|
||||
# -- Pod Security Context for Web Pods, overwrites .Values.podSecurityContext
|
||||
@ -287,8 +479,10 @@ mastodon:
|
||||
enable: false
|
||||
# minAvailable: 1
|
||||
# maxUnavailable: 1
|
||||
|
||||
# -- 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"
|
||||
@ -303,6 +497,13 @@ mastodon:
|
||||
name:
|
||||
key:
|
||||
|
||||
# Open Telemetry configuration for web pods. Overrides global settings.
|
||||
otel:
|
||||
enabled:
|
||||
exporterUri:
|
||||
namePrefix:
|
||||
nameSeparator:
|
||||
|
||||
# HTTP cache buster configuration.
|
||||
# See the documentation for more information about this feature:
|
||||
# https://docs.joinmastodon.org/admin/config/#http-cache-buster
|
||||
@ -316,6 +517,8 @@ mastodon:
|
||||
existingSecret:
|
||||
|
||||
metrics:
|
||||
|
||||
# NOTE: This feature was dropped in v4.3.0, and will not work for any versions beyond this.
|
||||
statsd:
|
||||
# -- Enable statsd publishing via STATSD_ADDR environment variable
|
||||
address: ""
|
||||
@ -325,6 +528,32 @@ mastodon:
|
||||
enabled: false
|
||||
port: 9102
|
||||
|
||||
# Settings for Prometheus metrics.
|
||||
# For more information, see:
|
||||
# https://docs.joinmastodon.org/admin/config/#prometheus
|
||||
prometheus:
|
||||
enabled: false
|
||||
# Port for the exporter to listen on
|
||||
port: 9394
|
||||
|
||||
# Prometheus for web pods
|
||||
web:
|
||||
# Collect per-controller/action metrics for every request
|
||||
detailed: false
|
||||
|
||||
# Prometheus for sidekiq pods
|
||||
sidekiq:
|
||||
# Collect per-job metrics for every job
|
||||
detailed: false
|
||||
|
||||
# Open Telemetry configuration for all deployments. Component-specific
|
||||
# configuration will override these values.
|
||||
otel:
|
||||
enabled: false
|
||||
exporterUri:
|
||||
namePrefix: mastodon
|
||||
nameSeparator: "-"
|
||||
|
||||
# Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements
|
||||
preparedStatements: true
|
||||
|
||||
@ -380,7 +609,13 @@ ingress:
|
||||
hosts:
|
||||
- streaming.mastodon.local
|
||||
|
||||
# -- https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
||||
# Configuration for Elasticsearch.
|
||||
# When enabled, the bitnami helm chart is used for Elasticsearch deployment, and
|
||||
# all values here correspond to their values file. Please see the bitnami chart
|
||||
# documentation:
|
||||
# https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
||||
#
|
||||
# Please note that we recommend using your own deployment for better management.
|
||||
elasticsearch:
|
||||
# Elasticsearch is powering full-text search. It is optional.
|
||||
|
||||
@ -406,13 +641,43 @@ elasticsearch:
|
||||
# Name of an existing secret with a password key
|
||||
# existingSecret:
|
||||
|
||||
# -- Node(s) on which we will deploy the various elasticsearch pods
|
||||
master:
|
||||
nodeSelector: {}
|
||||
data:
|
||||
nodeSelector: {}
|
||||
coordinating:
|
||||
nodeSelector: {}
|
||||
ingest:
|
||||
nodeSelector: {}
|
||||
metrics:
|
||||
nodeSelector: {}
|
||||
|
||||
# Configuration for PostgreSQL.
|
||||
# When enabled, the bitnami helm chart is used for PostgreSQL deployment, and
|
||||
# all values here correspond to their values file. Please see the bitnami chart
|
||||
# documentation:
|
||||
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
||||
#
|
||||
# Please note that we recommend using your own deployment for better management.
|
||||
postgresql:
|
||||
# -- disable if you want to use an existing db; in which case the values below
|
||||
# must match those of that external postgres instance
|
||||
# must match those of that external postgres instance.
|
||||
# Please note that certain features do not work when enabling the included
|
||||
# database, namely automatic schema creation when the app is first installed.
|
||||
enabled: true
|
||||
# postgresqlHostname: preexisting-postgresql
|
||||
# postgresqlPort: 5432
|
||||
|
||||
# If using a connection pooler such as pgbouncer, please specify a hostname/IP
|
||||
# that serves as a "direct" connection to the database, rather than going
|
||||
# through the connection pooler. This is required for migrations to work
|
||||
# properly.
|
||||
direct:
|
||||
hostname:
|
||||
port:
|
||||
database:
|
||||
|
||||
auth:
|
||||
database: mastodon_production
|
||||
username: mastodon
|
||||
@ -442,7 +707,22 @@ postgresql:
|
||||
password:
|
||||
existingSecret:
|
||||
|
||||
# -- Node(s) on which we will deploy the various database pods
|
||||
primary:
|
||||
nodeSelector: {}
|
||||
readReplicas:
|
||||
nodeSelector: {}
|
||||
backup:
|
||||
cronjob:
|
||||
nodeSelector: {}
|
||||
|
||||
# Configuration for Redis.
|
||||
# When enabled, the bitnami helm chart used for Redis deployment, and all values
|
||||
# here correspond to their values file. Please see the bitnami chart
|
||||
# documentation:
|
||||
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
||||
#
|
||||
# Please note that we recommend using your own deployment for better management.
|
||||
redis:
|
||||
# disable if you want to use an existing redis instance; in which case the
|
||||
# values below must match those of that external redis instance
|
||||
@ -488,6 +768,12 @@ redis:
|
||||
# with a key of redis-password set to the password you want
|
||||
existingSecret: ""
|
||||
|
||||
# -- Node(s) on which we will deploy the various redis pods
|
||||
master:
|
||||
nodeSelector: {}
|
||||
replica:
|
||||
nodeSelector: {}
|
||||
|
||||
# @ignored
|
||||
service:
|
||||
type: ClusterIP
|
||||
@ -614,23 +900,23 @@ serviceAccount:
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name: ""
|
||||
|
||||
# Custom annotations to apply to all created deployment objects. These can be
|
||||
# used to help mastodon interact with other services in the cluster.
|
||||
# Custom annotations to apply to all created mastodon deployment objects. These
|
||||
# can be used to help mastodon interact with other services in the cluster.
|
||||
deploymentAnnotations: {}
|
||||
|
||||
# -- Kubernetes manages pods for jobs and pods for deployments differently, so you might
|
||||
# need to apply different annotations to the two different sets of pods. The annotations
|
||||
# set with podAnnotations will be added to all deployment-managed pods.
|
||||
# set with podAnnotations will be added to all mastodon deployment-managed pods.
|
||||
podAnnotations: {}
|
||||
|
||||
# If set to true, an annotation with the current chart release number will be added to all mastodon pods. This will
|
||||
# cause all pods to be recreated every `helm upgrade` regardless of whether their config or spec changes.
|
||||
revisionPodAnnotation: true
|
||||
|
||||
# The annotations set with jobAnnotations will be added to all job pods.
|
||||
# The annotations set with jobAnnotations will be added to all mastodon job pods
|
||||
jobAnnotations: {}
|
||||
|
||||
# -- Default resources for all Deployments and jobs unless overwritten
|
||||
# -- Default resources for all mastodon Deployments and jobs unless overwritten
|
||||
resources:
|
||||
{}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
@ -644,26 +930,28 @@ resources:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
|
||||
# @ignored
|
||||
nodeSelector: {}
|
||||
|
||||
# @ignored
|
||||
tolerations: []
|
||||
|
||||
# -- Affinity for all pods unless overwritten
|
||||
# -- Affinity for all mastodon pods unless overwritten
|
||||
affinity: {}
|
||||
|
||||
# -- Timezone for all pods unless overwritten
|
||||
# Node(s) on which we will deploy all resources.
|
||||
# Any node selectors specified for individual resources will override this
|
||||
# setting.
|
||||
nodeSelector: {}
|
||||
|
||||
# -- Timezone for all mastodon pods unless overwritten
|
||||
timezone: UTC
|
||||
|
||||
# -- Topology Spread Constraints for all pods unless overwritten
|
||||
# -- Topology Spread Constraints for all mastodon pods unless overwritten
|
||||
# Please note that you need to use `matchLabelKeys` (Kubernetes 1.25+) if you
|
||||
# want to spread each deployment independently, or override topologySpreadConstraints
|
||||
# for each deployment
|
||||
topologySpreadConstraints: {}
|
||||
|
||||
# Default volume mounts for all pods
|
||||
# Default volume mounts for all mastodon pods
|
||||
volumeMounts: []
|
||||
|
||||
# Default volumes for all pods
|
||||
# Default volumes for all mastodon pods
|
||||
volumes: []
|
||||
|
Reference in New Issue
Block a user