From 516ff2a48fd60424e1827242812c77d66edde063 Mon Sep 17 00:00:00 2001 From: dcplaya Date: Sun, 12 Jul 2020 12:38:01 -0700 Subject: [PATCH] Give Tautulli an existing mount option to allow it to see plex logs (#279) --- charts/tautulli/Chart.yaml | 2 +- charts/tautulli/templates/deployment.yaml | 12 +++++++++++- charts/tautulli/values.yaml | 7 +++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/charts/tautulli/Chart.yaml b/charts/tautulli/Chart.yaml index c72c16f7..413f34c2 100644 --- a/charts/tautulli/Chart.yaml +++ b/charts/tautulli/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: v2.1.44-ls34 description: A Python based monitoring and tracking tool for Plex Media Server. name: tautulli -version: 2.2.0 +version: 2.3.0 keywords: - tautulli - plex diff --git a/charts/tautulli/templates/deployment.yaml b/charts/tautulli/templates/deployment.yaml index ec2e781b..ff482681 100644 --- a/charts/tautulli/templates/deployment.yaml +++ b/charts/tautulli/templates/deployment.yaml @@ -66,7 +66,12 @@ spec: name: config {{- if .Values.persistence.config.subPath }} subPath: "{{ .Values.persistence.config.subPath }}" - {{- end }} + {{- end }} + {{- range .Values.persistence.extraExistingClaimMounts }} + - name: {{ .name }} + mountPath: {{ .mountPath }} + readOnly: {{ .readOnly }} + {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} volumes: @@ -77,6 +82,11 @@ spec: {{- else }} emptyDir: {} {{ end }} + {{- range .Values.persistence.extraExistingClaimMounts }} + - name: {{ .name }} + persistentVolumeClaim: + claimName: {{ .existingClaim }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/charts/tautulli/values.yaml b/charts/tautulli/values.yaml index c85157e0..cce90778 100644 --- a/charts/tautulli/values.yaml +++ b/charts/tautulli/values.yaml @@ -85,6 +85,13 @@ persistence: subPath: "" ## Do not delete the pvc upon helm uninstall skipuninstall: false + extraExistingClaimMounts: [] + # - name: external-mount + # mountPath: /srv/external-mount + ## A manually managed Persistent Volume and Claim + ## If defined, PVC must be created manually before volume will be bound + # existingClaim: + # readOnly: true resources: {} # We usually recommend not to specify default resources and to leave this as a conscious