Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.29 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.29 KB

mastodon-on-kubernetes

Collection of code to run Mastodon server on Kubernetes with Flux CD & Terraform.

See the whole configuration with instructions in the article on SoftwareMill's blog.

Prerequisites

Structure

The structure is based on Flux monorepo approach:

  • apps/base/mastodon - contains Mastodon Helm release with configuration
  • modules/mastodon - re-usable Terraform module for the Google Storage Bucket with HMAC keys and Service Account

Mastodon server configuration

The apps/base/mastodon directory contains manifests for deploying Mastodon server. Provide the neccessary configuration for the Helm Chart in the values.yaml file.

Terraform module

To use Terraform module in your root module call the child module mastodon and provide the bucket_name:

module "mastodon" {
  source      = "../modules/mastodon"
  bucket_name = "mastodon-production"
}

In the source argument specify the path to a local directory containing the Mastodon module's configuration files.