2023-12-05 13:20:40 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kompose.service.expose.storage-class-name: default
|
2024-02-14 10:37:13 +00:00
|
|
|
kompose.service.healthcheck.readiness.interval: 10s
|
|
|
|
kompose.service.healthcheck.readiness.retries: "3"
|
|
|
|
kompose.service.healthcheck.readiness.test: healthcheck.sh --su-mysql --connect --innodb_initialized
|
|
|
|
kompose.service.healthcheck.readiness.timeout: 10s
|
2023-12-05 13:20:40 +00:00
|
|
|
kompose.volume.size: 1Gi
|
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
io.kompose.service: db
|
|
|
|
name: db
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: db
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kompose.service.expose.storage-class-name: default
|
2024-02-14 10:37:13 +00:00
|
|
|
kompose.service.healthcheck.readiness.interval: 10s
|
|
|
|
kompose.service.healthcheck.readiness.retries: "3"
|
|
|
|
kompose.service.healthcheck.readiness.test: healthcheck.sh --su-mysql --connect --innodb_initialized
|
|
|
|
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: db
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: MARIADB_AUTO_UPGRADE
|
|
|
|
value: "true"
|
|
|
|
- name: MYSQL_LOG_CONSOLE
|
|
|
|
value: "true"
|
|
|
|
- name: MYSQL_ROOT_PASSWORD
|
|
|
|
value: db_dev
|
2024-08-12 20:21:48 +00:00
|
|
|
image: mariadb:10.11.9
|
2023-12-05 13:20:40 +00:00
|
|
|
name: db
|
|
|
|
ports:
|
|
|
|
- containerPort: 3306
|
|
|
|
protocol: TCP
|
2024-02-14 10:37:13 +00:00
|
|
|
readinessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- healthcheck.sh
|
|
|
|
- --su-mysql
|
|
|
|
- --connect
|
|
|
|
- --innodb_initialized
|
|
|
|
failureThreshold: 3
|
|
|
|
periodSeconds: 10
|
|
|
|
timeoutSeconds: 10
|
2023-12-05 13:20:40 +00:00
|
|
|
resources: {}
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/lib/mysql
|
|
|
|
name: seafile-mariadb
|
|
|
|
restartPolicy: Always
|
|
|
|
volumes:
|
|
|
|
- name: seafile-mariadb
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: seafile-mariadb
|
|
|
|
status: {}
|