Skip to content
Merged
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
3 changes: 3 additions & 0 deletions templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ data:
# This is pgdog.toml. You can configure anything here, incl. databases.
pgdog.toml: |
[general]
{{- if hasKey .Values "host" }}
host = {{ .Values.host | quote }}
{{- end }}
{{- if hasKey .Values "port" }}
port = {{ include "pgdog.intval" .Values.port }}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ spec:
{{- if .Values.service.internalTrafficPolicy }}
internalTrafficPolicy: {{ .Values.service.internalTrafficPolicy | quote }}
{{- end }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
{{- if .Values.service.ipFamilies }}
ipFamilies: {{- toYaml .Values.service.ipFamilies | nindent 4 }}
{{- end }}
ports:
- name: pgdog
protocol: TCP
Expand Down
15 changes: 15 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ image:
# If set, this takes precedence over repository and tag for backward
# compatibility
# name: ghcr.io/pgdogdev/pgdog:main
# host specifies the network interface IP address to bind to.
# Default: "0.0.0.0" (IPv4 only)
# For IPv6 dual-stack support, use "::"
# Not set by default to maintain backward compatibility.
# host: "::"
# port on which PgDog will run.
port: 6432
# healthcheckPort on which PgDog will expose healthcheck endpoint
Expand Down Expand Up @@ -342,6 +347,16 @@ service:
# routed (Cluster or Local).
# see https://kubernetes.io/docs/reference/networking/virtual-ips/#internal-traffic-policy for more details.
internalTrafficPolicy: ""
# ipFamilyPolicy controls IP family behavior for the service.
# Valid values: SingleStack, PreferDualStack, RequireDualStack
# Leave empty to use cluster defaults.
# Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
ipFamilyPolicy: ""
# ipFamilies specifies which IP families to use for the service.
# Example for dual-stack: ["IPv4", "IPv6"]
# Leave empty to use cluster defaults.
# Note: Order matters - first family is primary.
ipFamilies: []
# aws configures AWS Load Balancer Controller annotations
# When enabled, service type is automatically set to LoadBalancer
aws:
Expand Down
Loading