|
|
|
@ -31,8 +31,10 @@ spec:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
|
|
|
|
{{- with .Values.podSecurityContext }}
|
|
|
|
|
securityContext:
|
|
|
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
|
|
|
|
volumes:
|
|
|
|
|
- name: assets
|
|
|
|
@ -44,8 +46,10 @@ spec:
|
|
|
|
|
{{- end }}
|
|
|
|
|
containers:
|
|
|
|
|
- name: {{ .Chart.Name }}
|
|
|
|
|
{{- with .Values.securityContext }}
|
|
|
|
|
securityContext:
|
|
|
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
|
|
|
{{- toYaml . | nindent 12 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
|
command:
|
|
|
|
@ -83,7 +87,7 @@ spec:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: {{ .Values.mastodon.s3.existingSecret }}
|
|
|
|
|
key: AWS_ACCESS_KEY_ID
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: assets
|
|
|
|
@ -108,8 +112,10 @@ spec:
|
|
|
|
|
port: http
|
|
|
|
|
failureThreshold: 30
|
|
|
|
|
periodSeconds: 5
|
|
|
|
|
{{- with .Values.resources }}
|
|
|
|
|
resources:
|
|
|
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
|
|
|
{{- toYaml . | nindent 12 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- with .Values.nodeSelector }}
|
|
|
|
|
nodeSelector:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|