NATS on Kubernetes example

In a previous blog, you saw an example of NATS along with producer and consumer — based on Docker Compose. This post uses the same app, but runs on Kubernetes

For how to run, follow the README on Github

High level overview

The NATS Kubernetes operator is used here

  • it seeds a CRD
NATS Kubernetes Service object

The environment variable corresponding to the Serviceis used in the application logic to locate NATS server. Note its usage here

Cheers!

Originally published at simplydistributed.wordpress.com on May 2, 2018.

Currently working with Kafka, Databases, Azure, Kubernetes and related open source projects | Confluent Community Catalyst (for Kafka)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store