Compare commits

..

2 commits

Author SHA1 Message Date
c7037694fa
add scrypted 2024-10-11 19:57:15 -05:00
45d91c392d
update toolpod 2024-10-11 19:54:48 -05:00
5 changed files with 150 additions and 2 deletions

View file

@ -22,6 +22,7 @@ resources:
- ./recyclarr/ks.yaml - ./recyclarr/ks.yaml
- ./redlib/ks.yaml - ./redlib/ks.yaml
- ./sabnzbd/ks.yaml - ./sabnzbd/ks.yaml
- ./scrypted/ks.yaml
- ./searxng/ks.yaml - ./searxng/ks.yaml
- ./sonarr/ks.yaml - ./sonarr/ks.yaml
- ./tautulli/ks.yaml - ./tautulli/ks.yaml

View file

@ -0,0 +1,109 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: scrypted
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.5.1
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
values:
controllers:
scrypted:
annotations:
reloader.stakater.com/auto: "true"
pod:
nodeSelector:
google.feature.node.kubernetes.io/coral: "true"
nvidia.com/gpu.present: "true"
securityContext:
supplementalGroups:
- 568
containers:
app:
image:
repository: ghcr.io/koush/scrypted
tag: v0.119.1-jammy-full
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 5
resources:
requests:
cpu: 136m
memory: 1024Mi
limits:
nvidia.com/gpu: 1
memory: 8192Mi
securityContext:
privileged: true
service:
app:
controller: scrypted
ports:
http:
port: 11080
primary: true
# rebroadcast1:
# port: 34135
# rebroadcast2:
# port: 34136
ingress:
app:
className: "internal-nginx"
annotations:
hosts:
- host: &host scrypted.jahanson.tech
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
existingClaim: scrypted-config
advancedMounts:
scrypted:
app:
- path: /server/volume
cache:
type: emptyDir
globalMounts:
- path: /.cache
cache-npm:
type: emptyDir
globalMounts:
- path: /.npm
dev-bus-usb:
type: hostPath
hostPath: /dev/bus/usb
hostPathType: Directory
sys-bus-usb:
type: hostPath
hostPath: /sys/bus/usb
hostPathType: Directory
recs:
type: nfs
server: shadowfax.jahanson.tech
path: /nahar/scrypted
globalMounts:
- path: /rec

View file

@ -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

View file

@ -0,0 +1,31 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &appname scrypted
namespace: flux-system
spec:
targetNamespace: home-automation
commonMetadata:
labels:
app.kubernetes.io/name: *appname
interval: 30m
timeout: 5m
path: "./kubernetes/apps/home-automation/scrypted/app"
prune: true
sourceRef:
kind: GitRepository
name: theshire
wait: false
dependsOn:
- name: rook-ceph-cluster
- name: volsync
- name: external-secrets-stores
postBuild:
substitute:
APP: *appname
APP_UID: "0"
APP_GID: "0"
VOLSYNC_CLAIM: scrypted-config
VOLSYNC_CAPACITY: 5Gi

View file

@ -4,13 +4,13 @@ metadata:
name: rocky-nenya name: rocky-nenya
namespace: kube-system namespace: kube-system
spec: spec:
# nodeName: nenya nodeName: shadowfax-01
containers: containers:
- name: rocky - name: rocky
image: rockylinux:9 image: rockylinux:9
securityContext: securityContext:
privileged: true privileged: true
command: ["/bin/bash", "-c", "while true; do sleep 10; done"] command: ["/bin/bash", "-c", "dnf install -y iputils dnsutils && while true; do sleep 10; done"]
resources: resources:
requests: requests:
cpu: 100m cpu: 100m