diff --git a/README.md b/README.md index 53f9599..8e62bbd 100644 --- a/README.md +++ b/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``` \ No newline at end of file +```kubectl edit secret mastodon-postgresql``` diff --git a/charts/mastodon/Chart.yaml b/charts/mastodon/Chart.yaml index 298917d..9064417 100644 --- a/charts/mastodon/Chart.yaml +++ b/charts/mastodon/Chart.yaml @@ -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 diff --git a/charts/mastodon/templates/job-create-admin.yaml b/charts/mastodon/templates/job-create-admin.yaml index 674187b..12d0e1c 100644 --- a/charts/mastodon/templates/job-create-admin.yaml +++ b/charts/mastodon/templates/job-create-admin.yaml @@ -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