Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-deploy plex with all probes disabled #58

Merged
merged 1 commit into from
Feb 27, 2024
Merged

re-deploy plex with all probes disabled #58

merged 1 commit into from
Feb 27, 2024

Conversation

jgilfoil
Copy link
Owner

No description provided.

Copy link

--- kubernetes/apps/media/plex/app Kustomization: flux-system/plex HelmRelease: media/plex

+++ kubernetes/apps/media/plex/app Kustomization: flux-system/plex HelmRelease: media/plex

@@ -0,0 +1,127 @@

+---
+apiVersion: helm.toolkit.fluxcd.io/v2beta2
+kind: HelmRelease
+metadata:
+  labels:
+    app.kubernetes.io/name: plex
+    kustomize.toolkit.fluxcd.io/name: plex
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: plex
+  namespace: media
+spec:
+  chart:
+    spec:
+      chart: app-template
+      sourceRef:
+        kind: HelmRepository
+        name: bjw-s
+        namespace: flux-system
+      version: 2.5.0
+  dependsOn:
+  - name: intel-device-plugin-gpu
+    namespace: kube-system
+  - name: rook-ceph-cluster
+    namespace: rook-ceph
+  - name: volsync
+    namespace: storage
+  - name: minio
+    namespace: storage
+  install:
+    remediation:
+      retries: 3
+  interval: 30m
+  uninstall:
+    keepHistory: false
+  upgrade:
+    cleanupOnFail: true
+    remediation:
+      retries: 3
+  values:
+    controllers:
+      main:
+        annotations:
+          reloader.stakater.com/auto: 'true'
+        containers:
+          main:
+            env:
+              TZ: America/Denver
+            image:
+              repository: ghcr.io/onedr0p/plex-beta
+              tag: 1.40.0.7775-456fbaf97@sha256:cd6bafd8cf9f75c2d5b6517de312a82a986049f89f089da74b6bdb23928b8b37
+            probes:
+              liveness:
+                enabled: false
+              readiness:
+                enabled: false
+              startup:
+                enabled: false
+            resources:
+              limits:
+                gpu.intel.com/i915: 1
+                memory: 16Gi
+              requests:
+                cpu: 1000m
+                memory: 2Gi
+            securityContext:
+              allowPrivilegeEscalation: false
+              capabilities:
+                drop:
+                - ALL
+              readOnlyRootFilesystem: true
+        pod:
+          nodeSelector:
+            intel.feature.node.kubernetes.io/gpu: 'true'
+          securityContext:
+            fsGroup: 568
+            fsGroupChangePolicy: OnRootMismatch
+            runAsGroup: 568
+            runAsNonRoot: true
+            runAsUser: 568
+            supplementalGroups:
+            - 44
+            - 109
+            - 100
+    ingress:
+      main:
+        annotations:
+          nginx.ingress.kubernetes.io/backend-protocol: HTTPS
+        className: internal
+        enabled: true
+        hosts:
+        - host: plex.
+          paths:
+          - path: /
+            service:
+              name: main
+              port: http
+        tls:
+        - hosts:
+          - plex.
+    persistence:
+      config:
+        enabled: true
+        existingClaim: plex
+      media:
+        globalMounts:
+        - path: /media
+          readOnly: true
+        path: /volume2/Media/
+        server: 192.168.1.33
+        type: nfs
+      plex-cache:
+        existingClaim: plex-cache
+        globalMounts:
+        - path: /config/Library/Application Support/Plex Media Server/Cache
+      tmp:
+        type: emptyDir
+      transcode:
+        type: emptyDir
+    service:
+      main:
+        annotations:
+          io.cilium/lb-ipam-ips: 192.168.1.210
+        ports:
+          http:
+            port: 32400
+        type: LoadBalancer
+

Copy link

--- HelmRelease: media/plex Service: media/plex

+++ HelmRelease: media/plex Service: media/plex

@@ -0,0 +1,24 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: plex
+  labels:
+    app.kubernetes.io/instance: plex
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: plex
+    app.kubernetes.io/service: plex
+  annotations:
+    io.cilium/lb-ipam-ips: 192.168.1.210
+spec:
+  type: LoadBalancer
+  ports:
+  - port: 32400
+    targetPort: 32400
+    protocol: TCP
+    name: http
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: plex
+    app.kubernetes.io/name: plex
+
--- HelmRelease: media/plex Deployment: media/plex

+++ HelmRelease: media/plex Deployment: media/plex

@@ -0,0 +1,95 @@

+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: plex
+  labels:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: plex
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: plex
+  annotations:
+    reloader.stakater.com/auto: 'true'
+spec:
+  revisionHistoryLimit: 3
+  replicas: 1
+  strategy:
+    type: Recreate
+  selector:
+    matchLabels:
+      app.kubernetes.io/component: main
+      app.kubernetes.io/name: plex
+      app.kubernetes.io/instance: plex
+  template:
+    metadata:
+      labels:
+        app.kubernetes.io/component: main
+        app.kubernetes.io/instance: plex
+        app.kubernetes.io/name: plex
+    spec:
+      enableServiceLinks: true
+      serviceAccountName: default
+      automountServiceAccountToken: true
+      securityContext:
+        fsGroup: 568
+        fsGroupChangePolicy: OnRootMismatch
+        runAsGroup: 568
+        runAsNonRoot: true
+        runAsUser: 568
+        supplementalGroups:
+        - 44
+        - 109
+        - 100
+      hostIPC: false
+      hostNetwork: false
+      hostPID: false
+      dnsPolicy: ClusterFirst
+      nodeSelector:
+        intel.feature.node.kubernetes.io/gpu: 'true'
+      containers:
+      - env:
+        - name: TZ
+          value: America/Denver
+        image: ghcr.io/onedr0p/plex-beta:1.40.0.7775-456fbaf97@sha256:cd6bafd8cf9f75c2d5b6517de312a82a986049f89f089da74b6bdb23928b8b37
+        name: main
+        resources:
+          limits:
+            gpu.intel.com/i915: 1
+            memory: 16Gi
+          requests:
+            cpu: 1000m
+            memory: 2Gi
+        securityContext:
+          allowPrivilegeEscalation: false
+          capabilities:
+            drop:
+            - ALL
+          readOnlyRootFilesystem: true
+        volumeMounts:
+        - mountPath: /config
+          name: config
+        - mountPath: /media
+          name: media
+          readOnly: true
+        - mountPath: /config/Library/Application Support/Plex Media Server/Cache
+          name: plex-cache
+        - mountPath: /tmp
+          name: tmp
+        - mountPath: /transcode
+          name: transcode
+      volumes:
+      - name: config
+        persistentVolumeClaim:
+          claimName: plex
+      - name: media
+        nfs:
+          path: /volume2/Media/
+          server: 192.168.1.33
+      - name: plex-cache
+        persistentVolumeClaim:
+          claimName: plex-cache
+      - emptyDir: {}
+        name: tmp
+      - emptyDir: {}
+        name: transcode
+
--- HelmRelease: media/plex Ingress: media/plex

+++ HelmRelease: media/plex Ingress: media/plex

@@ -0,0 +1,28 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: plex
+  labels:
+    app.kubernetes.io/instance: plex
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: plex
+  annotations:
+    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
+spec:
+  ingressClassName: internal
+  tls:
+  - hosts:
+    - plex.
+  rules:
+  - host: plex.
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: plex
+            port:
+              number: 32400
+

@jgilfoil jgilfoil merged commit 6fb33c7 into main Feb 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant