You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presumption: This chart doesn't appear to support configuring a database other than H2 (I would be happily wrong, am I missing something?)
Expectation: The helm chart would support configuring Postgres, MySQL, etc. via db.properties, including secrets retrieval for DB credentials, and so on.
Again, unless I'm missing something, is the expectation that users would customize the gocd-server image?
We are looking to implement this now outside the helm chart if necessary. My use case is specifically with Google Cloud SQL. If I produce any decent way to do it, I'll report back.
Does anyone have an example of how they configured the secret for this? Using volume mounts doesn't work as it makes the config directory a read only file system on newer versions of Kubernetes
If that's not what you're after hit me up because I do have it working.
Thank you this is what I was after, thank you. I tried the above but then got an error when the server pod started complaining that the config directory was a read only file system...
Did you mount the whole secret or specific items only? Would need to be specific items for the single file. Otherwise you're mounting the secret over the whole config folder.
Activity
chadlwilson commentedon Oct 23, 2021
Since you can mount arbitrary volumes with
server.persistence.extraVolume(Mount|s)I think you should be able to mountdb.propertiesfrom aSecretorConfigMapinto the config dir. https://github.com/gocd/helm-chart/tree/master/gocd#server-persistence-valuesNot super easy, no, but possible I think? Have you tried that out?
brettcurtis commentedon Nov 15, 2021
We are looking to implement this now outside the helm chart if necessary. My use case is specifically with Google Cloud SQL. If I produce any decent way to do it, I'll report back.
brettcurtis commentedon Jan 6, 2022
We ended up using a sidecar container in the helm chart for this:
Along with db.properties as a secret in the helm chart as well. Seems to be a satisfactory solution if you're running on GKE using Cloud SQL.
absa-rsuarez commentedon Oct 19, 2022
Does anyone have an example of how they configured the secret for this? Using volume mounts doesn't work as it makes the config directory a read only file system on newer versions of Kubernetes
brettcurtis commentedon Oct 19, 2022
you mean the db.properties? Here is my code:
My values:
If that's not what you're after hit me up because I do have it working.
absa-rsuarez commentedon Oct 19, 2022
Thank you this is what I was after, thank you. I tried the above but then got an error when the server pod started complaining that the config directory was a read only file system...
chadlwilson commentedon Oct 19, 2022
Did you mount the whole secret or specific items only? Would need to be specific items for the single file. Otherwise you're mounting the secret over the whole config folder.