generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a407b0b
commit f30de10
Showing
5 changed files
with
165 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
kubernetes/main/apps/default/jellyfin/app/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: &app jellyfin | ||
spec: | ||
interval: 2h | ||
chart: | ||
spec: | ||
chart: app-template | ||
version: 3.2.1 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bjw-s | ||
namespace: flux-system | ||
maxHistory: 2 | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
retries: 3 | ||
uninstall: | ||
keepHistory: false | ||
dependsOn: | ||
- name: longhorn | ||
namespace: longhorn-system | ||
- name: volsync | ||
namespace: volsync-system | ||
values: | ||
controllers: | ||
jellyfin: | ||
containers: | ||
app: | ||
image: | ||
repository: ghcr.io/jellyfin/jellyfin | ||
tag: 10.9.4 | ||
env: | ||
DOTNET_SYSTEM_IO_DISABLEFILELOCKING: "true" | ||
JELLYFIN_PublishedServerUrl: &ip 192.168.40.247 | ||
probes: | ||
liveness: &probe | ||
enabled: true | ||
custom: true | ||
spec: | ||
httpGet: | ||
path: /health | ||
port: 8096 | ||
initialDelaySeconds: 0 | ||
periodSeconds: 10 | ||
timeoutSeconds: 1 | ||
failureThreshold: 3 | ||
readiness: *probe | ||
startup: | ||
enabled: true | ||
custom: true | ||
spec: | ||
httpGet: | ||
path: /health | ||
port: 8096 | ||
initialDelaySeconds: 0 | ||
periodSeconds: 10 | ||
timeoutSeconds: 1 | ||
failureThreshold: 30 | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 512Mi | ||
limits: | ||
memory: 2Gi | ||
defaultPodOptions: | ||
securityContext: | ||
runAsUser: 10000 | ||
runAsGroup: 10000 | ||
fsGroup: 10000 | ||
fsGroupChangePolicy: OnRootMismatch | ||
service: | ||
app: | ||
controller: jellyfin | ||
type: LoadBalancer | ||
annotations: | ||
io.cilium/lb-ipam-ips: *ip | ||
ports: | ||
http: | ||
port: 8096 | ||
ingress: | ||
app: | ||
enabled: true | ||
className: internal | ||
annotations: | ||
gethomepage.dev/enabled: "true" | ||
gethomepage.dev/group: Media | ||
gethomepage.dev/icon: jellyfin.png | ||
gethomepage.dev/name: Jellyfin | ||
hosts: | ||
- host: &host jellyfin.18b.haus | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
service: | ||
identifier: app | ||
port: http | ||
tls: | ||
- hosts: | ||
- *host | ||
persistence: | ||
config: | ||
enabled: true | ||
existingClaim: *app | ||
globalMounts: | ||
- path: /config | ||
transcode: | ||
enabled: true | ||
type: emptyDir | ||
media: | ||
enabled: true | ||
type: nfs | ||
server: storage.svc.18b.lan | ||
path: /io/media | ||
globalMounts: | ||
- path: /media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./helmrelease.yaml | ||
- ../../../../templates/volsync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.18b.haus/kustomize.toolkit.fluxcd.io/kustomization_v1.json | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: &app jellyfin | ||
namespace: flux-system | ||
spec: | ||
targetNamespace: default | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/name: *app | ||
path: ./kubernetes/main/apps/default/jellyfin/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: home-kubernetes | ||
wait: false | ||
interval: 2h | ||
retryInterval: 1m | ||
timeout: 5m | ||
postBuild: | ||
substitute: | ||
APP: *app | ||
VOLSYNC_ACCESSMODES: ReadWriteOnce | ||
VOLSYNC_CAPACITY: 1Gi | ||
VOLSYNC_SCHEDULE_B2: '45 1 * * 0' | ||
VOLSYNC_SCHEDULE_MINIO: '45 1 * * *' | ||
VOLSYNC_MOVER_FS_GROUP: '10000' | ||
VOLSYNC_MOVER_GROUP: '10000' | ||
VOLSYNC_MOVER_USER: '10000' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters