Coder Social home page Coder Social logo

Comments (5)

caleblloyd avatar caleblloyd commented on June 18, 2024

Please include your values.yaml file that recreates this

from k8s.

faizanbashir avatar faizanbashir commented on June 18, 2024

@caleblloyd, I used two values.yaml files. One was the default values.yaml given in the repo. Another is given below:

# values.yaml for NATS Helm chart

# Cluster configuration
cluster:
  enabled: false
  replicas: 3  # Number of NATS server nodes for high availability

# JetStream configuration
jetstream:
  enabled: true
  memStorage:
    enabled: true
    size: 2Gi  # Memory storage size for JetStream
  fileStorage:
    enabled: true
    size: 10Gi  # File storage size for JetStream
    storageDirectory: /data/jetstream  # Directory for file storage
    storageClassName: fast-ssd  # StorageClass for the persistent volume

# Resource allocation
resources:
  limits:
    cpu: 2  # CPU limit for each NATS server pod
    memory: 4Gi  # Memory limit for each NATS server pod
  requests:
    cpu: 1  # CPU request for each NATS server pod
    memory: 2Gi  # Memory request for each NATS server pod

# Security configuration
auth:
  enabled: false
  systemAccountEnabled: true  # Enable the system account for monitoring and administration
  users:
    - username: admin
      password: your-admin-password
      permissions:
        publish: ">"
        subscribe: ">"
    - username: app-user
      password: your-app-user-password
      permissions:
        publish: "foo.>"
        subscribe: "foo.>"

# Monitoring and metrics
metrics:
  enabled: true  # Enable Prometheus metrics
  port: 7777
  path: /metrics

# NATS Exporter for Prometheus
natsExporter:
  enabled: true
  image: natsio/prometheus-nats-exporter
  version: 0.9.0
  resources:
    requests:
      cpu: 100m
      memory: 128Mi
    limits:
      cpu: 200m
      memory: 256Mi

from k8s.

caleblloyd avatar caleblloyd commented on June 18, 2024

This is the 0.x values.yaml format. You should continue to use chart version 0.19.17 until you upgrade

Here is the upgrade guide

from k8s.

faizanbashir avatar faizanbashir commented on June 18, 2024

@caleblloyd, i tried the chart version 0.19.17 and looks like its working. Thanks.

Is there any reference file for the 1.x values.yaml?

from k8s.

caleblloyd avatar caleblloyd commented on June 18, 2024

Great. Yes the best docs page is on ArtifactHub:

https://artifacthub.io/packages/helm/nats/nats

from k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.