Skip to content

Mastodon

Install

Helm chart

The values for these secrets must be set:

helm template \
  --set mastodon.secrets.secret_key_base='foo' \
  --set mastodon.secrets.otp_secret='foo' \
  --set mastodon.secrets.vapid.private_key='foo' \
  --set mastodon.secrets.vapid.public_key='foo' \
  .

Setup

Reset admin passwort

See also tootctl docs

alias tootctl='kubectl -n mastodon exec -it deployment/mastodon-web -- tootctl'
tootctl accounts modify admin --reset-password

Manual Elasticsearch re-index

tootctl search deploy

or seperate INDEXes at once

tootctl search deploy --only tags

When this fails with You can't set the item's total value to less than the current progress. (ProgressBar::InvalidProgressError) this workaround worked at least

sed -E 's/indices.sum.+/2000/g' -i /opt/mastodon/lib/mastodon/search_cli.rb
tootctl search deploy

Blocklists

Issues

From Search docs:

Mastodon’s full-text search allows logged-in users to find results from their own posts, their favourites, their bookmarks and their mentions. It deliberately does not allow searching for arbitrary strings in the entire database, in order to reduce the risk of abuse by people searching for controversial terms to find people to dogpile.

Related issues / PRs:

Tools

Server administration

Migrate/restore server

Resource Tuning

Sidekiq

Monitoring

Metrics exporters

Standalone exporters

So far, there's no helm chart for most of these exporters, unless explicitly mentioned.

Stale:

Exporters using statsd