This commit is contained in:
parent
1d4e3ddf72
commit
501524f806
9
base/k8s-homelab/k8s-homelab-helm-repo.yaml
Normal file
9
base/k8s-homelab/k8s-homelab-helm-repo.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: k8s-homelab
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 5m0s
|
||||||
|
url: https://k8s-home-lab.github.io/helm-charts/
|
||||||
|
|
4
base/plex/plex-namespace.yaml
Normal file
4
base/plex/plex-namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: plex-ns
|
21
plex/helmrelease-plex.yaml
Normal file
21
plex/helmrelease-plex.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: helm.toolkit.flucd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: plex
|
||||||
|
namespace: plex-ns
|
||||||
|
spec:
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: plex
|
||||||
|
version: 7.1.2
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: k8s-homelab
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 15m0s
|
||||||
|
timeout: 5m
|
||||||
|
releaseName: plex
|
||||||
|
valuesFrom:
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: plex-values
|
||||||
|
valuesKey: values.yaml
|
125
plex/plex-values.yaml
Normal file
125
plex/plex-values.yaml
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: plex-values
|
||||||
|
namespace: plex-ns
|
||||||
|
data:
|
||||||
|
values.yaml: |-
|
||||||
|
# Custom values
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: gluttony
|
||||||
|
#
|
||||||
|
# IMPORTANT NOTE
|
||||||
|
#
|
||||||
|
# This chart inherits from our common library chart. You can check the default values/options here:
|
||||||
|
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
|
||||||
|
#
|
||||||
|
|
||||||
|
image:
|
||||||
|
# -- image repository
|
||||||
|
repository: ghcr.io/onedr0p/plex
|
||||||
|
# @default -- chart.appVersion
|
||||||
|
tag:
|
||||||
|
# -- image pull policy
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
# -- environment variables. See [plex docs](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/) for more details.
|
||||||
|
# **NOTE:** Plex preference options are camelCase and CASE SENSITIVE!
|
||||||
|
# You can do horrible things to your Plex configuration if you are not careful
|
||||||
|
# @default -- See below
|
||||||
|
env:
|
||||||
|
# -- Set the container timezone
|
||||||
|
TZ: EST
|
||||||
|
# ADVERTISE_IP:
|
||||||
|
# ALLOWED_NETWORKS:
|
||||||
|
# PLEX_CLAIM:
|
||||||
|
# PLEX_PREFERENCE_1: "FriendlyName=plex-kubernetes"
|
||||||
|
# PLEX_PREFERENCE_2: "EnableIPv6=0"
|
||||||
|
# PLEX_PREFERENCE_3: "logDebug=0"
|
||||||
|
# PLEX_PREFERENCE_4: "DisableTLSv1_0=1"
|
||||||
|
# PLEX_PREFERENCE_5: "LanNetworksBandwidth=xxx.xxx.xxx.0/18\,xxx.xxx.xxx.0/24\,xxx.xxx.xxx.0/24"
|
||||||
|
# PLEX_PREFERENCE_6: "TranscoderQuality=2"
|
||||||
|
# PLEX_PREFERENCE_7: "TreatWanIpAsLocal=0"
|
||||||
|
# PLEX_PREFERENCE_8: "TranscoderH264BackgroundPreset=fast"
|
||||||
|
|
||||||
|
# -- Configures service settings for the chart.
|
||||||
|
# @default -- See values.yaml
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
primary: true
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 32400
|
||||||
|
dnla-tcp:
|
||||||
|
enabled: false
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
dnla-tcp:
|
||||||
|
enabled: true
|
||||||
|
port: 32469
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 32469
|
||||||
|
externalTrafficPolicy: Local
|
||||||
|
dnla-udp:
|
||||||
|
enabled: false
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
dnla-udp:
|
||||||
|
enabled: true
|
||||||
|
port: 1900
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 1900
|
||||||
|
externalTrafficPolicy: Local
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
# -- Enable and configure ingress settings for the chart under this key.
|
||||||
|
# @default -- See values.yaml
|
||||||
|
main:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Enable devices to be discoverable
|
||||||
|
hostNetwork: false
|
||||||
|
|
||||||
|
# -- Configure persistence settings for the chart under this key.
|
||||||
|
# @default -- See values.yaml
|
||||||
|
#persistence:
|
||||||
|
# config:
|
||||||
|
# enabled: true
|
||||||
|
# storageClass: "local-storage"
|
||||||
|
# size: 10Gi
|
||||||
|
# accessMode: ReadWriteOnce
|
||||||
|
# mountPath: /config
|
||||||
|
|
||||||
|
# transcode:
|
||||||
|
# enabled: false
|
||||||
|
# mountPath: /transcode
|
||||||
|
|
||||||
|
# -- Configure the Security Context for the Pod
|
||||||
|
podSecurityContext: {}
|
||||||
|
# runAsUser: 568
|
||||||
|
# runAsGroup: 568
|
||||||
|
# fsGroup: 568
|
||||||
|
# # Hardware acceleration using an Intel iGPU w/ QuickSync
|
||||||
|
# # These IDs below should be matched to your `video` and `render` group on the host
|
||||||
|
# # To obtain those IDs run the following grep statement on the host:
|
||||||
|
# # $ cat /etc/group | grep "video\|render"
|
||||||
|
# # video:x:44:
|
||||||
|
# # render:x:109:
|
||||||
|
# supplementalGroups:
|
||||||
|
# - 44
|
||||||
|
# - 109
|
||||||
|
|
||||||
|
# -- Configure the resource requests and/or limits for the Pod
|
||||||
|
resources: {}
|
||||||
|
# requests:
|
||||||
|
# # Hardware acceleration using an Intel iGPU w/ QuickSync and
|
||||||
|
# # using intel-gpu-plugin (https://github.com/intel/intel-device-plugins-for-kubernetes)
|
||||||
|
# gpu.intel.com/i915: 1
|
||||||
|
# cpu: 200m
|
||||||
|
# memory: 256Mi
|
||||||
|
# limits:
|
||||||
|
# # Hardware acceleration using an Intel iGPU w/ QuickSync and
|
||||||
|
# # using intel-gpu-plugin (https://github.com/intel/intel-device-plugins-for-kubernetes)
|
||||||
|
# gpu.intel.com/i915: 1
|
||||||
|
# memory: 4096Mi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user