diff --git a/Chart.yaml b/Chart.yaml index 2518d95445d4687c96de0a7f00b06d097b8454cd..bd966b11fd70fe37925a8398e428eb7077cc1538 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 934f97bfac120849573f4e16aff1b5e1c9c7845f..27aa385dd562a651c623102363d0c79b4a1ab883 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 ead891f441212c38121816123dd38db9ae1367d0..14abf7cc8d886f344bcd6c5559f292d0f253b137 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 2b83b2b0a31b05672db64e65b74403fd41a4c937..a19c5f1567eac4b5c4e743da8bc7ee916c313d4c 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"