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