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

feat: add gc cronjob for seafile

parent 1a119877
No related branches found
No related tags found
No related merge requests found
Pipeline #2944 passed
......@@ -2,5 +2,5 @@ apiVersion: v2
name: seafile
description: Helm Chart for seafile
type: application
version: 0.1.5
version: 0.1.6
appVersion: "4d64355e"
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "seafile-helm.fullname" . }}
labels:
{{- include "seafile-helm.labels" . | nindent 4 }}
spec:
concurrencyPolicy: Forbid
jobTemplate:
metadata:
{{- with .Values.jobAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "seafile-helm.labels" . | nindent 8 }}
spec:
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 12 }}
{{- end }}
labels:
{{- include "seafile-helm.labels" . | nindent 12 }}
spec:
restartPolicy: OnFailure
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
volumes:
- name: seafile
{{- .Values.seafile.volume | nindent 14 }}
- name: config
secret:
secretName: {{ include "seafile-helm.fullname" . }}
- name: tmp
emptyDir: {}
containers:
- name: seafile
command:
- "seafserv-gc"
args:
- "-c"
- "/conf"
- "-d"
- "/data"
securityContext:
{{- toYaml .Values.securityContext | nindent 16 }}
image: "{{ .Values.image.repository }}:server-{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: seafhttp
containerPort: 8082
protocol: TCP
startupProbe:
tcpSocket:
port: seafhttp
livenessProbe:
tcpSocket:
port: seafhttp
readinessProbe:
tcpSocket:
port: seafhttp
resources:
{{- toYaml .Values.resources | nindent 16 }}
volumeMounts:
- mountPath: "/data"
name: seafile
- mountPath: "/conf"
name: config
- mountPath: "/tmp"
name: tmp
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
......@@ -89,6 +89,8 @@ resources:
cpu: 200m
memory: 500Mi
jobAnnotations: { }
podAnnotations: { }
podSecurityContext:
......
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