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
10 changes: 10 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- end }}
{{- with .Values.extraInitContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: pgdog
{{- if .Values.image.name }}
Expand Down Expand Up @@ -94,6 +98,9 @@ spec:
mountPath: /etc/pgdog
- name: users
mountPath: /etc/secrets/pgdog
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.prometheusPort }}
- name: prom
image: prom/prometheus
Expand Down Expand Up @@ -151,6 +158,9 @@ spec:
- name: prom
configMap:
name: {{ include "pgdog.fullname" . }}-prom
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
29 changes: 29 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,35 @@ statefulSet:
# enabled switches from Deployment to StatefulSet
enabled: false

# Extra customization for advanced use cases
# extraInitContainers allows adding custom init containers that run before the main pgdog container
# Init containers are useful for setup tasks like downloading certificates, waiting for dependencies, etc.
# Example:
# extraInitContainers:
# - name: init-ca
# image: busybox
# command: ['sh', '-c', 'wget -O /pki/ca-bundle.pem https://truststore.example.com/ca-bundle.pem']
# volumeMounts:
# - name: pki
# mountPath: /pki
extraInitContainers: []

# extraVolumes allows adding custom volumes to the pod
# These volumes can be referenced by extraVolumeMounts or extraInitContainers
# Example:
# extraVolumes:
# - name: pki
# emptyDir: {}
extraVolumes: []

# extraVolumeMounts allows adding custom volume mounts to the main pgdog container
# The volumes must be defined in extraVolumes
# Example:
# extraVolumeMounts:
# - name: pki
# mountPath: /pki
extraVolumeMounts: []

# resources define resource requests and limits for the pgdog container
# Note: requests and limits are set to the same values for Guaranteed QoS
# Ratio: 1GB memory per 1 CPU (1000m CPU = 1Gi memory)
Expand Down
Loading