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

kustomize: persist DB_URI for managed postgres (PROJQUAY-1635) #451

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

alecmerdler
Copy link
Contributor

Change DB_URI to be persisted rather than generated on each
reconcile. This prevents downtime on reconciles because the old and
new Quay pods continue to use the same database password.

Signed-off-by: Alec Merdler alecmerdler@gmail.com

@alecmerdler alecmerdler force-pushed the PROJQUAY-1635 branch 3 times, most recently from 7dbea33 to 84ea60b Compare April 28, 2021 21:05
@@ -6,8 +6,6 @@ metadata:
quay-component: postgres
spec:
replicas: 1
strategy:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: the Postgres pod will still be recreated, but changing the strategy to type: RollingUpdate and persisting the password across reconciles means the database will remain available.

curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/
mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
export PATH=$PATH:/usr/local/kubebuilder/bin
curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/$(go env GOOS)/$(go env GOARCH)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change DB_URI to be persisted rather than generated on each
reconcile. This prevents downtime on reconciles because the old and
new Quay pods continue to use the same database password.

Signed-off-by: Alec Merdler <alecmerdler@gmail.com>
@alecmerdler alecmerdler merged commit fcaf16b into quay:master Apr 28, 2021
@alecmerdler alecmerdler deleted the PROJQUAY-1635 branch April 28, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant