Allow sidecars for NATS. (#6746)

* Allow sidecars to be added to NATS.

* NATS version bump.

* Mention option to add sidecars in README.

* Correct default value in README.
This commit is contained in:
alexplischke
2018-07-25 01:26:56 -07:00
committed by k8s-ci-robot
parent 607a185692
commit de371f1f8c
5 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: nats
version: 0.0.2
version: 0.0.3
appVersion: 1.1.0
description: An open-source, cloud-native messaging system
keywords:
+16
View File
@@ -114,9 +114,11 @@ The following table lists the configurable parameters of the NATS chart and thei
| `ingress.secrets[0].key` | TLS Secret Key | `nil` |
| `networkPolicy.enabled` | Enable NetworkPolicy | `false` |
| `networkPolicy.allowExternal` | Allow external connections | `true` |
| `sidecars` | Attach additional containers to the pod. | `nil` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```bash
$ helm install --name my-release \
--set auth.enabled=true,auth.user=my-user,auth.password=T0pS3cr3t \
@@ -133,6 +135,20 @@ $ helm install --name my-release -f values.yaml stable/nats
> **Tip**: You can use the default [values.yaml](values.yaml)
## Sidecars
If you have a need for additional containers to run within the same pod as NATS (e.g. an additional metrics or logging exporter), you can do so via the `sidecars` config parameter. Simply define your container according to the Kubernetes container spec.
```yaml
sidecars:
- name: your-image-name
image: your-image
imagePullPolicy: Always
ports:
- name: portname
containerPort: 1234
```
## Production settings and horizontal scaling
The [values-production.yaml](values-production.yaml) file consists a configuration to deploy a scalable and high-available NATS deployment for production environments. We recommend that you base your production configuration on this template and adjust the parameters appropriately.
+3
View File
@@ -113,6 +113,9 @@ spec:
- name: config
mountPath: /opt/bitnami/nats/gnatsd.conf
subPath: gnatsd.conf
{{- if .Values.sidecars }}
{{ toYaml .Values.sidecars | indent 6 }}
{{- end }}
volumes:
- name: config
configMap:
+10
View File
@@ -239,3 +239,13 @@ ingress:
# - name: nats.local-tls
# key:
# certificate:
sidecars:
## Add sidecars to the pod.
## e.g.
# - name: your-image-name
# image: your-image
# imagePullPolicy: Always
# ports:
# - name: portname
# containerPort: 1234
+10
View File
@@ -243,3 +243,13 @@ ingress:
# - name: nats.local-tls
# key:
# certificate:
sidecars:
## Add sidecars to the pod.
## e.g.
# - name: your-image-name
# image: your-image
# imagePullPolicy: Always
# ports:
# - name: portname
# containerPort: 1234