1 {{- if .Values.mastodon.createAdmin.enabled }}
5 name: {{ include "mastodon.fullname" . }}-create-admin
7 {{- include "mastodon.labels" . | nindent 4 }}
9 "helm.sh/hook": post-install
10 "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
11 "helm.sh/hook-weight": "-1"
15 name: {{ include "mastodon.fullname" . }}-create-admin
18 {{- if (not .Values.mastodon.s3.enabled) }}
19 # ensure we run on the same node as the other rails components; only
20 # required when using PVCs that are ReadWriteOnce
21 {{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
24 requiredDuringSchedulingIgnoredDuringExecution:
31 topologyKey: kubernetes.io/hostname
35 persistentVolumeClaim:
36 claimName: {{ template "mastodon.fullname" . }}-assets
38 persistentVolumeClaim:
39 claimName: {{ template "mastodon.fullname" . }}-system
42 - name: {{ include "mastodon.fullname" . }}-create-admin
43 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
44 imagePullPolicy: {{ .Values.image.pullPolicy }}
49 - {{ .Values.mastodon.createAdmin.username }}
51 - {{ .Values.mastodon.createAdmin.email }}
57 name: {{ include "mastodon.fullname" . }}-env
59 name: {{ template "mastodon.fullname" . }}
64 {{- if .Values.postgresql.enabled }}
65 name: {{ .Release.Name }}-postgresql
67 name: {{ template "mastodon.fullname" . }}
69 key: postgresql-password
70 - name: "REDIS_PASSWORD"
73 name: {{ .Release.Name }}-redis
76 value: {{ .Values.mastodon.web.port | quote }}
77 {{- if (not .Values.mastodon.s3.enabled) }}
80 mountPath: /opt/mastodon/public/assets
82 mountPath: /opt/mastodon/public/system