From ba66484ba475201049e38d228b845b7d30504089 Mon Sep 17 00:00:00 2001 From: Tomasz Pietrek Date: Mon, 22 Jan 2024 17:53:23 +0100 Subject: [PATCH] Fix installation guide (#163) closes #157 * Fix installation guide * Update examples to use file storage This change was made so the default example config from new Nats Helm Charts work out of the box with Nack examples. Signed-off-by: Tomasz Pietrek --- README.md | 2 +- deploy/examples/stream.yml | 2 +- deploy/examples/stream_mirror.yml | 2 +- deploy/examples/stream_placement.yml | 2 +- deploy/examples/stream_sources.yml | 2 +- deploy/examples/streamtemplate.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 139482af..11c9c6ec 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Now install with Helm: ``` helm repo add nats https://nats-io.github.io/k8s/helm/charts/ -helm install nats nats/nats --set=nats.jetstream.enabled=true +helm install nats nats/nats --set=config.jetstream.enabled=true helm install nack nats/nack --set jetstream.nats.url=nats://nats:4222 ``` diff --git a/deploy/examples/stream.yml b/deploy/examples/stream.yml index 281fa395..092fb857 100644 --- a/deploy/examples/stream.yml +++ b/deploy/examples/stream.yml @@ -6,6 +6,6 @@ metadata: spec: name: mystream subjects: ["orders.*"] - storage: memory + storage: file maxAge: 1h replicas: 1 diff --git a/deploy/examples/stream_mirror.yml b/deploy/examples/stream_mirror.yml index df879c39..0d3e187f 100644 --- a/deploy/examples/stream_mirror.yml +++ b/deploy/examples/stream_mirror.yml @@ -5,7 +5,7 @@ metadata: name: mystream-mirror spec: name: mystream-mirror - storage: memory + storage: file mirror: name: my-publish-subj externalApiPrefix: FOO.JS.API diff --git a/deploy/examples/stream_placement.yml b/deploy/examples/stream_placement.yml index 560293bf..f605d4fb 100644 --- a/deploy/examples/stream_placement.yml +++ b/deploy/examples/stream_placement.yml @@ -5,7 +5,7 @@ metadata: name: mystream-placement spec: name: mystream-placement - storage: memory + storage: file placement: tags: - NODE_0 diff --git a/deploy/examples/stream_sources.yml b/deploy/examples/stream_sources.yml index e302bde0..dee97cd2 100644 --- a/deploy/examples/stream_sources.yml +++ b/deploy/examples/stream_sources.yml @@ -5,7 +5,7 @@ metadata: name: mystream-sources spec: name: mystream-sources - storage: memory + storage: file sources: - name: m1 - name: m2 diff --git a/deploy/examples/streamtemplate.yml b/deploy/examples/streamtemplate.yml index d093c506..18ded203 100644 --- a/deploy/examples/streamtemplate.yml +++ b/deploy/examples/streamtemplate.yml @@ -12,5 +12,5 @@ spec: name: mystreamtemplate maxStreams: 2 subjects: ["orders.*"] - storage: memory + storage: file maxAge: 1h