Adding a Helm chart to install in Kubernetes (#1010)
* first pass at a helm chart * more cleanup * adding more stuff * trying to generate the DB password * more fixes and hardening * Don't need to bake this in * switching these back to the defaults * more cleanup * bumping the app version to match release * some fixes * updating volumeMounts too * and disabling the PVCs if we aren't using them * fixing the spacing --------- Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
This commit is contained in:
co-authored by
Aditya Chandel
parent
089e7fd781
commit
ae24cca0e3
@@ -0,0 +1,33 @@
|
||||
{{- if (and .Values.persistence.dataVolume.enabled (not .Values.persistence.dataVolume.existingClaim)) }}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "booklore.fullname" . }}
|
||||
name: {{ include "booklore.fullname" . }}-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.dataVolume.size }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- if (and .Values.persistence.booksVolume.enabled (not .Values.persistence.booksVolume.existingClaim)) }}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "booklore.fullname" . }}
|
||||
name: {{ include "booklore.fullname" . }}-books
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.booksVolume.size }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user