diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 8b72397..d5a95e3 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -14,8 +14,6 @@ spec: labels: app: {{ .Release.Name }}-app spec: - securityContext: - fsGroup: 1007250000 containers: - name: app image: "{{ .Values.app.repository }}:{{ .Values.app.tag }}" diff --git a/helm/templates/statefulset.yaml b/helm/templates/statefulset.yaml index 8bca48d..f043b5d 100644 --- a/helm/templates/statefulset.yaml +++ b/helm/templates/statefulset.yaml @@ -34,7 +34,7 @@ spec: - metadata: name: data spec: - accessModes: {{ .Values.postgresql.primary.persistence.accessModes }} + accessModes: {{- toYaml .Values.postgresql.primary.persistence.accessModes | nindent 8 }} resources: requests: storage: {{ .Values.postgresql.primary.persistence.size }} diff --git a/helm/values.yaml b/helm/values.yaml index 8b59f9d..57a5699 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -26,12 +26,15 @@ resources: postgresql: enabled: true + image: + repository: postgres + tag: "13" username: postgres password: postgres database: form_templates primary: persistence: - enabled: false + enabled: true size: 512Mi accessModes: - ReadWriteOnce @@ -39,3 +42,4 @@ service: type: ClusterIP postgresPort: 5432 appPort: 3000 +