Skip to content

Commit

Permalink
Deploy romm
Browse files Browse the repository at this point in the history
Deploy romm to manage game library.
  • Loading branch information
mchill committed Oct 17, 2024
1 parent 7a7dfcf commit 34375f4
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s/applications/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ kubectl kustomize prowlarr && echo "---"
kubectl kustomize qbittorrent && echo "---"
kubectl kustomize radarr && echo "---"
kubectl kustomize radarr-uhd && echo "---"
kubectl kustomize romm && echo "---"
kubectl kustomize sonarr && echo "---"
kubectl kustomize sonarr-uhd && echo "---"
kubectl kustomize static && echo "---"
Expand Down
65 changes: 65 additions & 0 deletions k8s/applications/romm/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: romm
spec:
replicas: 1
strategy:
type: Recreate
template:
spec:
securityContext:
fsGroup: 1000
containers:
- name: romm
image: rommapp/romm:3.5.1
ports:
- name: ingress
containerPort: 8080
env:
- name: TZ
value: America/New_York
- name: DB_NAME
value: romm
- name: DB_USER
value: romm-user
envFrom:
- secretRef:
name: qbittorrent
volumeMounts:
- name: romm
mountPath: /romm/config
subPath: config
- name: romm
mountPath: /redis-data
subPath: redis
- name: media
mountPath: /romm/library
subPath: libraries/games
- name: media
mountPath: /romm/assets
subPath: libraries/games/assets
- name: media
mountPath: /romm/resources
subPath: libraries/games/resources
- name: db
image: mariadb:11.5.2
env:
- name: MYSQL_DATABASE
value: romm
- name: MYSQL_USER
value: romm-user
envFrom:
- secretRef:
name: qbittorrent
volumeMounts:
- name: romm
mountPath: /var/lib/mysql
subPath: mysql
volumes:
- name: romm
persistentVolumeClaim:
claimName: romm
- name: media
persistentVolumeClaim:
claimName: media
21 changes: 21 additions & 0 deletions k8s/applications/romm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace: server
commonLabels:
app: romm
subdomain: romm
resources:
- ../../overlays/ingress
- ../../overlays/persistence
- deployment.yaml
- sealed-secret.yaml
patches:
- target:
kind: IngressRoute
patch: |-
- op: add
path: /spec/routes/-
value:
match: Host("$(SUBDOMAIN).mchill.io") && PathPrefix("/api")
kind: Rule
services:
- name: $(APP)
port: 80
22 changes: 22 additions & 0 deletions k8s/applications/romm/sealed-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: romm
namespace: server
spec:
encryptedData:
DB_PASSWD: AgBtGDtM2gmwYCW0qHSdUZ+XcM1/d5lvwVwBVegTFMXiQ92QSPHfPAwwAy2UTGolWvBEL0cjyUSDWZhFERRdy6FakQyVwm0OH2Yq7pNdD3apUM47Zc8rmmPru6YgP3H2PEcHimmmAd9lxDDFniefc/U6m8ROUvwT0qgFM2u/xzB69Zzl+vYI+N0nUCgfUoa3zreYkZZkR9czk5wPtNDaWxI8JKy9wpusv9fQ91zk2AcJhVrgxl3tCFqcYXuDITMU8SjwgNha81SIWzqWZ2men0maJTpJ62zGpDxmsmUWGJfvK8M/MNISdMipcqWtzrU3I1jDppQRECEfR5O3N/QzFgO1bfSM5up6roUt/hosgIYeZLMkDoZKwnRpgRsOZkOySribIUvA3ijEOHp2FeIjNy+MPx7aUZtzuXFsRRc+ToLaH/2qLUYGhVQFWEhNnfl4jt1B8QTQf70m0PvVGYzsmbFfwTup93wf+gocKK10I34mq1APjXlJ+wyWMBNSTmKC47lKj00p5aC7/r5Xd+sf2gXWsiz8qbTTzNjrk/qQ0SV3PnVkqyWdBYxjmwLT2sGFYhYgomP/a35ICkqV6HO2mT+JX+1vObGBr2Zv4ev/P1//LmPJv4UrXHHz0D4hyMwn0HkUI74g960Y/t5FmiJT//Bj30hiLxPWA6HT8O2jvtUGKMLhN3cuOODU7cS6uoMPKYkmY982dElhpwNsuVW0wFs6ipQZeHJOlElS0sMU8chS1Q==
IGDB_CLIENT_ID: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QPdYME2X23BRb563Uk0N8vCK2qdZVbxP68RBm77kVo3Yy83xxUNmoLwkcdVHGd4rIN/OzT8YXjrbrHBzWVroMaQqgl+FshpnwS2oiA+G0K11qRiikQy0mJs6nPXPaV2aVVfwgWiZi/f63KgY3soaLtW0JbXpKaBr5ybHzVHN7Q3spYIQIC7H9CKimHCuziaCa3BrYhsmnFXie61mHMnzG7ACT4+Y4NVvw0/OJWzAJIfsGdDJkcb/AKihEoEivOsvbl32AL+eQf9F1PIbnfKwo1ZNZ5YQYVVED17lRLMPuUVDlXvhkWa+4nrbG9gIfpLHQ4+89n2NSxwjup8ghZUQw==
template:
metadata:
creationTimestamp: null
name: romm
namespace: server
type: Opaque

0 comments on commit 34375f4

Please sign in to comment.