--- apiVersion: apps/v1 kind: StatefulSet metadata: name: romm labels: app: romm spec: replicas: 1 serviceName: romm selector: matchLabels: app: romm template: metadata: labels: app: romm spec: initContainers: - name: romm-db image: mariadb envFrom: - configMapRef: name: romm-db-envs - secretRef: name: romm-db-env-secrets volumeMounts: - mountPath: /var/lib/mysql name: romm-db-data restartPolicy: Always readinessProbe: exec: command: - sh - -c - "healthcheck.sh --connect --innodb_initialized" initialDelaySeconds: 5 periodSeconds: 3 timeoutSeconds: 2 failureThreshold: 3 livenessProbe: exec: command: - sh - -c - "healthcheck.sh --connect --innodb_initialized" initialDelaySeconds: 10 periodSeconds: 15 timeoutSeconds: 2 failureThreshold: 3 containers: - name: romm image: rommapp/romm imagePullPolicy: IfNotPresent ports: - containerPort: 8080 envFrom: - configMapRef: name: romm-envs - secretRef: name: romm-env-secrets volumeMounts: - mountPath: /romm name: romm-data - mountPath: /romm/library name: nfs-media-roms readOnly: true - mountPath: /romm/downloads name: nfs-media-downloads readOnly: true volumes: - name: romm-db-data persistentVolumeClaim: claimName: romm-db-storage - name: romm-data persistentVolumeClaim: claimName: romm-storage - name: nfs-media-roms persistentVolumeClaim: claimName: nfs-media-roms - name: nfs-media-downloads persistentVolumeClaim: claimName: nfs-media-downloads