-
Notifications
You must be signed in to change notification settings - Fork 161
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
Bundled postgresql does not survive chart upgrade #36
Comments
Hmm, yes, good catch. Do you have any thoughts about how to avoid this problem? I mean, aside from strongly recommending that an external PostgreSQL instance should be used, I guess... |
I suspect the culprit is https://github.com/bootc/netbox-chart/blob/master/templates/configmap.yaml#L27.
Given this, the best (read: simplest) course of action (aside from using an external instance, of course), is probably just to set
|
If the PostgreSQL password is not explicitly supplied during chart installation or upgrades, a random password is generated and used when initialising the database. On future upgrades a new password is generated in the PostgreSQL Secret resource but the database password is not changed, so the two go out of sync. This leads to NetBox and its rqworker failing to start. Closes #36
I think the best approach is to make it clear in the README that the password must be supplied if you're using the bundled PostgreSQL: b851d9f Are you happy that that covers this problem off? |
After a chart upgrade, the netbox pod crash-loops with the following output:
It appears that the default database credentials generated with the bundled chart do not persist upgrade. This can be reproduced by added a noop annotation (or modifying the config map) and running
helm upgrade
The text was updated successfully, but these errors were encountered: