nats-io / nats-streaming-operator

NATS Streaming Operator
Apache License 2.0
174 stars 44 forks source link

Store Limits Configuration #27

Closed Ryner51 closed 5 years ago

Ryner51 commented 5 years ago

How do I configure the Store Limits of the NATS Streaming Server?

For example, I want to set the number of subscriptions to be unlimited as well as increase the message payload. When I was using NATS Streaming Server locally, I was able to pass in different parameters to change these settings.

wallyqs commented 5 years ago

you could create a secret with the configuration parameters as per the streaming docs then mount it on the container via the template field:

---
apiVersion: "streaming.nats.io/v1alpha1"
kind: "NatsStreamingCluster"
metadata:
  name: "example-stan"
spec:
  natsSvc: "example-nats"

  configFile: "/etc/stan/config/secret.conf"

  # Define Pod Spec
  template:
    spec:
      volumes:
      - name: stan-secret
        secret:
          secretName: stan-secret
      containers:
        - name: nats-streaming
          volumeMounts:
          - mountPath: /etc/stan/config
            name: stan-secret
            readOnly: true
Ryner51 commented 5 years ago

Awesome. Will try it out. Thanks so much for the quick reply.

wallyqs commented 5 years ago

np, ok will close this one for now