This adds an option to enable using fault tolerance mode for the case when using shared storage.
---
apiVersion: "streaming.nats.io/v1alpha1"
kind: "NatsStreamingCluster"
metadata:
name: "stan"
spec:
natsSvc: "nats"
size: 3
image: "nats-streaming:latest"
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
template:
spec:
volumes:
- name: stan-store-dir
persistentVolumeClaim:
claimName: efs2
containers:
- name: nats-streaming
volumeMounts:
- mountPath: /pv
name: stan-store-dir
This adds an option to enable using fault tolerance mode for the case when using shared storage.
Signed-off-by: Waldemar Quevedo wally@synadia.com