seafile-containerized/k8s/db-deployment.yaml

69 lines
2.1 KiB
YAML
Raw Permalink 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.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
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-05-24 04:08:34 +00:00
image: mariadb:10.11.8
2023-12-05 13:20:40 +00:00
name: db
ports:
- containerPort: 3306
protocol: TCP
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: {}