Skip to content

Commit

Permalink
Merge branch 'release/v0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyqs committed Dec 20, 2019
2 parents 11c50be + 3008abe commit e13a807
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions deploy/deployment-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions deploy/examples/example-stan-ft-mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e13a807

Please sign in to comment.