Compare commits
6 Commits
module-osn
...
feat/files
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a58ab327a3 | ||
|
|
2f2a8febc6 | ||
|
|
a54a63d36c | ||
|
|
478dac8e87 | ||
|
|
8188aff5a3 | ||
|
|
1ea1af8609 |
@@ -351,7 +351,7 @@ spec:
|
|||||||
- name: PGDB
|
- name: PGDB
|
||||||
value: user_space_{{ .Values.bfl.username }}_cloud_drive_integration
|
value: user_space_{{ .Values.bfl.username }}_cloud_drive_integration
|
||||||
- name: system-frontend-init
|
- name: system-frontend-init
|
||||||
image: beclab/system-frontend:v1.3.95
|
image: beclab/system-frontend:v1.3.96
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ spec:
|
|||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: api
|
- name: api
|
||||||
image: beclab/bfl:v0.4.16
|
image: beclab/bfl:v0.4.17
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
name: files
|
name: files
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
@@ -34,7 +34,6 @@ metadata:
|
|||||||
app: files
|
app: files
|
||||||
applications.app.bytetrade.io/author: bytetrade.io
|
applications.app.bytetrade.io/author: bytetrade.io
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: files
|
app: files
|
||||||
@@ -68,6 +67,8 @@ spec:
|
|||||||
mountPath: /appdata
|
mountPath: /appdata
|
||||||
- name: upload-appdata
|
- name: upload-appdata
|
||||||
mountPath: /appcache
|
mountPath: /appcache
|
||||||
|
- mountPath: /data/appcache
|
||||||
|
name: upload-appdata
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -96,21 +97,6 @@ spec:
|
|||||||
value: os_framework_files
|
value: os_framework_files
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: gateway
|
|
||||||
image: beclab/appdata-gateway:0.1.22
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
securityContext:
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
runAsUser: 0
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
env:
|
|
||||||
- name: FILES_SERVER_TAG
|
|
||||||
value: 'beclab/files-server:v0.2.78'
|
|
||||||
- name: NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
|
|
||||||
- name: media-server
|
- name: media-server
|
||||||
env:
|
env:
|
||||||
@@ -120,7 +106,7 @@ spec:
|
|||||||
value: /appdata
|
value: /appdata
|
||||||
- name: SEAFILE_SERVICE
|
- name: SEAFILE_SERVICE
|
||||||
value: seafile
|
value: seafile
|
||||||
image: beclab/media-server:v0.1.10
|
image: beclab/media-server:v0.1.11
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
@@ -132,7 +118,7 @@ spec:
|
|||||||
- name: userspace-dir
|
- name: userspace-dir
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
- name: user-appdata-dir
|
- name: user-appdata-dir
|
||||||
mountPath: /appdata
|
mountPath: /appcache
|
||||||
{{ if .Values.sharedlib }}
|
{{ if .Values.sharedlib }}
|
||||||
- name: shared-lib
|
- name: shared-lib
|
||||||
mountPath: /data/External
|
mountPath: /data/External
|
||||||
@@ -140,25 +126,21 @@ spec:
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
- name: files
|
- name: files
|
||||||
image: beclab/files-server:v0.2.78
|
image: beclab/files-server:v0.2.80
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- mountPath: /data/appcache/
|
||||||
|
name: upload-appdata
|
||||||
- name: fb-data
|
- name: fb-data
|
||||||
mountPath: /appdata
|
mountPath: /appdata
|
||||||
- name: userspace-dir
|
- name: userspace-dir
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
# mountPath: /data/Home
|
|
||||||
# - name: userspace-app-dir
|
|
||||||
# mountPath: /data/Application
|
|
||||||
# - name: watch-dir
|
|
||||||
# mountPath: /data/Home/Documents
|
|
||||||
- name: upload-appdata
|
- name: upload-appdata
|
||||||
mountPath: /appcache/
|
mountPath: /appcache/
|
||||||
|
|
||||||
{{ if .Values.sharedlib }}
|
{{ if .Values.sharedlib }}
|
||||||
- name: shared-lib
|
- name: shared-lib
|
||||||
mountPath: /data/External
|
mountPath: /data/External
|
||||||
@@ -172,6 +154,11 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: status.hostIP
|
fieldPath: status.hostIP
|
||||||
|
- name: NODE_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: spec.nodeName
|
||||||
- name: TERMINUSD_HOST
|
- name: TERMINUSD_HOST
|
||||||
value: $(NODE_IP):18088
|
value: $(NODE_IP):18088
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -265,6 +252,10 @@ spec:
|
|||||||
value: {{ $files_postgres_password | b64dec }}
|
value: {{ $files_postgres_password | b64dec }}
|
||||||
- name: PGDB1
|
- name: PGDB1
|
||||||
value: os_framework_files
|
value: os_framework_files
|
||||||
|
- name: UPLOAD_FILE_TYPE
|
||||||
|
value: '*'
|
||||||
|
- name: UPLOAD_LIMITED_SIZE
|
||||||
|
value: "118111600640"
|
||||||
- name: POD_NAME
|
- name: POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
@@ -280,6 +271,8 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /filebrowser
|
- /filebrowser
|
||||||
- --noauth
|
- --noauth
|
||||||
|
- -p
|
||||||
|
- "8080"
|
||||||
- name: uploader
|
- name: uploader
|
||||||
image: beclab/upload:v1.0.14
|
image: beclab/upload:v1.0.14
|
||||||
env:
|
env:
|
||||||
@@ -395,110 +388,6 @@ spec:
|
|||||||
port: 9090
|
port: 9090
|
||||||
targetPort: 9090
|
targetPort: 9090
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: DaemonSet
|
|
||||||
metadata:
|
|
||||||
name: appdata-backend
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
labels:
|
|
||||||
app: appdata-backend
|
|
||||||
annotations:
|
|
||||||
velero.io/exclude-from-backup: "true"
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: appdata-backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: appdata-backend
|
|
||||||
spec:
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
initContainers:
|
|
||||||
- name: init-data
|
|
||||||
image: busybox:1.28
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
runAsNonRoot: false
|
|
||||||
runAsUser: 0
|
|
||||||
volumeMounts:
|
|
||||||
- name: fb-data
|
|
||||||
mountPath: /appdata
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
chown -R 1000:1000 /appdata
|
|
||||||
- args:
|
|
||||||
- -it
|
|
||||||
- nats.os-platform:4222
|
|
||||||
image: owncloudci/wait-for:latest
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
name: check-nats
|
|
||||||
containers:
|
|
||||||
- name: files
|
|
||||||
image: beclab/files-server:v0.2.78
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
securityContext:
|
|
||||||
allowPrivilegeEscalation: true
|
|
||||||
runAsUser: 0
|
|
||||||
runAsNonRoot: false
|
|
||||||
volumeMounts:
|
|
||||||
- name: fb-data
|
|
||||||
mountPath: /appdata
|
|
||||||
- name: user-appdata-dir
|
|
||||||
mountPath: /data/AppData
|
|
||||||
ports:
|
|
||||||
- containerPort: 8110
|
|
||||||
env:
|
|
||||||
- name: ROOT_PREFIX
|
|
||||||
value: /data
|
|
||||||
# - name: FB_DATABASE
|
|
||||||
# value: /appdata/database/filebrowser.db
|
|
||||||
# - name: FB_CONFIG
|
|
||||||
# value: /appdata/config/settings.json
|
|
||||||
# - name: FB_ROOT
|
|
||||||
# value: /data
|
|
||||||
- name: OLARES_VERSION
|
|
||||||
value: '1.12'
|
|
||||||
- name: NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
command:
|
|
||||||
- /filebrowser
|
|
||||||
- --noauth
|
|
||||||
volumes:
|
|
||||||
- name: user-appdata-dir
|
|
||||||
hostPath:
|
|
||||||
type: Directory
|
|
||||||
path: '{{ .Values.rootPath }}/userdata/Cache'
|
|
||||||
- name: fb-data
|
|
||||||
hostPath:
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
path: '{{ .Values.rootPath }}/userdata/Cache/files-appdata'
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: appdata-backend-headless
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
labels:
|
|
||||||
app: appdata-backend
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: appdata-backend
|
|
||||||
clusterIP: None
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8110
|
|
||||||
targetPort: 8110
|
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
@@ -824,7 +713,7 @@ data:
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /upload {
|
location /upload {
|
||||||
proxy_pass http://127.0.0.1:40030;
|
proxy_pass http://127.0.0.1:8080;
|
||||||
# rewrite ^/server(.*)$ $1 break;
|
# rewrite ^/server(.*)$ $1 break;
|
||||||
|
|
||||||
# Add original-request-related headers
|
# Add original-request-related headers
|
||||||
|
|||||||
Reference in New Issue
Block a user