Skip to content

Self-host in Kubernetes: cannot connect to postgres #3542

Discussion options

You must be logged in to vote

If you decide to mount a custom runtime.exs, I think this patch is all that's needed wrt to [email protected]

--- runtime.exs
+++ runtime_custom.exs
@@ -302,6 +302,15 @@
   inet6: maybe_ch_ipv6
 ]

+ch_cacertfile = get_var_from_path_or_env(config_dir, "CLICKHOUSE_CACERTFILE")
+
+ch_transport_opts =
+  if ch_cacertfile do
+    ch_transport_opts ++ [cacertfile: ch_cacertfile]
+  else
+    ch_transport_opts
+  end
+
 config :plausible, Plausible.ClickhouseRepo,
   loggers: [Ecto.LogEntry],
   queue_target: 500,

Replies: 2 comments 48 replies

Comment options

You must be logged in to vote
35 replies
@ruslandoga
Comment options

@digital88
Comment options

@ruslandoga
Comment options

@ruslandoga
Comment options

@digital88
Comment options

Comment options

You must be logged in to vote
13 replies
@ruslandoga
Comment options

@ruslandoga
Comment options

@digital88
Comment options

@ruslandoga
Comment options

Answer selected by digital88
@digital88
Comment options

@adrien-barret
Comment options

@digital88
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants