[Deconz] - Add option for a persistence.subpath (#160)

Co-authored-by: Mike Knell <mike.knell@lifecycle-software.com>
This commit is contained in:
mr-onion-2 2020-11-15 15:42:44 +00:00 committed by GitHub
parent ae45a4f962
commit a21912cc84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2
name: deconz
description: A Helm chart for deploying deCONZ
version: 2.0.0
version: 2.0.1
appVersion: 2.05.80
keywords:
- deconz

View File

@ -79,6 +79,7 @@ Read through the [values.yaml](https://github.com/k8s-at-home/charts/blob/master
| `persistence.existingClaim` | Use an existing PVC to persist data | `nil` |
| `persistence.accessMode` | Persistence access mode | `ReadWriteOnce` |
| `persistence.size` | Size of persistent volume claim | `1Gi` |
| `persistence.subPath` | Mount a sub dir of the persistent volume | `nil` |
| `extraVolumes` | Optionally add additional Volumes | `[]` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |

View File

@ -77,6 +77,9 @@ spec:
{{- end }}
- name: config
mountPath: /root/.local/share/dresden-elektronik/deCONZ
{{- if .Values.persistence.subPath }}
subPath: {{ .Values.persistence.subPath }}
{{- end }}
{{- include "deconz.extraVolumeMounts" . | nindent 12 }}
{{- if .Values.probes.liveness.enabled }}
livenessProbe:

View File

@ -79,6 +79,8 @@ persistence:
# existingClaim: deconz-data
accessMode: ReadWriteOnce
size: 1Gi
## When mounting the data volume you may specify a subPath
# subPath: /configs/deconz
# Any extra volumes to define for the pod
# Volumes will be mounted to the folder specified under mountPath