diff --git a/charts/airbyte/templates/airbyte-db.yaml b/charts/airbyte/templates/airbyte-db.yaml index 91cbd65892..843f62450d 100644 --- a/charts/airbyte/templates/airbyte-db.yaml +++ b/charts/airbyte/templates/airbyte-db.yaml @@ -60,6 +60,9 @@ spec: volumeMounts: - name: airbyte-volume-db mountPath: /var/lib/postgresql/data + {{- if .Values.postgresql.resources }} + resources: {{- toYaml .Values.postgresql.resources | nindent 12 }} + {{- end }} {{- with .Values.postgresql.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/airbyte/values.yaml b/charts/airbyte/values.yaml index 1f20859a51..055d2c51aa 100644 --- a/charts/airbyte/values.yaml +++ b/charts/airbyte/values.yaml @@ -1706,6 +1706,21 @@ postgresql: # https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity affinity: {} + # -- postgresql pod resources requests and limits + resources: + ## Example: + ## limits: + ## cpu: 1 + ## memory: 2Gi + # -- The resources limits for the postgresql container + limits: {} + ## Examples: + ## requests: + ## memory: 2Gi + ## cpu: 200m + # -- The requested resources for the postgresql container + requests: {} + # External PostgreSQL configuration, All of these values are only used when postgresql.enabled is set to false externalDatabase: # -- Database host diff --git a/charts/v2/airbyte/templates/airbyte-db.yaml b/charts/v2/airbyte/templates/airbyte-db.yaml index 91cbd65892..843f62450d 100644 --- a/charts/v2/airbyte/templates/airbyte-db.yaml +++ b/charts/v2/airbyte/templates/airbyte-db.yaml @@ -60,6 +60,9 @@ spec: volumeMounts: - name: airbyte-volume-db mountPath: /var/lib/postgresql/data + {{- if .Values.postgresql.resources }} + resources: {{- toYaml .Values.postgresql.resources | nindent 12 }} + {{- end }} {{- with .Values.postgresql.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/v2/airbyte/values.yaml b/charts/v2/airbyte/values.yaml index 3a0a174d47..9ce9b353df 100644 --- a/charts/v2/airbyte/values.yaml +++ b/charts/v2/airbyte/values.yaml @@ -2025,6 +2025,21 @@ postgresql: # https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity affinity: {} + # -- postgresql pod resources requests and limits + resources: + ## Example: + ## limits: + ## cpu: 1 + ## memory: 2Gi + # -- The resources limits for the postgresql container + limits: {} + ## Examples: + ## requests: + ## memory: 2Gi + ## cpu: 200m + # -- The requested resources for the postgresql container + requests: {} + minio: secretName: ""