Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the current state of STAN clustered on GCP? #62

Open
jdoig opened this issue Jan 20, 2020 · 1 comment
Open

What's the current state of STAN clustered on GCP? #62

jdoig opened this issue Jan 20, 2020 · 1 comment

Comments

@jdoig
Copy link

jdoig commented Jan 20, 2020

I'm currently trying to get NATS streaming (file based persistence) working clustered on K8s on GCP and was wondering what state this project is in for that particular use case.

Currently basic set up seems broken: #61

And replies to this issue seem to suggest using auto node updates isn't possible: #40

And this issue seems to suggest clustered, file based persistence isn't working: #23

Have I misunderstood any of these issues? And if not is there a project that meets these needs?

@wallyqs
Copy link
Member

wallyqs commented Jan 20, 2020

This operator has to be updated to use statefulsets which should have been the way to go. So for GCP, I'd suggest starting with statefulsets and volume claims for now, that would be a simple way to start. Sharing some examples here:

# Create NATS cluster
kubectl apply -f https://raw.githubusercontent.com/nats-io/k8s/master/nats-server/simple-nats.yml

# Create STAN cluster
kubectl apply -f https://raw.githubusercontent.com/nats-io/k8s/master/nats-streaming-server/simple-stan.yml

# Create nats-box with tools
kubectl run -i --rm --tty nats-box --image=synadia/nats-box --restart=Never

# Send message to NATS
# nats-sub -s nats hello &
# nats-pub -s nats hello world

# Send/Receive message to STAN
# stan-pub -s nats -c stan hello world
# stan-sub -s nats -c stan hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants