apiVersion: apps/v1 kind: Deployment metadata: name: bookstack-db namespace: bookstack spec: selector: matchLabels: app: bookstack-db template: metadata: labels: app: bookstack-db spec: containers: - name: bookstack-db image: lscr.io/linuxserver/mariadb envFrom: - configMapRef: name: bookstack-db-config - secretRef: name: bookstack-db-secret ports: - containerPort: 3306 volumeMounts: - mountPath: /config name: config volumes: - name: config persistentVolumeClaim: claimName: bookstack-db-config