Skip to content

Commit

Permalink
feat: files watch /Home/Documents for search3 (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 authored Aug 5, 2024
1 parent 3448599 commit f2333a8
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 9 deletions.
20 changes: 11 additions & 9 deletions apps/files/config/cluster/deploy/files_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
- containerPort: 8080
env:
- name: FILES_SERVER_TAG
value: 'beclab/files-server:v0.2.29'
value: 'beclab/files-server:v0.2.30'
- name: NAMESPACE
valueFrom:
fieldRef:
Expand All @@ -78,7 +78,7 @@ spec:
mountPath: /appdata

- name: files
image: beclab/files-server:v0.2.29
image: beclab/files-server:v0.2.30
imagePullPolicy: IfNotPresent
volumeMounts:
- name: fb-data
Expand All @@ -98,7 +98,7 @@ spec:
- name: ES_ENABLED
value: 'False'
- name: WATCHER_ENABLED
value: 'False'
value: 'True'
- name: KNOWLEDGE_BASE_ENABLED
value: 'False'
# - name: BFL_NAME
Expand All @@ -120,11 +120,13 @@ spec:
# - name: ZINC_INDEX
# value: os-system_zinc-files
- name: WATCH_DIR
value: /data/Home/Documents
value: /Home/Documents
- name: FS_TYPE
value: {{ .Values.fs_type }}
- name: PATH_PREFIX
value: /data/Home
value: ''
- name: ROOT_PREFIX
value: /data
- name: REDIS_HOST
value: redis-cluster-proxy.os-system
- name: REDIS_PORT
Expand All @@ -148,8 +150,8 @@ spec:
fieldPath: metadata.namespace
- name: CONTAINER_NAME
value: files
# - name: NOTIFY_SERVER
# value: fsnotify-svc.os-system:5079
- name: NOTIFY_SERVER
value: fsnotify-svc.os-system:5079
command:
- /filebrowser
- --noauth
Expand Down Expand Up @@ -244,7 +246,7 @@ spec:
spec:
containers:
- name: files
image: beclab/files-server:v0.2.29
image: beclab/files-server:v0.2.30
imagePullPolicy: IfNotPresent
volumeMounts:
- name: fb-data
Expand Down Expand Up @@ -303,7 +305,7 @@ metadata:
type: Opaque
data:
password: {{ $password }}
redis_password: {{ $files_redis_password }}
files_redis_password: {{ $files_redis_password }}

---
apiVersion: apr.bytetrade.io/v1alpha1
Expand Down
49 changes: 49 additions & 0 deletions libs/fs-lib/config/cluster/deploy/fsnotify_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jfsnotify-proxy
namespace: os-system
labels:
app: jfsnotify-proxy
applications.app.bytetrade.io/author: bytetrade.io
annotations:
applications.app.bytetrade.io/version: '0.0.1'
spec:
replicas: 1
selector:
matchLabels:
app: jfsnotify-proxy
template:
metadata:
labels:
app: jfsnotify-proxy
spec:
serviceAccountName: bytetrade-sys-ops
serviceAccount: bytetrade-sys-ops
containers:
- name: proxy
image: beclab/fsnotify-proxy:0.1.5
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5079
env:
- name: REDIS_PASSWORD
value: {{ .Values.kubesphere.redis_password }}

---
apiVersion: v1
kind: Service
metadata:
name: fsnotify-svc
namespace: os-system
spec:
type: ClusterIP
selector:
app: jfsnotify-proxy
ports:
- protocol: TCP
port: 5079
targetPort: 5079

0 comments on commit f2333a8

Please sign in to comment.