Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

charts/timescaledb-single: add imagePullSecrets #351

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ayeks
Copy link

@ayeks ayeks commented Mar 22, 2022

Using a private repository was not possible before, so I added the imagePullSecrets to the StatefulSet.

You can now define an existing secret from the same namespace. Example:

image:
  repository: docker.yourcompany.com/timescale/timescaledb-ha
  tag: pg13.4-ts2.4.2-p0
  pullPolicy: IfNotPresent

imagePullSecrets:
- name: registry-credentials

Checkout https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ for detailed information.

to statefulset-timescaledb.yaml for the StatefulSet
@c-p-b
Copy link

c-p-b commented Mar 29, 2022

Any chance this will make it in the next release? Currently I have to run a local version of this chart only because of this change.

@@ -41,6 +41,10 @@ spec:
runAsGroup: {{ template "postgres.uid" }}
runAsNonRoot: true
runAsUser: {{ template "postgres.uid" }}
{{- if .Values.imagePullSecrets }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the field in values.yaml and schema files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants