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.6 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: {}