-
Hi, I'm trying to deploy Kratos in Kubernetes. I already have a distributed cockroachdb running in secure mode inside the cluster. One of the problems that I'm trying to solve now (I say one of the problems, because ory stack is fairly complicated to deploy and helm documentation is very minimal, so more issues will arise for sure) is how to deal with database certificates. An example on cockroachdb git page example-app-secure.yaml does this in three steps: How can I reproduce this using Kratos helm chart? I tried to attach an InitContainer without success. I'm fairly lost, Kratos documentation on helm deploy is very little. As a workaround I tried to connect Kratos using an insecure database connection (using user and password already created inside the db), cockroachdb refuse the connection because is not secure, so this doesn't seems an option. Any help would be very appreciated as I been trying this for days without success. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I've been digging more and I think I just answered my self: I can use helm post-renderer (aka Kustomize) and apply some modification to the generated helm resource before it is applied to the API server. So I guess I could add an init container and mount the certificate volume afterwards to the kratos container. I'm still confused about other init container that kratos helm has. Particularly the one is checking that the dns connection is OK(?) I'm guessing I will have to remove this check as I'm not sure how I can give the certificates to that init container... Tomorrow I will try this but I'm still quite confused. Any more suited/easy solution will be welcomed. |
Beta Was this translation helpful? Give feedback.
-
@tricky42 you can probably answer this :) |
Beta Was this translation helpful? Give feedback.
@tricky42 you can probably answer this :)