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

feat: Update seafile chart

parent 557522f4
No related branches found
No related tags found
No related merge requests found
Pipeline #2925 passed
......@@ -2,5 +2,5 @@ apiVersion: v2
name: seafile
description: Helm Chart for seafile
type: application
version: 0.1.0
appVersion: "66c35794"
version: 0.1.5
appVersion: "4d64355e"
......@@ -44,7 +44,7 @@ spec:
- "/bin/sh"
- "-c"
args:
- "rsync -avH /source/seahub/media/avatars/ /media"
- "cp -r /source/seahub/media/avatars/* /media"
volumeMounts:
- mountPath: "/media"
name: seahub
......@@ -52,7 +52,7 @@ spec:
- name: seafile
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:seafile-{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:server-{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: seafhttp
......@@ -86,16 +86,13 @@ spec:
containerPort: 8000
protocol: TCP
startupProbe:
httpGet:
path: /
tcpSocket:
port: seahub
livenessProbe:
httpGet:
path: /
tcpSocket:
port: seahub
readinessProbe:
httpGet:
path: /
tcpSocket:
port: seahub
resources:
{{- toYaml .Values.resources | nindent 12 }}
......
......@@ -5,20 +5,21 @@ metadata:
labels:
{{- include "seafile-helm.labels" . | nindent 4 }}
annotations:
{{- .Values.ingress.annotations | toYaml | nindent 4 }}
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: "{{ .Values.ingress.host }}"
http:
paths:
- path: "{{ .Values.ingress.seahub_path }}"
- path: "{{ .Values.ingress.seahub_path }}(.*)"
backend:
service:
name: {{ include "seafile-helm.fullname" . }}
port:
name: seahub
pathType: Prefix
- path: "{{ .Values.ingress.seafhttp_path }}"
- path: "{{ .Values.ingress.seafhttp_path }}/(.*)"
backend:
service:
name: {{ include "seafile-helm.fullname" . }}
......
......@@ -5,7 +5,7 @@ metadata:
labels:
{{- include "seafile-helm.labels" . | nindent 4 }}
stringData:
ccnet.ini: |-
ccnet.conf: |-
[Database]
ENGINE = {{ .Values.ccnet.database.backend }}
HOST = {{ .Values.ccnet.database.hostname }}
......@@ -16,7 +16,7 @@ stringData:
CREATE_TABLES = {{ .Values.ccnet.create_tables }}
[General]
SERVICE_URL = {{ .Values.ingress.external_schema }}://{{ .Values.ingress.host }}{{ .Values.ingress.path }}
SERVICE_URL = {{ .Values.ingress.external_schema }}://{{ .Values.ingress.host }}{{ .Values.ingress.seahub_path }}
[Client]
PORT = 13419
......@@ -27,7 +27,7 @@ stringData:
daemon = True
workers = 5
bind = "127.0.0.1:8000"
bind = "0.0.0.0:8000"
pids_dir = '/tmp'
pidfile = os.path.join(pids_dir, 'seahub.pid')
......@@ -47,10 +47,25 @@ stringData:
db_name = {{ .Values.seafile.database.name }}
create_tables = {{ .Values.seafile.create_tables }}
seahub_settings.py: |-
SERVICE_URL = '{{ .Values.ingress.external_schema }}://{{ .Values.ingress.host }}{{ .Values.ingress.seahub_path }}'
FILE_SERVER_ROOT = '{{ .Values.ingress.external_schema }}://{{ .Values.ingress.host }}{{ .Values.ingress.seafhttp_path }}'
SECRET_KEY = "{{ .Values.cookie_secret }}"
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'root': {
'handlers': ['console'],
'level': '{{ .Values.seahub.logLevel }}',
},
}
DATABASES = {
'default': {
'ENGINE': '{{ .Values.seahub.database.backend }}',
......
......@@ -40,6 +40,7 @@ seafile:
emptyDir: {}
seahub:
logLevel: "INFO"
database:
backend: "django.db.backends.postgresql"
hostname: "example.tld"
......
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