nats-operator

Version, currently main branch1 version
  • main branchlatestJul 17, 2025

github.com/jgaskins/nats-operator

Kubernetes operator for spinning up NATS clusters

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  nats-operator:
    github: jgaskins/nats-operator
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.1.0
License
MIT
Author
Jamie Gaskins
Target
  • nats-operator from src/nats-operator.cr

Dependencies

Runtime Dependencies

Development Dependencies

  • nats*github: jgaskins/natsdev

README

nats-operator

Kubernetes operator for running NATS clusters.

Installation

kubectl apply -f https://raw.githubusercontent.com/jgaskins/nats-operator/refs/heads/master/k8s/crd-nats.yaml
kubectl apply -f https://raw.githubusercontent.com/jgaskins/nats-operator/refs/heads/master/k8s/operator-nats.yaml

Usage

echo <<EOF | kubectl apply -f -
---
apiVersion: jgaskins.dev/v1beta1
kind: NATSCluster
metadata:
  name: nats
spec:
  replicas: 5
  jetstreamSize: "10Gi"
  version: 2.11.6
EOF

Contributing

  1. Fork it (https://github.com/your-github-user/nats-operator/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors