feat: Add RomM
This commit is contained in:
parent
50a206c943
commit
2a289d40b1
8 changed files with 266 additions and 0 deletions
83
k8s-wheatley/romm/deployments.yaml
Normal file
83
k8s-wheatley/romm/deployments.yaml
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
---
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue