From 1a0f817cc2f7da0cdf0d3714f50fc443adb4bbc0 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:06:05 +0200 Subject: [PATCH] plex - pre-migration actions (#2081) --- library/ix-dev/charts/plex/Chart.yaml | 2 +- .../charts/plex/templates/deployment.yaml | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/library/ix-dev/charts/plex/Chart.yaml b/library/ix-dev/charts/plex/Chart.yaml index e71f2067f5..4f335d5ebe 100644 --- a/library/ix-dev/charts/plex/Chart.yaml +++ b/library/ix-dev/charts/plex/Chart.yaml @@ -3,7 +3,7 @@ description: Plex Media Server annotations: title: Plex type: application -version: 1.7.59 +version: 1.7.60 apiVersion: v2 appVersion: 1.32.8.7639 kubeVersion: '>=1.16.0-0' diff --git a/library/ix-dev/charts/plex/templates/deployment.yaml b/library/ix-dev/charts/plex/templates/deployment.yaml index df09969f25..61dfb8b5a7 100644 --- a/library/ix-dev/charts/plex/templates/deployment.yaml +++ b/library/ix-dev/charts/plex/templates/deployment.yaml @@ -1,6 +1,19 @@ {{ include "common.storage.hostPathValidate" .Values }} -{{ include "common.deployment.common_config" . | nindent 0 }} -spec: {{ include "common.deployment.common_spec" . | nindent 2 }} +apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} +kind: Deployment +metadata: + name: {{ template "common.names.fullname" . }}-plex + labels: + app.kubernetes.io/name: {{ template "common.names.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} +spec: + replicas: {{ (default 1 .Values.replicas) }} + strategy: + type: Recreate + selector: + matchLabels: + app.kubernetes.io/name: {{ template "common.names.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} template: {{ include "common.deployment.pod.metadata" . | nindent 4 }} spec: hostNetwork: {{ .Values.hostNetwork }}