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

Enable DB support via helm chart #173

Open
adamjk-dev opened this issue May 2, 2024 · 1 comment
Open

Enable DB support via helm chart #173

adamjk-dev opened this issue May 2, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@adamjk-dev
Copy link

As far as I can tell, there is no way to pass along extra env variables via env variables or a config map to load etc. into the container.

This would be the way to point to a different database correct?

Can the helm chart be updated to expose a way to set those env variables or read env variables from a named ConfigMap etc.?

@k3rnelpan1c-dev k3rnelpan1c-dev added the good first issue Good for newcomers label May 25, 2024
@PAStheLoD
Copy link

Maybe a bit too much black (bash) magic, but anyone who ends up here might consider doing "helm template + yq + kubectl apply" instead of install.

To add the env vars with yq to the statefulset.yaml use something like this:

yq  -i '
  .spec.template.spec.containers[0].env += [
     {
        "name":  "UPTIME_KUMA_DB_TYPE",
        "value": "my-fancy-db"
     }, {
      "name": "UPTIME_KUMA_DB_HOSTNAME",
      "value": "here.there.svc.local"
     }
  ]  
' statefulSet.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants