lwolf / stolon-chart

Kubernetes Helm chart to deploy HA Postgresql cluster based on Stolon
MIT License
105 stars 39 forks source link

How update conf file postgresql #28

Closed monmartins closed 5 years ago

monmartins commented 5 years ago

How i edit and update conf /stolon-data/postgres/postgresql.conf

dineshba commented 5 years ago

We should not manually edit the postgresql.conf because it is generated(and updated) by stolon. We can use pgparameters in cluster_specification to configure our postgres(keeper). Refer here

dineshba commented 5 years ago

@lwolf Shall we close this issue?

monmartins commented 5 years ago

Already use pgparameters but dont work.

monmartins commented 5 years ago

pgParameters: { shared_preload_libraries : "timescaledb"}

lwolf commented 5 years ago

@monmartins do you mind sharing the details? @dineshba correctly pointed you to the way how it supposed to be done.

monmartins commented 5 years ago

After i add line pgParameters: { shared_preload_libraries : "timescaledb"} in values.yaml and install with helm install . appears on my screen that I still need to add the line, I enter through the kubectl exec -it pod bash and in the file /stolon/postgres/postgresql.conf it continues without being configured.

monmartins commented 5 years ago

Resolve edit statefulset.yaml

      env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: STOLONCTL_PATCH
          value: "{ 'pgParameters' : {'shared_preload_libraries' : 'timescaledb' } }"