mirror of
https://github.com/mastodon/chart
synced 2025-05-17 20:43:21 +00:00
Merge pull request #3 from jessebot/fix/admin-creation-job
fix admin creation job; add some notes
This commit is contained in:
commit
0bcae4b8a4
14
README.md
14
README.md
|
@ -1,13 +1,15 @@
|
|||
# Introduction
|
||||
|
||||
This is a [Helm](https://helm.sh/) chart for installing Mastodon into a
|
||||
Kubernetes cluster. The basic usage is:
|
||||
This is a [Helm](https://helm.sh/) chart for installing Mastodon on a Kubernetes cluster. This is a fork of the official mastodon helm chart, as the upstream repo had some issues with security and order of operations.
|
||||
The basic usage is:
|
||||
|
||||
1. edit `values.yaml` or create a separate yaml file for custom values
|
||||
1. `helm dep update`
|
||||
1. `helm install --namespace mastodon --create-namespace my-mastodon ./ -f path/to/additional/values.yaml`
|
||||
2. `helm repo add https://jessebot.github.io/mastodon-helm-chart`
|
||||
3. `helm install --namespace mastodon --create-namespace mastodon -f path/to/values.yaml`
|
||||
|
||||
This chart is tested with k8s 1.21+ and helm 3.6.0+.
|
||||
This chart is tested with k8s 1.26+ and helm 3.6.0+.
|
||||
|
||||
Known caveats: Currently in chart version `4.0.8`, you need to run postgresql and redis helm charts independently of this one. This is because there's a helm hook job called db-migrate that I can't figure out how to make run after the dependency charts are fully installed, but before everything else. If you know the answer to this, please open an issue here and let me know!
|
||||
|
||||
# Configuration
|
||||
|
||||
|
@ -117,4 +119,4 @@ postgresql:
|
|||
|
||||
And make sure to set `password` to the same value as `postgres-password`
|
||||
in your `mastodon-postgresql` secret:
|
||||
```kubectl edit secret mastodon-postgresql```
|
||||
```kubectl edit secret mastodon-postgresql```
|
||||
|
|
|
@ -15,7 +15,7 @@ type: application
|
|||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 4.0.7
|
||||
version: 4.0.8
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
|
|
|
@ -47,15 +47,9 @@ spec:
|
|||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy | default "IfNotPresent" }}
|
||||
command:
|
||||
- bin/tootctl
|
||||
- accounts
|
||||
- create
|
||||
- $ADMIN_USER
|
||||
- --email
|
||||
- $ADMIN_EMAIL
|
||||
- --confirmed
|
||||
- --role
|
||||
- Owner
|
||||
- /bin/bash
|
||||
- -c
|
||||
- bin/tootctl accounts create "$ADMIN_USER" --email "$ADMIN_EMAIL" --confirmed --role Owner
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "mastodon.fullname" . }}-env
|
||||
|
|
Loading…
Reference in New Issue
Block a user