seafile-containerized/k8s/seahub-deployment.yaml

53 lines
1.4 KiB
YAML
Raw Normal View History

2023-12-05 13:20:40 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
io.kompose.service: seahub
name: seahub
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: seahub
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
io.kompose.network/compose-seafile-net: "true"
io.kompose.service: seahub
spec:
containers:
- env:
- name: SEAFILE_ADMIN_EMAIL
value: me@example.com
- name: SEAFILE_ADMIN_PASSWORD
value: asecret
image: ggogel/seahub:11.0.7
2023-12-05 13:20:40 +00:00
name: seahub
ports:
- containerPort: 8000
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /shared
name: seafile-data
- mountPath: /shared/seafile/seahub-data/avatars
name: seahub-avatars
- mountPath: /shared/seafile/seahub-data/custom
name: seahub-custom
restartPolicy: Always
volumes:
- name: seafile-data
persistentVolumeClaim:
claimName: seafile-data
- name: seahub-avatars
persistentVolumeClaim:
claimName: seahub-avatars
- name: seahub-custom
persistentVolumeClaim:
claimName: seahub-custom
status: {}