postgresql-ha persistence size ignored #703

Closed
opened 2024-08-27 11:08:43 +00:00 by Outspoken · 3 comments
Outspoken commented 2024-08-27 11:08:43 +00:00 (Migrated from gitea.com)

The default value of 10Gi is ignored and the volumes created are 8Gi. I change the value to 12Gi and I still get 8Gi.

This part:

postgresql-ha:
  global:
    postgresql:
      database: gitea
      password:
      username:
  enabled: true
  postgresql:
    repmgrPassword:
    postgresPassword:
    password:
  pgpool:
    adminPassword:
  service:
    ports:
      postgresql: 5432
  primary:
    persistence:
      size: 12Gi
persistentvolume/pvc-242d620c-6934-4678-8c07-230c333b1b01   8Gi        RWO            Delete           Bound    gitea/data-gitea-postgresql-ha-postgresql-0   longhorn       <unset>                          19m
persistentvolume/pvc-a296130a-0008-4e3f-ac3d-805a5d734e2f   8Gi        RWO            Delete           Bound    gitea/data-gitea-postgresql-ha-postgresql-1   longhorn       <unset>                          19m
persistentvolume/pvc-bc5b78f2-b0e1-4b96-8851-7c88d4e2c42b   8Gi        RWO            Delete           Bound    gitea/data-gitea-postgresql-ha-postgresql-2   longhorn       <unset>                          19m
The default value of 10Gi is ignored and the volumes created are 8Gi. I change the value to 12Gi and I still get 8Gi. This part: ```yaml postgresql-ha: global: postgresql: database: gitea password: username: enabled: true postgresql: repmgrPassword: postgresPassword: password: pgpool: adminPassword: service: ports: postgresql: 5432 primary: persistence: size: 12Gi ``` ```sh persistentvolume/pvc-242d620c-6934-4678-8c07-230c333b1b01 8Gi RWO Delete Bound gitea/data-gitea-postgresql-ha-postgresql-0 longhorn <unset> 19m persistentvolume/pvc-a296130a-0008-4e3f-ac3d-805a5d734e2f 8Gi RWO Delete Bound gitea/data-gitea-postgresql-ha-postgresql-1 longhorn <unset> 19m persistentvolume/pvc-bc5b78f2-b0e1-4b96-8851-7c88d4e2c42b 8Gi RWO Delete Bound gitea/data-gitea-postgresql-ha-postgresql-2 longhorn <unset> 19m ```
pat-s commented 2024-08-28 08:20:07 +00:00 (Migrated from gitea.com)

Thanks for reporting! Seems like the key for postgresql-ha is in fact persistence.size and doesn't have a leading primary.

70e610c838/bitnami/postgresql-ha/values.yaml (L2044)

If you define persistence.size, it should work right away.

Thanks for reporting! Seems like the key for `postgresql-ha` is in fact `persistence.size` and doesn't have a leading `primary.` https://github.com/bitnami/charts/blob/70e610c83801ad78a7d6370ee830df0ff97c129e/bitnami/postgresql-ha/values.yaml#L2044 If you define `persistence.size`, it should work right away.
Outspoken commented 2024-08-28 09:36:53 +00:00 (Migrated from gitea.com)

Thanks and you're welcome. Happy to help a little.

Another thing that is not quite clear to me is how I can customize the home page with the helm chart. I read the wiki and I've managed it manually in a docker deployment, but the helm chart deployment seems to be different.

I did add a custom theme via a secret and extraMount option. I suspect the extra_links.tmpl needs to be configured in a similar way. I tried adding it manually to test it and placed the file in /data/custom/templates/custom, but that doesn't work. Maybe $GITEA_CUSTOM needs to be set or its set differently in this setup, but I don't know how to check that.

Is this something you can help with as well? Otherwise I'll be happy to ask elsewhere if this is not the place.

Cheers!

Thanks and you're welcome. Happy to help a little. Another thing that is not quite clear to me is how I can customize the home page with the helm chart. I read the wiki and I've managed it manually in a docker deployment, but the helm chart deployment seems to be different. I did add a custom theme via a secret and extraMount option. I suspect the extra_links.tmpl needs to be configured in a similar way. I tried adding it manually to test it and placed the file in /data/custom/templates/custom, but that doesn't work. Maybe $GITEA_CUSTOM needs to be set or its set differently in this setup, but I don't know how to check that. Is this something you can help with as well? Otherwise I'll be happy to ask elsewhere if this is not the place. Cheers!
pat-s commented 2024-08-29 09:19:07 +00:00 (Migrated from gitea.com)

Another thing that is not quite clear to me is how I can customize the home page with the helm chart. I read the wiki and I've managed it manually in a docker deployment, but the helm chart deployment seems to be different.

The helm chart doesn't do anything special here. You just need to mount/overwrite the files in the respective places.
It can be a bit fiddly to get this working in k8s as patching manually and making things persistent is a bit harder. But otherwise, it is the same as running in a container.

Is this something you can help with as well? Otherwise I'll be happy to ask elsewhere if this is not the place.

Surely good to stick to an issue topic and ask separately for new requests 👍 There are many places: Gitea Forum, Discord, git repos.

> Another thing that is not quite clear to me is how I can customize the home page with the helm chart. I read the wiki and I've managed it manually in a docker deployment, but the helm chart deployment seems to be different. The helm chart doesn't do anything special here. You just need to mount/overwrite the files in the respective places. It can be a bit fiddly to get this working in k8s as patching manually and making things persistent is a bit harder. But otherwise, it is the same as running in a container. > Is this something you can help with as well? Otherwise I'll be happy to ask elsewhere if this is not the place. Surely good to stick to an issue topic and ask separately for new requests 👍 There are many places: Gitea Forum, Discord, git repos.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#703
No description provided.