-
Notifications
You must be signed in to change notification settings - Fork 224
Add CA to allow custom Certificates #641
Comments
I was able to figure out how to get the CA into Patroni, HOWEVER< it seems to have broken the cluster due to everything talking via SSL, lots of SSL related errors, so more investigation required
|
OK, so its confirmed its a Patroni Issue Setting
Will break the cluster, as this tells patroni to communicate with Kubernetes for DCS and Kubernetes knows nothing of that CA, pods will not start I checked a running container's
I was able to prove that Patroni is ignoring the
VOLIA
It worked .. So I will need a more permanent solution Leaving this here in case anyone else stumbles across this issue |
Finally tracked this down to the docker image build: |
We are migrating from a Zalando based Kubernetes Postgres installation to TimescaleDB
We use Teleport to manage all of our cluster, kuybernetes and database access. Teleport requires that we use a custom, teleport generated ssl tls cert, which we have done, but we are getting ssl connection failures as clients cannot verify the cert, meaning we need to add the root ca to postgreSQL.
Zalando had a neat way to do this in the CRDs, one simply added ca.crt as an additional field on the cert secret, and it happened automatically.
I have been looking into this in depth, and see that Patroni has this option
but no ability to specify the ca mount in this config
There is also this issue which notes that Patroni is using serviceaccount token and ca.crt from /var/run/secrets/kubernetes.io/serviceaccount/
patroni/patroni#1758
AND
I see from here https://patroni.readthedocs.io/en/latest/ENVIRONMENT.html#kubernetes that:
SO
My thought is to use that last notion as an env var, no worries, BUT, I now find there is no way to mount that CA file into the pod, as the Helm chart does not provide for a Volume Mount
Has anyone got any suggestions, unfortunately, we cannot currently use timescaleDB as it's air-gapped behind teleport, a teleport Db SSL connection is the only way we have to get to it .. so I need to get that CA file from Teleport in there somehow. I realize I may be missing something obvious, but so far I cannot see it
Thanks in advance
Mark
The text was updated successfully, but these errors were encountered: