Skip to content
Snippets Groups Projects
Verified Commit 119394ff authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

fix: correct restart issue for mastodon

parent cbf49d41
No related branches found
No related tags found
No related merge requests found
Pipeline #2940 passed
......@@ -2,5 +2,5 @@ apiVersion: v2
name: mastodon
description: Helm Chart for mastodon
type: application
version: 0.3.1
version: 0.3.2
appVersion: "v4.0"
......@@ -31,16 +31,7 @@ spec:
- name: data
{{- .Values.volumes.data | nindent 10 }}
- name: tmp
emptyDir:
medium: Memory
initContainers:
- name: clear-tmp
image: alpine:latest
imagePullPolicy: Always
command:
- rm
- -f
- /opt/mastodon/tmp/pids/server.pid
emptyDir: {}
containers:
- name: {{ .Chart.Name }}
securityContext:
......@@ -48,12 +39,9 @@ spec:
image: "{{ .Values.web.repository }}:{{ .Values.web.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.web.pullPolicy }}
command:
- "bundle"
- "exec"
- "rails"
- "s"
- "-p"
- "3000"
- "sh"
- "-c"
- "rm -f /mastodon/tmp/pids/server.pid; exec bundle exec rails s -p 3000"
envFrom:
- secretRef:
name: {{ include "mastodon-helm.fullname" . }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment