nats-io / k8s

NATS on Kubernetes with Helm Charts
Apache License 2.0
457 stars 306 forks source link

[nats helm] Support config for `gateway.gateways` and `leafnodes.remotes` #772

Open caleblloyd opened 1 year ago

caleblloyd commented 1 year ago

gateway.gateways and leafnodes.remotes are both lists that support a tls block

Also, a server might not need to be listening on the leafnodes port in order to have a leafnodes.remote block. The same may be true of a gateway. If this is the case, these should probably be keys under config such as config.leafnodeRemotes and config.gatewayRemotes so that the Leafnodes/Gateways Servers can be managed separately from Clients

J11522 commented 10 months ago

Any updates on this? We are currently running into trouble configuring the remotes for the leafnodes when it comes to the cluster credentials. Having dedicated keys would greatly help, e.g. mounting the credentials file from a secret is (AFAIK) currently not possible.

Alternatively this could be solved using generic extraVolume/extraVolumeMounts pattern. If you feel this is something that could be done, I can create a dedicated ticket and potentially provide input

mccullough-ea commented 6 months ago

I had to hard code the ca_file path for our leafnodes for each of the remotes that offer certs signed by our private CA.

tls:
  ca_file: /etc/nats-ca-cert/ca.crt

I would love the remotes to be able to inherit the settings from tlsCA like all the other sections.

tommyjcarpenter commented 6 months ago

Adding my support for this. I raised an issue that was seemingly a duplicate before finding this.