上传文件至 'worker'

This commit is contained in:
diandian 2023-09-05 16:54:30 +08:00
parent c96715fc4c
commit 9b674a38f9
4 changed files with 214 additions and 0 deletions

38
worker/deployment.yaml Normal file
View File

@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: tomcat-beaut
labels:
app: tomcat-beaut
spec:
replicas: 1
selector:
matchLabels:
app: tomcat-beaut
template:
metadata:
labels:
app: tomcat-beaut
spec:
containers:
- name: tomcat-beaut
image: 10.9.12.201/xingdian/beaut:20230725-113213
ports:
- containerPort: 8080
env:
- name: TZ
value: Asia/Shanghai
---
apiVersion: v1
kind: Service
metadata:
name: tomcat-service
spec:
selector:
app: tomcat-beaut
type: NodePort
ports:
- port: 8080
targetPort: 8080
nodePort: 30014

56
worker/minio-dev.yaml Normal file
View File

@ -0,0 +1,56 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio
labels:
app: minio
spec:
replicas: 1
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- name: minio
image: quay.io/minio/minio:latest
command:
- /bin/bash
- -c
args:
- minio server /data --address "0.0.0.0:9000" --console-address :9090
ports:
- containerPort: 9090
- containerPort: 9000
env:
- name: TZ
value: Asia/Shanghai
volumeMounts:
- mountPath: /data
name: localvolume
volumes:
- name: localvolume
nfs:
path: /data/minio
server: 10.9.12.250
---
apiVersion: v1
kind: Service
metadata:
name: minio-service
spec:
selector:
app: minio
type: NodePort
ports:
- name: http
port: 9090
targetPort: 9090
nodePort: 30130
- name: https
port: 9000
targetPort: 9000
nodePort: 30131

63
worker/onlyoffice.yaml Normal file
View File

@ -0,0 +1,63 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: onlyoffice
labels:
app: onlyoffice
spec:
replicas: 1
selector:
matchLabels:
app: onlyoffice
template:
metadata:
labels:
app: onlyoffice
spec:
containers:
- name: onlyoffice
image: onlyoffice/documentserver:7.1.1
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
volumeMounts:
- mountPath: /var/log/onlyoffice
name: onlyofficelog
- mountPath: /var/www/onlyoffice/Data
name: onlyofficedata
- mountPath: /var/lib/onlyoffice
name: onlyofficelib
- mountPath: /var/lib/postgresql
name: onlyofficesql
volumes:
- name: onlyofficelog
nfs:
path: /data/onlyoffice/log
server: 10.9.12.250
- name: onlyofficedata
nfs:
path: /data/onlyoffice/data
server: 10.9.12.250
- name: onlyofficelib
nfs:
path: /data/onlyoffice/lib
server: 10.9.12.250
- name: onlyofficesql
nfs:
path: /data/onlyoffice/sql
server: 10.9.12.250
---
apiVersion: v1
kind: Service
metadata:
name: onlyoffice-service
spec:
selector:
app: onlyoffice
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 30121

57
worker/zfile.yaml Normal file
View File

@ -0,0 +1,57 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: zfile
labels:
app: zfile
spec:
replicas: 1
selector:
matchLabels:
app: zfile
template:
metadata:
labels:
app: zfile
spec:
containers:
- name: zfile
image: 10.9.12.201/xingdian/zfile:v1
ports:
- containerPort: 8080
env:
- name: TZ
value: Asia/Shanghai
volumeMounts:
- mountPath: /root/.zfile-v4/db
name: zfile-db
- mountPath: /root/.zfile-v4/logs
name: zfile-logs
- mountPath: /data/file
name: file
volumes:
- name: zfile-db
nfs:
path: /data/zfile/db
server: 10.9.12.250
- name: zfile-logs
nfs:
path: /data/zfile/logs
server: 10.9.12.250
- name: file
nfs:
path: /data/zfile/file
server: 10.9.12.250
---
apiVersion: v1
kind: Service
metadata:
name: zfile-service
spec:
selector:
app: zfile
type: NodePort
ports:
- port: 8080
targetPort: 8080
nodePort: 30120