diff --git a/route.yaml b/route.yaml new file mode 100644 index 0000000..8e1ff74 --- /dev/null +++ b/route.yaml @@ -0,0 +1,22 @@ +kind: Route +apiVersion: route.openshift.io/v1 +metadata: + name: peanutflix-route + namespace: peanutflix + annotations: + cert-manager.io/issuer-kind: ClusterIssuer + cert-manager.io/issuer-name: letsencrypt-dns01-cloudflare +spec: + host: peanutflix.apilab.us + path: / + to: + kind: Service + name: peanutflix-plex-media-server + weight: 100 + port: + targetPort: pms + tls: + termination: edge + certificate: + key: + wildcardPolicy: None diff --git a/values.yaml b/values.yaml index 8b1b757..c064c99 100644 --- a/values.yaml +++ b/values.yaml @@ -18,7 +18,7 @@ dnsConfig: {} # -- Specifies the Pod's DNS policy. Default is typically 'ClusterFirst'. # If 'hostNetwork: true' is used, you may need to set this to 'ClusterFirstWithHostNet'. # Allowed values are ClusterFirst, Default, None, or ClusterFirstWithHostNet. -dnsPolicy: "" +dnsPolicy: # -- Set to true to run the Pod in the host's network namespace. # This may be required for specific networking setups or accessing local resources. @@ -26,7 +26,7 @@ hostNetwork: false ingress: # -- Specify if an ingress resource for the pms server should be created or not - enabled: true + enabled: false # -- The ingress class that should be used ingressClassName: "openshift-default" @@ -49,14 +49,14 @@ ingress: pms: # -- The storage class to use when provisioning the pms config volume # this needs to be created manually, null will use the default - storageClassName: nfs + storageClassName: crc-csi-hostpath-provisioner # -- The volume size to provision for the PMS database - configStorage: 100Gi + configStorage: 2Gi # -- Name of an existing `PersistentVolumeClaim` for the PMS database # NOTE: When set, 'configStorage' and 'storageClassName' are ignored. - configExistingClaim: "" + configExistingClaim: "plex-config" # Providing both name and key will add in the PLEX_CLAIM environment variable # with the correct secretKeyRef configuration @@ -71,17 +71,19 @@ pms: nvidia: enabled: false - resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi + resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + #limits: + # amd.com/gpu: 1 # -- Security context for PMS pods securityContext: {} @@ -295,18 +297,30 @@ extraEnv: {} # ALLOWED_NETWORKS: "0.0.0.0/0" # -- Optionally specify additional volume mounts for the PMS and init containers. -extraVolumeMounts: [] -# extraVolumeMounts: -# - name: dev-dri -# mountPath: /dev/dri +# type: Directory + +extraVolumeMounts: + # extraVolumeMounts: + - name: dev-dri + mountPath: /dev/dri + - name: pms + mountPath: /mnt/nfs + - name: host-volumes + mountPath: /opt/amdgpu/share/libdrm # -- Optionally specify additional volumes for the pod. -extraVolumes: [] -# extraVolumes: -# - name: dev-dri -# hostPath: -# path: /dev/dri -# type: Directory +extraVolumes: + # extraVolumes: + - name: dev-dri + hostPath: + path: /dev/dri + type: Directory + - name: pms + persistentVolumeClaim: + claimName: plex + - name: host-volumes + hostPath: + path: /usr/share/libdrm extraContainers: [] # extraContainers: