Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.postgres.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -12,4 +13,5 @@ spec:
port: 5432
selector:
{{- include "common.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: postgres
app.kubernetes.io/component: postgres
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.postgres.enabled }}
{{- $secretName := "postgres-secret" }}
apiVersion: v1
kind: Secret
Expand All @@ -14,4 +15,5 @@ data:
"randomDefault" .Values.global.randomizedSecrets
"default" .Values.postgres.secret.rootPassword
"context" $)
}}
}}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.postgres.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -14,4 +15,5 @@ spec:
- name: postgres
port: 5432
protocol: TCP
targetPort: 5432
targetPort: 5432
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.postgres.enabled }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -45,9 +46,9 @@ spec:
key: rootPassword
- name: POSTGRES_DB
value: {{ .Values.postgres.dbname | required "postgres.dbname is required" | quote }}
{{- if .Values.postgres.env }}
{{- toYaml .Values.postgres.env | nindent 12 }}
{{- end }}
{{- if .Values.postgres.env }}
{{- toYaml .Values.postgres.env | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: tmp/data/db
name: postgres-data
Expand All @@ -69,4 +70,5 @@ spec:
resources:
requests:
storage: {{ .Values.postgres.storageSize | quote }}
{{- end }}

2 changes: 2 additions & 0 deletions packages/grid/helm/syft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ global:
# =================================================================================

postgres:
enabled: true
# Postgres config
port: 5432
username: syft_postgres
Expand Down Expand Up @@ -52,6 +53,7 @@ frontend:

# Pod Resource Limits
resourcesPreset: medium
postgres:
resources: null

# =================================================================================
Expand Down