Commit 88cf5c13 authored by Waqar Ahmed's avatar Waqar Ahmed

Add updated version of plex to charts train

parent b9390e7f
apiVersion: v2 apiVersion: v2
appVersion: 1.20.2.3402 appVersion: 1.21.3.4046-3c1c83ba4
description: Plex Media Server description: Plex Media Server
name: plex name: plex
version: 1.1.0 version: 1.3.0
keywords: keywords:
- plex - plex
home: https://plex.tv/ home: https://plex.tv/
......
image:
repository: plexinc/pms-docker
tag: 1.21.3.4046-3c1c83ba4
pullPolicy: IfNotPresent
...@@ -31,42 +31,6 @@ portals: ...@@ -31,42 +31,6 @@ portals:
path: "/web" path: "/web"
questions: questions:
# Image related
- variable: image
description: "Docker Image Details"
label: "Docker Image"
group: "Container Images"
schema:
type: dict
required: true
attrs:
- variable: repository
description: "Docker image repository"
label: "Image repository"
schema:
type: string
required: true
default: "plexinc/pms-docker"
- variable: tag
description: "Tag to use for specified image"
label: "Image Tag"
schema:
type: string
default: "1.20.2.3402-0fec14d92"
- variable: pullPolicy
description: "Docker Image Pull Policy"
label: "Image Pull Policy"
schema:
type: string
default: "IfNotPresent"
enum:
- value: "IfNotPresent"
description: "Only pull image if not present on host"
- value: "Always"
description: "Always pull image even if present on host"
- value: "Never"
description: "Never pull image even if it's not present on host"
- variable: claimToken - variable: claimToken
label: "Plex Claim Token" label: "Plex Claim Token"
group: "Plex Configuration" group: "Plex Configuration"
......
...@@ -9,8 +9,12 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} ...@@ -9,8 +9,12 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }} {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
{{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }}
{{ include "common.containers.gpuConfiguration" .Values | nindent 10 }} {{ include "common.containers.gpuConfiguration" .Values | nindent 10 }}
volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
- name: plex-probe-check
mountPath: /bin/plex_probe_check.sh
readOnly: true
subPath: entrypoint.sh
ports: ports:
- name: pms - name: pms
protocol: TCP protocol: TCP
...@@ -41,29 +45,40 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} ...@@ -41,29 +45,40 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
{{ $envList := (default list .Values.environmentVariables) }} {{ $envList := (default list .Values.environmentVariables) }}
{{ if and .Values.gpuConfiguration (hasKey .Values.gpuConfiguration "nvidia.com/gpu") (gt (get .Values.gpuConfiguration "nvidia.com/gpu" | toDecimal) 0) }}
{{ $envList = mustAppend $envList (dict "name" "NVIDIA_DRIVER_CAPABILITIES" "value" "all") }}
{{ end }}
{{ $envList = mustAppend $envList (dict "name" "TZ" "value" .Values.timezone) }} {{ $envList = mustAppend $envList (dict "name" "TZ" "value" .Values.timezone) }}
{{ $envList = mustAppend $envList (dict "name" "PLEX_CLAIM" "value" .Values.claimToken) }} {{ $envList = mustAppend $envList (dict "name" "PLEX_CLAIM" "value" .Values.claimToken) }}
{{ $envList = mustAppend $envList (dict "name" "PMS_INTERNAL_ADDRESS" "value" (printf "http://%s:32400" (include "common.names.fullname" .))) }} {{ $envList = mustAppend $envList (dict "name" "PMS_INTERNAL_ADDRESS" "value" (printf "http://%s:32400" (include "common.names.fullname" .))) }}
{{ $envList = mustAppend $envList (dict "name" "PMS_IMAGE" "value" (printf "%s:%s" .Values.image.repository .Values.image.tag))}} {{ $envList = mustAppend $envList (dict "name" "PMS_IMAGE" "value" (printf "%s:%s" .Values.image.repository .Values.image.tag))}}
{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
readinessProbe: readinessProbe:
httpGet: exec:
path: /identity command:
port: 32400 - /bin/plex_probe_check.sh
failureThreshold: 5 failureThreshold: 5
periodSeconds: 15 periodSeconds: 15
livenessProbe: livenessProbe:
httpGet: exec:
path: /identity command:
port: 32400 - /bin/plex_probe_check.sh
failureThreshold: 5 failureThreshold: 5
periodSeconds: 15 periodSeconds: 15
startupProbe: startupProbe:
httpGet: exec:
path: /identity command:
port: 32400 - /bin/plex_probe_check.sh
initialDelaySeconds: 5 initialDelaySeconds: 5
failureThreshold: 40 failureThreshold: 40
periodSeconds: 15 periodSeconds: 15
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
- name: plex-probe-check
configMap:
defaultMode: 0700
name: "plex-probe-check"
apiVersion: v1
kind: ConfigMap
metadata:
name: "plex-probe-check"
data:
entrypoint.sh: |-
#!/bin/sh
curl -ksf http://$POD_IP:32400/identity -o /dev/null || curl -ksf https://$POD_IP:32400/identity -o /dev/null
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment