diff --git a/stable/nats/Chart.yaml b/stable/nats/Chart.yaml index dc3515648d..20a280cae9 100644 --- a/stable/nats/Chart.yaml +++ b/stable/nats/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: nats -version: 4.2.13 +version: 4.3.0 appVersion: 2.1.4 description: An open-source, cloud-native messaging system keywords: diff --git a/stable/nats/README.md b/stable/nats/README.md index cf9b49b151..b8bb2818cb 100644 --- a/stable/nats/README.md +++ b/stable/nats/README.md @@ -108,6 +108,7 @@ The following table lists the configurable parameters of the NATS chart and thei | `cluster.service.nodePort` | Port to bind to for NodePort service type (NATS cluster) | `nil` | | `cluster.service.annotations` | Annotations for NATS cluster service | {} | | `cluster.service.loadBalancerIP` | loadBalancerIP if NATS cluster service type is `LoadBalancer` | `nil` | +| `cluster.connectRetries` | Configure number of connect retries for implicit routes | `nil` | | `monitoring.service.type` | Kubernetes Service type (NATS monitoring) | `ClusterIP` | | `monitoring.service.port` | NATS monitoring port | `8222` | | `monitoring.service.nodePort` | Port to bind to for NodePort service type (NATS monitoring) | `nil` | diff --git a/stable/nats/templates/configmap.yaml b/stable/nats/templates/configmap.yaml index 757a654624..56715b3aea 100644 --- a/stable/nats/templates/configmap.yaml +++ b/stable/nats/templates/configmap.yaml @@ -81,4 +81,9 @@ data: nats://{{ template "nats.fullname" . }}-cluster:{{ .Values.cluster.service.port }} {{- end }} ] + + {{- if .Values.cluster.connectRetries }} + # Configure number of connect retries for implicit routes + connect_retries: {{ .Values.cluster.connectRetries }} + {{- end }} } diff --git a/stable/nats/values-production.yaml b/stable/nats/values-production.yaml index 2ed9c7e316..fafa6ffd34 100644 --- a/stable/nats/values-production.yaml +++ b/stable/nats/values-production.yaml @@ -200,6 +200,10 @@ client: ## ref: https://github.com/nats-io/gnatsd#clustering ## cluster: + ## Use connectRetries to configure number of connect retries for implicit routes, + ## otherwise leave blank + ## + # connectRetries: service: ## Kubernetes service type type: ClusterIP diff --git a/stable/nats/values.yaml b/stable/nats/values.yaml index 735cf64b4e..113e9d4937 100644 --- a/stable/nats/values.yaml +++ b/stable/nats/values.yaml @@ -200,6 +200,10 @@ client: ## ref: https://github.com/nats-io/gnatsd#clustering ## cluster: + ## Use connectRetries to configure number of connect retries for implicit routes, + ## otherwise leave blank + ## + # connectRetries: service: ## Kubernetes service type type: ClusterIP