diff --git a/mastodon/Chart.yaml b/mastodon/Chart.yaml index ebd04f1a510fe5e09a9820e271b99a6b84636bfd..49e701a77db1b45829648bc8927de18fb503654b 100644 --- a/mastodon/Chart.yaml +++ b/mastodon/Chart.yaml @@ -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" diff --git a/mastodon/templates/deployment-web.yaml b/mastodon/templates/deployment-web.yaml index b77aba75dc19aaf1aa2da0313bdbd86c40661390..5d22d4f7eb48e2ab26e1e2b3788f0ece8db67c9f 100644 --- a/mastodon/templates/deployment-web.yaml +++ b/mastodon/templates/deployment-web.yaml @@ -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" . }}