Skip to content

Commit

Permalink
Merge pull request #29 from cinaq/mx_nfs
Browse files Browse the repository at this point in the history
nfs volume support
  • Loading branch information
vktrbrlv authored Jul 8, 2024
2 parents b6b8b66 + 7f2ced6 commit d450b7e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/app-mendix/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: app-mendix
version: 3.0.0
version: 3.0.1
description: Mendix Application Chart.
icon: https://cinaq.github.io/helm-charts/icons/mendix-logo.png
maintainers:
Expand Down
17 changes: 17 additions & 0 deletions charts/app-mendix/templates/pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{ if .Values.nfsVolume.enabled }}
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ template "app-mendix.fullname" . }}
labels:
{{- include "app-mendix.labels" . | nindent 4 }}
spec:
capacity:
storage: {{ .Values.nfsVolume.storage }}
accessModes:
- ReadWriteMany
nfs:
server: {{ .Values.nfsVolume.server }}
path: {{ .Values.nfsVolume.path }}
{{ end }}
16 changes: 16 additions & 0 deletions charts/app-mendix/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ if .Values.nfsVolume.enabled }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ template "app-mendix.fullname" . }}
labels:
{{- include "app-mendix.labels" . | nindent 4 }}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: {{ .Values.nfsVolume.storage }}
storageClassName: ""
{{ end }}
11 changes: 11 additions & 0 deletions charts/app-mendix/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,17 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.nfsVolume.enabled }}
volumeMounts:
- name: {{ .Values.nfsVolume.name }}
mountPath: /opt/mendix/build/data/files/
{{- end }}
{{- if .Values.nfsVolume.enabled }}
volumes:
- name: {{ .Values.nfsVolume.name }}
persistentVolumeClaim:
claimName: {{ template "app-mendix.fullname" . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
9 changes: 8 additions & 1 deletion charts/app-mendix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,11 @@ metrics:
enabled: true
runtimeLoginMetricsEnabled: true
# example: http://loki-stack:3100/loki/api/v1/push
trendsForwarderUrl: ""
trendsForwarderUrl: ""

nfsVolume:
enabled: false
name: mendix-nfs
server: 172.19.0.6
path: /mnt/mendixdata
storage: 10Gi

0 comments on commit d450b7e

Please sign in to comment.