activityrelay

by mhamzahkhan

Helm chartv1.0.67App v2.0.11Verified publisher

Yet another powerful customizable ActivityPub relay server written in Go.

About this chart

YUKIMOCHI Activity-Relay Helm Chart

This is a Helm chart for installing YUKIMOCHI Activity-Relay into a Kubernetes cluster. The basic usage is:

TL;DR

$ helm repo add mhamzahkhan https://charts.hamzahkhan.com/
$ helm install activityrelay mhamzahkhan/activityrelay

Parameters

Configuration

The following table lists the configurable parameters of the Activityrelay chart and their default values.

ParameterDescriptionDefault
image.repositoryRegistry to pull the image from"docker.io/yukimochi/activity-relay"
image.pullPolicyImage pull policy"IfNotPresent"
image.tagImage tag (defaults to appVersion)""
imagePullSecretsImage pull secret[]
nameOverride""
fullnameOverride""
serviceAccount.createtrue
serviceAccount.annotations{}
serviceAccount.name""
service.typeService object type (ClusterIP/LoadBalancer)"ClusterIP"
activityrelay.config.relay_domain"relay.example.com"
activityrelay.config.relay_servicename"Example ActivityPub Relay Service"
activityrelay.config.job_concurrency"50"
activityrelay.actor.existingSecret""
activityrelay.server.replicaCount1
activityrelay.server.port8080
activityrelay.server.extraArgs["--verbose"]
activityrelay.server.podAnnotations{}
activityrelay.server.podSecurityContext{}
activityrelay.server.securityContext.readOnlyRootFilesystemfalse
activityrelay.server.securityContext.allowPrivilegeEscalationfalse
activityrelay.server.securityContext.capabilities.drop["all"]
activityrelay.server.securityContext.capabilities.add["NET_BIND_SERVICE"]
activityrelay.server.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[{"labelSelector": {"matchLabels": {"app.kubernetes.io/component": "workers"}}, "topologyKey": "kubernetes.io/hostname"}]
activityrelay.server.resources{}
activityrelay.workers.replicaCount3
activityrelay.workers.extraArgs["--verbose"]
activityrelay.workers.podAnnotations{}
activityrelay.workers.podSecurityContext{}
activityrelay.workers.securityContext.readOnlyRootFilesystemfalse
activityrelay.workers.securityContext.allowPrivilegeEscalationfalse
activityrelay.workers.securityContext.capabilities.drop["all"]
activityrelay.workers.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[{"labelSelector": {"matchLabels": {"app.kubernetes.io/component": "workers"}}, "topologyKey": "kubernetes.io/hostname"}]
activityrelay.workers.resources{}
redis.enabledtrue
redis.architecture"standalone"
redis.auth.enabledfalse
redis.externalRedis.host"localhost"
redis.externalRedis.port6379
podAnnotations{}
podSecurityContext.runAsUser991
podSecurityContext.runAsGroup991
podSecurityContext.fsGroup991
podSecurityContext.runAsNonRoottrue
securityContext{}
nodeSelector.kubernetes.io/os"linux"
tolerations[]
affinity{}

Example Deployment

Deploy with external redis - external-redis-values.yaml

service:
  type: ClusterIP

activityrelay:
  config:
    relay_domain: "relay.intahnet.co.uk"
    relay_servicename: "[email protected]"
    job_concurrency: "50"

  actor:
    existingSecret: "actor-key"

  server:
    replicaCount: 1

  workers:
    replicaCount: 6

redis:
  enabled: false

  externalRedis:
    host: "redis.activityrelay.svc.cluster.local."
    port: 6379

Deploy on cluster

$ helm repo add mhamzahkhan https://charts.hamzahkhan.com/
$ helm install activityrelay mhamzahkhan/activityrelay --values external-redis-values.yaml

Deploy activityrelay with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has activityrelay on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartactivityrelay is pinned at v1.0.67 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply