-
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
Support existingSecret for bundled redis and postgres databases #420
Comments
Thanks for filing this issue, @miriamstreit.
|
@LeoColomb |
We are facing here somehow with same issue, we are using ArgoCD and have this netbox als Application. But every time we do an change, the ArgoCD would also try to sync the postgres and redis password to (I geuss it will be regenerated). What are we missing here, any hint is welcome. Chart version: 5.0.0-beta.154 (found on artifacthub) in helm values:
Plan is to use sealed-secrets to seal the secrets and push them to our git which acts as single source of truth. This currently works only for "netbox-config" and "netbox-supervisor". |
This is not the case since some versions for bundled Bitnami PostgreSQL & Redis. If a previously auto-generated password is created, it will try to keep it at the upgrade. ArgoCD does not alter anything in here.
Have you enforced the correct secret keys as expected by the subcharts?
For Redis, under
|
Proposed functionality
As of today, using existingSecrets with the bundled database variations is not possible (see
netbox-chart/charts/netbox/templates/secret.yaml
Line 38 in 73cc21e
Our suggestion would be to remove the check for
.Values.postgresql.enabled
for the postgres and for the redis secret so users can use their own secrets for the bundled databases.Use case
We are trying to set up Netbox on Kubernetes as a proof of concept. For this reason we're using the bundled chart and do not have any external databases yet. Due to the issue of the database passwords being reset when certain components restart (see #36) we are forced to pass fixed passwords to the helm chart. Even though it is just a proof of concept we don't want any passwords in our Git, which would be necessary since we're using ArgoCD to deploy the chart.
We are aware that for production environments it is recommended to use external databases. We believe that removing this limitation would make it easier to get started with a simple proof of concept without going against any other standards such as storing passwords in Git or deploying from local machines.
The text was updated successfully, but these errors were encountered: