Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable specifying sidecars via chart #2468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions charts/postgres-operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ data:
{{- include "flattenValuesForConfigMap" .Values.configTeamsApi | indent 2 }}
{{- include "flattenValuesForConfigMap" .Values.configConnectionPooler | indent 2 }}
{{- include "flattenValuesForConfigMap" .Values.configPatroni | indent 2 }}
{{- include "flattenValuesForConfigMap" .Values.configSidecars | indent 2 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ configuration:
{{ toYaml .Values.configConnectionPooler | indent 4 }}
patroni:
{{ toYaml .Values.configPatroni | indent 4 }}
sidecars:
{{ toYaml .Values.configSidecars | indent 4 }}
{{- end }}
20 changes: 20 additions & 0 deletions charts/postgres-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,26 @@ configPatroni:
# enable Patroni DCS failsafe_mode feature
enable_patroni_failsafe_mode: false

# Specifies a list of sidecars to include in all deployments
configSidecars: {}
# - name: exporter
# image: quay.io/prometheuscommunity/postgres-exporter
# ports:
# - name: exporter
# containerPort: 9187
# protocol: TCP
# resources:
# requests:
# cpu: 50m
# memory: 200M
# env:
# - name: "DATA_SOURCE_URI"
# value: "$(POD_NAME)/postgres?sslmode=disable"
# - name: "DATA_SOURCE_USER"
# value: "$(POSTGRES_USER)"
# - name: "DATA_SOURCE_PASS"
# value: "$(POSTGRES_PASSWORD)"

# Zalando's internal CDC stream feature
enableStreams: false

Expand Down
Loading