From d27f481de75030d94b71e9c18c841e8f7bb52063 Mon Sep 17 00:00:00 2001 From: Tancho Mihov <tancho.mihov@cleverpine.com> Date: Fri, 1 Jul 2022 11:07:15 +0300 Subject: [PATCH] Nats env var added --- Chart.yaml | 4 ++-- README.md | 4 +++- templates/deployment.yaml | 4 ++++ values.yaml | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 2518d95..bd966b1 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 -appVersion: 0.0.2 +appVersion: v0.0.4 description: cache deployment name: cache -version: 0.0.2 +version: 0.0.4 icon: "https://www.vereign.com/wp-content/themes/vereign2020/images/vereign-logo.svg" diff --git a/README.md b/README.md index 934f97b..27aa385 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # cache -  +  cache deployment @@ -18,6 +18,8 @@ cache deployment | cache.http.timeout.idle | string | `"120s"` | | | cache.http.timeout.read | string | `"10s"` | | | cache.http.timeout.write | string | `"10s"` | | +| cache.nats.subject | string | `"external_cache_events"` | | +| cache.nats.url | string | `"nats.ocm:4222"` | | | image.name | string | `"gaiax/cache"` | Image name | | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | | image.pullSecrets | string | `"deployment-key-light"` | Image pull secret when internal image is used | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index ead891f..14abf7c 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -60,6 +60,10 @@ spec: value: {{ .Values.redis.db | quote }} - name: REDIS_EXPIRATION value: {{ .Values.redis.expiration | quote }} + - name: NATS_ADDR + value: {{ .Values.cache.nats.url | quote }} + - name: NATS_SUBJECT + value: {{ .Values.cache.nats.subject | quote }} {{- if .Values.extraVars }} {{ toYaml .Values.extraVars | indent 8 }} {{- end }} diff --git a/values.yaml b/values.yaml index 2b83b2b..a19c5f1 100644 --- a/values.yaml +++ b/values.yaml @@ -94,6 +94,9 @@ cache: idle: 120s read: 10s write: 10s + nats: + url: nats.ocm:4222 + subject: external_cache_events redis: addr: "redis-public-master.infra:6379" -- GitLab