apiVersion: apps/v1 kind: Deployment metadata: name: bookstack namespace: bookstack labels: app: bookstack spec: # Keep replicas at 1 unless you move sessions/cache off local filesystem # (see README - BookStack's HA docs flag this as a real constraint). replicas: 1 selector: matchLabels: app: bookstack template: metadata: labels: app: bookstack spec: containers: - name: bookstack image: lscr.io/linuxserver/bookstack:latest ports: - containerPort: 80 name: http envFrom: - configMapRef: name: bookstack-config - secretRef: name: bookstack-secrets volumeMounts: - name: config mountPath: /config readinessProbe: httpGet: path: /status port: 80 initialDelaySeconds: 20 periodSeconds: 10 livenessProbe: httpGet: path: /status port: 80 initialDelaySeconds: 30 periodSeconds: 20 resources: requests: cpu: 100m memory: 256Mi limits: cpu: 500m memory: 512Mi volumes: - name: config persistentVolumeClaim: claimName: bookstack-config-pvc