diff --git a/charts/app-mendix/Chart.yaml b/charts/app-mendix/Chart.yaml index 2317a3c..e751da3 100644 --- a/charts/app-mendix/Chart.yaml +++ b/charts/app-mendix/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: app-mendix -version: 3.0.1 +version: 3.0.2 description: Mendix Application Chart. icon: https://cinaq.github.io/helm-charts/icons/mendix-logo.png maintainers: diff --git a/charts/app-mendix/templates/pv.yaml b/charts/app-mendix/templates/pv.yaml index c919941..6d72630 100644 --- a/charts/app-mendix/templates/pv.yaml +++ b/charts/app-mendix/templates/pv.yaml @@ -1,5 +1,4 @@ {{ if .Values.nfsVolume.enabled }} ---- apiVersion: v1 kind: PersistentVolume metadata: diff --git a/charts/app-mendix/templates/pvc.yaml b/charts/app-mendix/templates/pvc.yaml index 989805c..1773749 100644 --- a/charts/app-mendix/templates/pvc.yaml +++ b/charts/app-mendix/templates/pvc.yaml @@ -1,5 +1,4 @@ {{ if .Values.nfsVolume.enabled }} ---- apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/charts/app-mendix/templates/route.yaml b/charts/app-mendix/templates/route.yaml new file mode 100644 index 0000000..709126a --- /dev/null +++ b/charts/app-mendix/templates/route.yaml @@ -0,0 +1,26 @@ +{{- if .Values.route.enabled }} +{{- $serviceName := include "app-mendix.fullname" . -}} +{{- $servicePort := .Values.service.externalPort -}} +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: {{ .Release.Name }} + labels: + {{- include "app-mendix.labels" . | nindent 4 }} + {{- with .Values.route.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + host: {{ .Values.route.host }} + port: + targetPort: {{ $servicePort }} + to: + kind: Service + name: {{ $serviceName }} + {{- if .Values.route.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/app-mendix/values.yaml b/charts/app-mendix/values.yaml index e9cf61b..ce63cfb 100644 --- a/charts/app-mendix/values.yaml +++ b/charts/app-mendix/values.yaml @@ -75,7 +75,7 @@ service: ingress: enabled: true ingressClassName: nginx - domain: paas + domain: app.example.com annotations: {} addHosts: false hosts: [] @@ -83,13 +83,20 @@ ingress: enabled: false # Secrets must be manually created in the namespace. secretName: secret-tls + +# Enable to create openshift route +route: + enabled: false + host: app.example.com + annotations: {} + tls: + enabled: false + networkPolicy: enabled: true ingress: allowed: true autoscale: - # only affects slave deployment - # If enabled, slave replicas starts with minSlaveReplicas enabled: false minSlaveReplicas: 1 maxSlaveReplicas: 3 @@ -141,6 +148,6 @@ metrics: nfsVolume: enabled: false name: mendix-nfs - server: 172.19.0.6 + server: nfs.example.com path: /mnt/mendixdata storage: 10Gi