From 3008abea97113b2fd317dde9b5d06b19086ac597 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Fri, 20 Dec 2019 15:07:58 -0800 Subject: [PATCH] Update manifests Signed-off-by: Waldemar Quevedo --- README.md | 31 ++++++++++++++++++++++- deploy/deployment-rbac.yaml | 4 +-- deploy/deployment.yaml | 2 +- deploy/examples/example-stan-ft-mode.yaml | 3 --- 4 files changed, 33 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 19d903c..8fa98d2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![License Apache 2.0](https://img.shields.io/badge/License-Apache2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Build Status](https://travis-ci.org/nats-io/nats-streaming-operator.svg?branch=master)](https://travis-ci.org/nats-io/nats-streaming-operator) -[![Version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=go&type=5&v=0.2.2)](https://github.com/nats-io/nats-streaming-operator/releases/tag/v0.2.2) +[![Version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=go&type=5&v=0.3.0)](https://github.com/nats-io/nats-streaming-operator/releases/tag/v0.3.0) Operator for managing NATS Streaming clusters running on [Kubernetes](http://kubernetes.io). @@ -259,6 +259,35 @@ spec: name: stan-store-dir ``` +### Using a custom store dir and fault tolerance mode + +```yaml +--- +apiVersion: "streaming.nats.io/v1alpha1" +kind: "NatsStreamingCluster" +metadata: + name: "example-stan-pv" +spec: + natsSvc: "example-nats" + + config: + storeDir: "/pv/stan" + ftGroup: "stan" + + # Define mounts in the Pod Spec + template: + spec: + volumes: + - name: stan-store-dir + persistentVolumeClaim: + claimName: streaming-pvc + containers: + - name: nats-streaming + volumeMounts: + - mountPath: /pv + name: stan-store-dir +``` + ## Development ### Building the Docker Image diff --git a/deploy/deployment-rbac.yaml b/deploy/deployment-rbac.yaml index 34290ca..817bb3f 100644 --- a/deploy/deployment-rbac.yaml +++ b/deploy/deployment-rbac.yaml @@ -25,7 +25,7 @@ metadata: name: nats-streaming-operator namespace: nats-io --- -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: nats-streaming-operator @@ -43,7 +43,7 @@ spec: serviceAccountName: nats-streaming-operator containers: - name: nats-streaming-operator - image: synadia/nats-streaming-operator:v0.2.2-v1alpha1 + image: synadia/nats-streaming-operator:v0.3.0-v1alpha1 imagePullPolicy: Always env: - name: MY_POD_NAMESPACE diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index b47d1c6..3cc6546 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: nats-streaming-operator containers: - name: nats-streaming-operator - image: synadia/nats-streaming-operator:v0.2.2-v1alpha1 + image: synadia/nats-streaming-operator:v0.3.0-v1alpha1 imagePullPolicy: Always env: - name: MY_POD_NAMESPACE diff --git a/deploy/examples/example-stan-ft-mode.yaml b/deploy/examples/example-stan-ft-mode.yaml index ba5ce45..74b9df0 100644 --- a/deploy/examples/example-stan-ft-mode.yaml +++ b/deploy/examples/example-stan-ft-mode.yaml @@ -11,9 +11,6 @@ spec: config: storeDir: "/pv/stan" - - # When this option is introduced, the servers are restarted - # one by one until they are all running with ft mode. ftGroup: "stan" # Define mounts in the Pod Spec