浏览代码

plex - pre-migration actions (#2081)

Stavros Kois 1 年之前
父节点
当前提交
1a0f817cc2
共有 2 个文件被更改,包括 16 次插入3 次删除
  1. 1 1
      library/ix-dev/charts/plex/Chart.yaml
  2. 15 2
      library/ix-dev/charts/plex/templates/deployment.yaml

+ 1 - 1
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'

+ 15 - 2
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 }}