Browse Source

Leave only one discourse volume

master
Fábio Kaiser Rauber 3 years ago
parent
commit
17600b03a4
  1. 19
      charts/edemocracia/v0.4.0/templates/discourse-assets-pvc.yaml
  2. 19
      charts/edemocracia/v0.4.0/templates/discourse-cache-pvc.yaml
  3. 25
      charts/edemocracia/v0.4.0/templates/discourse-deployment.yaml
  4. 19
      charts/edemocracia/v0.4.0/templates/discourse-img-pvc.yaml
  5. 2
      charts/edemocracia/v0.4.0/templates/discourse-pvc.yaml

19
charts/edemocracia/v0.4.0/templates/discourse-assets-pvc.yaml

@ -1,19 +0,0 @@
{{- if .Values.discourse.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-assets
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/discourse-cache-pvc.yaml

@ -1,19 +0,0 @@
{{- if .Values.discourse.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-cache
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

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

@ -95,28 +95,23 @@ spec:
{{- toYaml .Values.discourse.resources | nindent 12 }} {{- toYaml .Values.discourse.resources | nindent 12 }}
volumeMounts: volumeMounts:
- mountPath: /var/www/discourse/public/assets/ - 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/ - 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/ - 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/ - mountPath: /var/www/discourse/tmp/stylesheet-cache/
name: {{ include "edemocracia.fullname" . }}-discourse-cache name: {{ include "edemocracia.fullname" . }}-discourse
subPath: stylesheet-cache
restartPolicy: Always restartPolicy: Always
serviceAccountName: "" serviceAccountName: ""
volumes: volumes:
- 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: persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-cache claimName: {{ include "edemocracia.fullname" . }}-discourse
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

19
charts/edemocracia/v0.4.0/templates/discourse-img-pvc.yaml

@ -1,19 +0,0 @@
{{- if .Values.discourse.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-img
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

2
charts/edemocracia/v0.4.0/templates/discourse-js-pvc.yaml → charts/edemocracia/v0.4.0/templates/discourse-pvc.yaml

@ -2,7 +2,7 @@
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-js name: {{ include "edemocracia.fullname" . }}-discourse
spec: spec:
accessModes: accessModes:
- {{ .Values.discourse.persistence.accessMode }} - {{ .Values.discourse.persistence.accessMode }}
Loading…
Cancel
Save