seafile-containerized/k8s/seafile-server-deployment.yaml

72 lines
2 KiB
YAML
Raw Normal View History

2023-12-05 13:20:40 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.service.expose.storage-class-name: default
kompose.service.healthcheck.readiness.interval: 10s
kompose.service.healthcheck.readiness.tcp_port: "8082"
kompose.service.healthcheck.readiness.timeout: 10s
2023-12-05 13:20:40 +00:00
kompose.volume.size: 1Gi
creationTimestamp: null
labels:
io.kompose.service: seafile-server
name: seafile-server
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: seafile-server
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.service.expose.storage-class-name: default
kompose.service.healthcheck.readiness.interval: 10s
kompose.service.healthcheck.readiness.tcp_port: "8082"
kompose.service.healthcheck.readiness.timeout: 10s
2023-12-05 13:20:40 +00:00
kompose.volume.size: 1Gi
creationTimestamp: null
labels:
io.kompose.network/compose-seafile-net: "true"
io.kompose.service: seafile-server
spec:
containers:
- env:
- name: DB_HOST
value: db
- name: DB_ROOT_PASSWD
value: db_dev
- name: HTTPS
value: "true"
- name: SEAFILE_URL
value: seafile.mydomain.com
- name: TIME_ZONE
value: Europe/Berlin
image: ggogel/seafile-server:11.0.8
2023-12-05 13:20:40 +00:00
name: seafile-server
ports:
- containerPort: 8001
protocol: TCP
- containerPort: 8080
protocol: TCP
- containerPort: 8082
protocol: TCP
- containerPort: 8083
protocol: TCP
readinessProbe:
periodSeconds: 10
tcpSocket:
port: 8082
timeoutSeconds: 10
2023-12-05 13:20:40 +00:00
resources: {}
volumeMounts:
- mountPath: /shared
name: seafile-data
restartPolicy: Always
volumes:
- name: seafile-data
persistentVolumeClaim:
claimName: seafile-data
status: {}