Browse Source

Fix nginx discourse volumes

master
Fábio Kaiser Rauber 3 years ago
parent
commit
9542c554bc
  1. 25
      charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml

25
charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml

@ -59,13 +59,17 @@ spec:
{{- end }}
{{- if .Values.discourse.enabled }}
- mountPath: /var/www/discourse/public/assets/
name: {{ include "edemocracia.fullname" . }}-discourse-assets
name: {{ include "edemocracia.fullname" . }}-discourse
subPath: assets
- mountPath: /var/www/discourse/public/javascripts/
name: {{ include "edemocracia.fullname" . }}-discourse-js
name: {{ include "edemocracia.fullname" . }}-discourse
subPath: javascripts
- mountPath: /var/www/discourse/public/images/
name: {{ include "edemocracia.fullname" . }}-discourse-img
name: {{ include "edemocracia.fullname" . }}-discourse
subPath: images
- mountPath: /var/www/discourse/tmp/stylesheet-cache/
name: {{ include "edemocracia.fullname" . }}-discourse-cache
name: {{ include "edemocracia.fullname" . }}-discourse
subPath: stylesheet-cache
{{- end }}
restartPolicy: Always
serviceAccountName: ""
@ -84,18 +88,9 @@ spec:
claimName: {{ include "edemocracia.fullname" . }}-audiencias
{{- end }}
{{- if .Values.discourse.enabled }}
- name: {{ include "edemocracia.fullname" . }}-discourse-assets
- name: {{ include "edemocracia.fullname" . }}-discourse
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-assets
- name: {{ include "edemocracia.fullname" . }}-discourse-js
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-js
- name: {{ include "edemocracia.fullname" . }}-discourse-img
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-img
- name: {{ include "edemocracia.fullname" . }}-discourse-cache
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-cache
claimName: {{ include "edemocracia.fullname" . }}-discourse
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:

Loading…
Cancel
Save