Skip to content

Commit

Permalink
quayapp(deploymenttemplate): mounting optional postgres certs (PROJQU…
Browse files Browse the repository at this point in the history
…AY-2417) (#854)

Mounts Postgres certificates that can be used for authentication into the container if they exist.
  • Loading branch information
michaelalang committed Sep 17, 2024
1 parent 2df7310 commit 8b6bf40
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kustomize/base/quay.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ spec:
name: cluster-trusted-ca
- secret:
name: extra-ca-certs
- name: postgres-certs
projected:
sources:
- secret:
name: postgresql-ca
optional: true
- secret:
name: postgresql-client-certs
optional: true
- name: postgres-certs-store
emptyDir:
sizeLimit: 5Mi
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -129,3 +141,7 @@ spec:
- name: extra-ca-certs
readOnly: true
mountPath: /conf/stack/extra_ca_certs
- name: postgres-certs
mountPath: /run/secrets/postgresql
- name: postgres-certs-store
mountPath: /.postgressql
16 changes: 16 additions & 0 deletions kustomize/components/job/quay.upgrade.job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ spec:
name: cluster-trusted-ca
- secret:
name: extra-ca-certs
- name: postgres-certs
projected:
sources:
- secret:
name: postgresql-ca
optional: true
- secret:
name: postgresql-client-certs
optional: true
- name: postgres-certs-store
emptyDir:
sizeLimit: 5Mi
containers:
- name: quay-app-upgrade
image: quay.io/projectquay/quay:latest
Expand Down Expand Up @@ -69,3 +81,7 @@ spec:
- name: extra-ca-certs
readOnly: true
mountPath: /conf/stack/extra_ca_certs
- name: postgres-certs
mountPath: /run/secrets/postgresql
- name: postgres-certs-store
mountPath: /.postgressql

0 comments on commit 8b6bf40

Please sign in to comment.