From 36cbbca8f31df7c4213a9a578e5971718a489cc0 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Tue, 2 Jan 2024 15:48:09 -0500 Subject: [PATCH] using deployment --- k8s/apps/videohosting/templates/sts-services.yaml | 7 ++++++- k8s/apps/videohosting/values.yaml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/k8s/apps/videohosting/templates/sts-services.yaml b/k8s/apps/videohosting/templates/sts-services.yaml index 05d8605..c0e2cb5 100644 --- a/k8s/apps/videohosting/templates/sts-services.yaml +++ b/k8s/apps/videohosting/templates/sts-services.yaml @@ -39,9 +39,10 @@ spec: {{ end }} {{- end }} {{ end }} +{{- $kind := $v.kind | default "StatefulSet" -}} --- apiVersion: apps/v1 -kind: StatefulSet +kind: {{ $kind }} metadata: name: {{$k}} spec: @@ -54,6 +55,7 @@ spec: rollingUpdate: partition: 0 type: RollingUpdate + {{ if (eq $kind "StatefulSet")}} volumeClaimTemplates: - metadata: finalizers: @@ -65,6 +67,7 @@ spec: - ReadWriteOnce resources: {{- $v.configVolumesResources | toYaml | nindent 10 }} + {{ end }} template: metadata: labels: @@ -105,8 +108,10 @@ spec: {{ end }} {{ end }} volumeMounts: + {{ if (eq $kind "StatefulSet")}} - name: config mountPath: /config + {{ end }} - name: torrents mountPath: /torrents {{- if $v.health }} diff --git a/k8s/apps/videohosting/values.yaml b/k8s/apps/videohosting/values.yaml index 962ac44..7b433e6 100644 --- a/k8s/apps/videohosting/values.yaml +++ b/k8s/apps/videohosting/values.yaml @@ -140,6 +140,7 @@ arrs: services: jellyplex: + kind: Deployment disableSVC: true repo: "luigi311/jellyplex-watched" tag: "latest"