seafile-containerized/k8s/db-deployment.yaml
2024-02-13 00:34:51 +00:00

51 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.service.expose.storage-class-name: default
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.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
image: mariadb:10.11.7
name: db
ports:
- containerPort: 3306
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/lib/mysql
name: seafile-mariadb
restartPolicy: Always
volumes:
- name: seafile-mariadb
persistentVolumeClaim:
claimName: seafile-mariadb
status: {}