Closed saitessell closed 6 months ago
This looks like the configuration for the 0.x helm chart. Can you upgrade to the latest 1.x helm chart
https://github.com/nats-io/k8s/blob/main/helm/charts/nats/UPGRADING.md
This is actually the config for 1.x version of helm chart. I took the reference from here https://github.com/nats-io/k8s/blob/nats-1.0.2/helm/charts/nats/values.yaml
Ah ok, I must have misread it then. For the Resources those go under container.merge
and not config.nats
. Also if you are going to give it 5Gi in config.jetstream.memoryStore.maxSize
you will want to make sure to request more than that amount of memory:
https://github.com/nats-io/k8s/blob/nats-1.0.2/helm/charts/nats/README.md#nats-container-resources
container:
env:
# different from k8s units, suffix must be B, KiB, MiB, GiB, or TiB
# should be ~90% of memory limit
GOMEMLIMIT: 7GiB
merge:
# recommended limit is at least 2 CPU cores and 8Gi Memory for production JetStream clusters
resources:
requests:
cpu: "2"
memory: 8Gi
limits:
cpu: "2"
memory: 8Gi
From the looks of it, your containers are not able to establish network connectivity to one another. For example it looks like you named your deployment nats-service
. So from nats-service-0
pod you should be able to resolve and connect to nats-service-1.nats-service-headless
and nats-service-2.nats-service-headless
What version were you using?
Helm chart 1.0.2
My NATS Helm chart values file is
With this configuration i am unable to get the NATS running and i am seeing the following logs in any of the nats pod