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

feat: Update readme

parent 7bedc437
No related branches found
No related tags found
No related merge requests found
...@@ -18,24 +18,18 @@ Volume Mounts: ...@@ -18,24 +18,18 @@ Volume Mounts:
Empty Directory Empty Directory
* /haiwen/logs * /tmp
* /haiwen/pids
Persistent Volume Persistent Volume
* /haiwen/conf * /conf
* /haiwen/ccnet * /data
* /haiwen/seafile-data
* /haiwen/seahub-data
Configuration Files Configuration Files
* /haiwen/ccnet/seafile.ini * /conf/ccnet.conf
* /haiwen/conf/ccnet.conf * /conf/seafile.conf
* /haiwen/conf/seafdav.conf * /conf/seahub_settings.py
* /haiwen/conf/seafile.conf
* /haiwen/conf/seahub_settings.py
* /haiwen/ccnet/mykey.peer
For kubernetes, the config would look like this: For kubernetes, the config would look like this:
...@@ -49,15 +43,45 @@ metadata: ...@@ -49,15 +43,45 @@ metadata:
app: seafile app: seafile
data: data:
ccnet.conf: |- ccnet.conf: |-
# Your data here [General]
seafdav.conf: |- SERVICE_URL = http://my.domain.tld
# Your data here
[Database]
ENGINE = pgsql
HOST = database
PORT = 5432
USER = seafile
PASSWD = seafile
DB = ccnet
CREATE_TABLES = true
[Client]
PORT = 13419
UNIX_SOCKET = /tmp/seafile.sock
seafile.conf: |- seafile.conf: |-
# Your data here [fileserver]
port = 8082
[database]
type = pgsql
host = database
port = 5432
user = seafile
password = seafile
db_name = seafile
create_tables = true
seahub_settings.py: |- seahub_settings.py: |-
# Your data here FILE_SERVER_ROOT = 'http://my.domain.tld/seafhttp'
seafile.ini: |- DATABASES = {
# Your data here 'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'seahub',
'USER': 'seafile',
'PASSWORD': 'seafile',
'HOST': 'database',
'PORT': '5432',
}
}
``` ```
```yaml ```yaml
...@@ -70,7 +94,9 @@ metadata: ...@@ -70,7 +94,9 @@ metadata:
app: seafile app: seafile
data: data:
mykey.peer: |- mykey.peer: |-
-----BEGIN RSA PRIVATE KEY-----
# Your data here # Your data here
-----END RSA PRIVATE KEY-----
``` ```
```yaml ```yaml
...@@ -92,7 +118,7 @@ spec: ...@@ -92,7 +118,7 @@ spec:
```yaml ```yaml
kind: Deployment kind: Deployment
apiVersion: extensions/v1beta1 apiVersion: apps/v1
metadata: metadata:
name: seafile name: seafile
namespace: default namespace: default
...@@ -119,54 +145,40 @@ spec: ...@@ -119,54 +145,40 @@ spec:
- name: key - name: key
secret: secret:
secretName: seafile-key secretName: seafile-key
- name: logs - name: tmp
emptyDir: {}
- name: pids
emptyDir: {} emptyDir: {}
containers: containers:
- name: seafile - name: server
image: k8r.eu/justjanne/seafile:latest image: k8r.eu/justjanne/seafile:server
ports: ports:
- name: seahub
containerPort: 8000
protocol: TCP
- name: seafhttp - name: seafhttp
containerPort: 8082 containerPort: 8082
protocol: TCP protocol: TCP
volumeMounts: volumeMounts:
- name: logs - name: tmp
mountPath: /haiwen/logs mountPath: /tmp
- name: pids
mountPath: /haiwen/pids
- name: data
mountPath: /haiwen/seafile-data
subPath: data
- name: data - name: data
mountPath: /haiwen/conf mountPath: /data
subPath: config
- name: data
mountPath: /haiwen/ccnet
subPath: ccnet
- name: config - name: config
mountPath: /haiwen/ccnet/seafile.ini mountPath: /conf
subPath: seafile.ini - name: key
mountPath: /conf/mykey.peer
subPath: mykey.peer
- name: seahub
image: k8r.eu/justjanne/seafile:seahub
ports:
- name: seahub
containerPort: 8000
protocol: TCP
volumeMounts:
- name: tmp
mountPath: /tmp
- name: data - name: data
mountPath: /haiwen/seahub-data mountPath: /data
subPath: seahub-data
- name: config - name: config
mountPath: /haiwen/conf/ccnet.conf mountPath: /conf
subPath: ccnet.conf
- name: config
mountPath: /haiwen/conf/seafdav.conf
subPath: seafdav.conf
- name: config
mountPath: /haiwen/conf/seafile.conf
subPath: seafile.conf
- name: config
mountPath: /haiwen/conf/seahub_settings.py
subPath: seahub_settings.py
- name: key - name: key
mountPath: /haiwen/ccnet/mykey.peer mountPath: /conf/mykey.peer
subPath: mykey.peer subPath: mykey.peer
``` ```
...@@ -183,40 +195,46 @@ spec: ...@@ -183,40 +195,46 @@ spec:
- name: seahub - name: seahub
protocol: TCP protocol: TCP
port: 8000 port: 8000
targetPort: 8000 targetPort: seahub
- name: seafhttp - name: seafhttp
protocol: TCP protocol: TCP
port: 8082 port: 8082
targetPort: 8082 targetPort: seafhttp
selector: selector:
app: seafile app: seafile
type: ClusterIP type: ClusterIP
``` ```
```yaml ```yaml
apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
apiVersion: networking.k8s.io/v1
metadata: metadata:
annotations: annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
ingress.kubernetes.io/proxy-body-size: "0" ingress.kubernetes.io/proxy-body-size: "0"
name: seafile name: seafile
namespace: default namespace: default
spec: spec:
ingressClassName: "nginx"
rules: rules:
- host: cloud.example.com - host: cloud.example.com
http: http:
paths: paths:
- backend: - path: "/"
serviceName: seafile pathType: "Prefix"
servicePort: 8000 backend:
path: / service:
- backend: name: seafile
serviceName: seafile port:
servicePort: 8082 name: seahub
path: /seafhttp - path: "/seafhttp"
pathType: "Prefix"
backend:
service:
name: seafile
port:
name: seafhttp
tls: tls:
- hosts: - hosts:
- cloud.example.com - cloud.example.com
secretName: seafile-tls secretName: seafile-tls
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment