Skip to content

Release v0.2.2

Compare
Choose a tag to compare
@wallyqs wallyqs released this 22 Mar 19:36
871cedc

Image:

synadia/nats-streaming-operator:v0.2.2-v1alpha1

To install:

kubectl apply -f https://github.com/nats-io/nats-streaming-operator/releases/download/v0.2.2/default-rbac.yaml
kubectl apply -f https://github.com/nats-io/nats-streaming-operator/releases/download/v0.2.2/deployment.yaml

Added

  • Added -m 8222 flag to the container to activate the monitoring endpoint.
    Now possible to attach prometheus-exporter to collect metrics as follows:
---
apiVersion: "streaming.nats.io/v1alpha1"
kind: "NatsStreamingCluster"
metadata:
  name: "example-stan"
spec:
  # Number of nodes in the cluster
  size: 3

  # NATS Streaming Server image to use, by default
  # the operator will use a stable version
  # 
  image: "nats-streaming:0.12.2"

  # Service to which NATS Streaming Cluster nodes will connect.
  # 
  natsSvc: "example-nats"

  config:
    debug: true
    trace: true
    raftLogging: true

  template:
    metadata:
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "7777"
    spec:
      containers:

      # Need to list the first container for the server, the operator
      # will fill in the rest of the parameters.
      - name: "stan"

      # Define the sidecar container and the paths that should be polled.
      - name: "metrics"
        image: "synadia/prometheus-nats-exporter:0.2.0"
        args: ["-varz", "-channelz", "-serverz", "http://localhost:8222"]
        ports:
        - name: "metrics"
          containerPort: 7777
          protocol: TCP

Changed

  • Update version of Go.12.1