values.yaml 29.3 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Used to generate top-level secrets (overridden by custom-values.yaml)
16

17
18
19
20
21
22
23
global:
  etcd:
    # -- Whether this chart should install the bundled etcd subchart.
    # When true, deploys etcd and auto-configures the operator with its address.
    # When false, etcd is not deployed. Use dynamo-operator.etcdAddr to point at an external instance if you are bringing your own etcd.
    install: false

24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  kai-scheduler:
    # -- Whether this chart should install the bundled kai-scheduler subchart.
    # When true, deploys kai-scheduler and its CRDs. Integration is automatically enabled.
    # NOTE: For production environments, it is recommended to install kai-scheduler separately.
    install: false
    # -- Whether to enable Kai Scheduler integration (queue creation, schedulerName injection).
    # Set to true when kai-scheduler is available in the cluster (installed externally).
    # Automatically enabled when install=true. The operator uses this to decide whether to
    # inject schedulerName and queue labels into pod templates.
    enabled: false

  grove:
    # -- Whether this chart should install the bundled Grove subchart.
    # When true, deploys the Grove operator cluster-wide. Integration is automatically enabled.
    # NOTE: For production environments, it is recommended to install Grove separately.
    install: false
    # -- Whether to enable Grove integration (multinode orchestration via PodCliqueSets).
    # Set to true when Grove is available in the cluster (installed externally).
    # Automatically true when install=true. The operator uses this to decide whether to
    # create PodCliqueSets for multinode deployments.
    enabled: false

46
47
48
# Subcharts configuration

# Dynamo operator configuration
49
dynamo-operator:
50
  # -- Whether to enable the Dynamo Kubernetes operator deployment
51
  enabled: true
52

53
54
55
56
  # -- Whether to manage CRDs via a pre-install/pre-upgrade hook Job.
  # The Job runs the operator image with the crd-apply tool to apply CRDs via server-side apply.
  upgradeCRD: true

57
58
59
  # Environment variables to pass to operator Deployment.
  env: []

60
  # -- NATS server address for operator communication (leave empty to use the bundled NATS chart). Format: "nats://hostname:port"
61
  natsAddr: ""
62

63
  # -- etcd server address for an external etcd instance. Only needed when using external etcd without the bundled subchart. Format: "http://hostname:port" or "https://hostname:port"
64
  etcdAddr: ""
65

Biswa Panda's avatar
Biswa Panda committed
66
67
68
69
  nats:
    # -- Whether the NATS is enabled
    enabled: true

70
71
  # -- URL for the Model Express server if not deployed by this helm chart. This is ignored if Model Express server is installed by this helm chart (global.model-express.enabled is true).
  modelExpressURL: ""
72
  # -- DEPRECATED: Namespace-restricted mode is deprecated and will be removed in a future release. Use cluster-wide mode (the default) instead. Do not enable this for new deployments.
73
  namespaceRestriction:
74
    # -- DEPRECATED: Do not enable for new deployments. Namespace-restricted mode is deprecated.
75
    enabled: false
76
    # -- DEPRECATED: Only used in namespace-restricted mode, which is deprecated.
77
    targetNamespace:
78
    # -- DEPRECATED: Only used in namespace-restricted mode, which is deprecated.
79
    lease:
80
      # -- DEPRECATED: Lease duration for namespace-restricted mode, which is deprecated.
81
      duration: 30s
82
      # -- DEPRECATED: Lease renew interval for namespace-restricted mode, which is deprecated.
83
84
      renewInterval: 10s

85
  # -- DEPRECATED: GPU discovery for namespace-scoped operators is deprecated along with namespace-restricted mode.
86
  gpuDiscovery:
87
    # -- DEPRECATED: Only relevant when namespaceRestriction is enabled, which is deprecated.
88
89
    enabled: true

90
91
  # -- The Dynamo discovery backend to use. Default is "kubernetes" for Kubernetes API service discovery. Set to "etcd" to use ETCD for discovery. --
  discoveryBackend: "kubernetes"
92
93

  # Controller manager configuration
94
  controllerManager:
95
    # -- Node tolerations for controller manager pods
96
    tolerations: []
97

98
    # -- Affinity for controller manager pods
99
    affinity: {}
100

101
102
103
104
105
106
107
    # Leader election configuration for cluster-wide coordination
    leaderElection:
      # -- Leader election ID for cluster-wide coordination. WARNING: All cluster-wide operators must use the SAME ID to prevent split-brain. Different IDs would allow multiple leaders simultaneously.
      id: ""  # If empty, defaults to: dynamo.nvidia.com (shared across all cluster-wide operators)
      # -- Namespace for leader election leases (only used in cluster-wide mode). If empty, defaults to kube-system for cluster-wide coordination. All cluster-wide operators should use the SAME namespace for proper leader election.
      namespace: ""

108
    manager:
109
      # Container image configuration for the operator manager
110
      image:
111
        # -- Official NVIDIA Dynamo operator image repository
112
        repository: "nvcr.io/nvidia/ai-dynamo/kubernetes-operator"
113
        # -- Image tag (leave empty to use chart default)
114
        tag: ""
115
        # -- Image pull policy - when to pull the image
116
        pullPolicy: IfNotPresent
117
118

      # Command line arguments for the operator manager
119
      args:
120
        # -- Health probe endpoint for Kubernetes health checks
121
        - --health-probe-bind-address=:8081
122
        # -- Metrics endpoint for Prometheus scraping (localhost only for security)
123
        - --metrics-bind-address=127.0.0.1:8080
124
125

  # -- Secrets for pulling private container images
126
  imagePullSecrets: []
127
128

  # Core Dynamo platform configuration
129
  dynamo:
130
    # -- How long to wait before forcefully terminating Grove instances
131
    groveTerminationDelay: 4h
132
133

    # Docker registry configuration for private repositories
134
    dockerRegistry:
135
      # -- Whether to use Kubernetes secrets for registry authentication
136
      useKubernetesSecret: false
137
      # -- Docker registry server URL
138
      server:
139
      # -- Registry username
140
      username:
141
      # -- Registry password (consider using existingSecretName instead)
142
      password:
143
      # -- Name of existing Kubernetes secret containing registry credentials
144
      existingSecretName:
145
      # -- Whether the registry uses HTTPS
146
      secure: true
147
148

    # Ingress configuration for external access
149
    ingress:
150
      # -- Whether to create ingress resources
151
      enabled: false
152
      # -- Ingress class name (e.g., "nginx", "traefik")
153
      className:
154
      # -- Secret name containing TLS certificates
155
      tlsSecretName: my-tls-secret
156
157

    # Istio service mesh configuration
158
    istio:
159
      # -- Whether to enable Istio integration
160
      enabled: false
161
      # -- Istio gateway name for routing
162
      gateway:
163
164

    # -- Host suffix for generated ingress hostnames
165
    ingressHostSuffix: ""
166
167

    # -- Whether VirtualServices should support HTTPS routing
168
    virtualServiceSupportsHTTPS: false
169

170
171
172
173
174
    # Metrics configuration
    metrics:
      # -- Endpoint that services can use to retrieve metrics. If set, dynamo operator will automatically inject the PROMETHEUS_ENDPOINT environment variable into services it manages. Users can override the value of the PROMETHEUS_ENDPOINT environment variable by modifying the corresponding deployment's environment variables
      prometheusEndpoint: ""

175
176
177
178
179
    # MPI Run configuration
    mpiRun:
      # -- Name of the secret containing the SSH key for MPI Run
      secretName: "mpi-run-ssh-secret"

180
181
182
183
184
185
186
  # Webhook configuration for admission control and validation
  webhook:
    # Certificate configuration for webhook TLS
    certificateSecret:
      # -- Name of the Kubernetes secret containing webhook TLS certificates. The secret must contain three keys: tls.crt (server certificate), tls.key (server private key), and ca.crt (Certificate Authority certificate).
      name: webhook-server-cert

187
      # -- Whether to manage the certificate secret externally. When false (default), the operator's built-in cert-controller generates and rotates certificates automatically. When true, you must create the secret manually before installing the chart.
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
      external: false

    # -- CA bundle (base64 encoded) for webhook validation. Only used when certificateSecret.external=true. For automatic certificate generation or cert-manager integration, leave this empty as it will be injected automatically.
    caBundle: ""

    # -- Webhook failure policy controls how Kubernetes handles requests when the webhook is unavailable. 'Fail' (recommended for production) rejects requests if the webhook cannot be reached, ensuring strict validation. 'Ignore' allows requests through if the webhook is unavailable, providing availability over validation guarantees.
    failurePolicy: Fail

    # -- Timeout in seconds for webhook validation calls. If the webhook doesn't respond within this time, the request will be handled according to the failurePolicy.
    timeoutSeconds: 10

    # Namespace selector for webhook scope control
    # -- Custom namespace selector for webhook validation. Use this to include or exclude specific namespaces from webhook validation. For CLUSTER-WIDE operators, you can exclude namespaces managed by namespace-restricted operators by using: matchExpressions: [{ key: "dynamo-operator", operator: "NotIn", values: ["namespace-restricted"] }]. For NAMESPACE-RESTRICTED operators, leave empty as it will be auto-configured to match only the operator's namespace.
    namespaceSelector: {}

    # cert-manager integration for automated certificate lifecycle management
    certManager:
205
      # -- Whether to use cert-manager for automatic certificate management. Requires cert-manager to be installed in the cluster. When enabled, cert-manager will provision and rotate certificates instead of the operator's built-in cert-controller.
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
      enabled: false

      # Certificate configuration for cert-manager
      certificate:
        # -- Certificate duration for webhook certificates managed by cert-manager (e.g., "8760h" for 1 year). cert-manager will automatically renew the certificate before it expires.
        duration: "8760h"

        # -- Time before certificate expiration to trigger renewal (e.g., "360h" for 15 days). cert-manager will attempt to renew the certificate when this threshold is reached.
        renewBefore: "360h"

        # Root CA configuration for cert-manager
        rootCA:
          # -- Duration for the root CA certificate (e.g., "87600h" for 10 years). The root CA typically has a much longer lifetime than the leaf certificates it signs.
          duration: "87600h"

          # -- Time before root CA expiration to trigger renewal (e.g., "720h" for 30 days). Renewing a CA can be disruptive as all signed certificates must be reissued.
          renewBefore: "720h"

224
225
  # Checkpoint configuration for fast pod restore using CRIU/cuda-checkpoint
  # NOTE: The checkpoint infrastructure (PVC + DaemonSet) must be installed separately
226
  # using the snapshot Helm chart in each namespace where checkpointing is needed.
227
228
  checkpoint:
    # -- Whether to enable checkpoint/restore functionality
229
    enabled: false
230

231
232
233
    # -- Path written by worker when model is loaded and ready for checkpointing
    readyForCheckpointFilePath: "/tmp/ready-for-checkpoint"

234
# Grove component - distributed inference orchestration
235
# Installation is controlled by global.grove.install above.
236
grove:
237
238
239
240
  # -- Node tolerations for Grove pods
  tolerations: []
  # -- Affinity for Grove pods
  affinity: {}
241
242

# Kai Scheduler component - advanced workload scheduling
243
244
# Installation is controlled by global.kai-scheduler.install above.
# Integration is controlled by global.kai-scheduler.enabled above.
245
kai-scheduler:
246
247
248
249
250
251
  # Global configuration for kai-scheduler (applies to all components including crd-upgrader)
  global:
    # -- Node tolerations for kai-scheduler pods
    tolerations: []
    # -- Affinity for kai-scheduler pods
    affinity: {}
252

253
254
# etcd configuration - distributed key-value store
# Installation is controlled by global.etcd.install above.
255
etcd:
256
  image:
257
    # -- following bitnami announcement for brownout - https://github.com/bitnami/charts/tree/main/bitnami/etcd#%EF%B8%8F-important-notice-upcoming-changes-to-the-bitnami-catalog, we need to use the legacy repository until we migrate to the new "secure" repository
258
    repository: bitnamilegacy/etcd
259
    tag: 3.5.18-debian-12-r5
260

261
  # Persistent storage configuration for etcd data
262
  persistence:
263
    # Whether to enable persistent storage (recommended for production)
264
265
266
    enabled: true
    # Use the cluster default storage-class or override with a named class
    storageClass: null
267
    # Size of persistent volume for etcd data
268
    size: 1Gi
269
270

  # Pre-upgrade job configuration
271
  preUpgradeJob:
272
    # Whether to run pre-upgrade validation jobs
273
    enabled: false
274
275

  # Number of etcd replicas (1 for single-node, 3+ for HA)
276
  replicaCount: 1
277
278
279

  # Authentication and authorization settings
  # Explicitly remove authentication for simplified internal communication
280
281
  auth:
    rbac:
282
      # Whether to create RBAC authentication (disabled for internal use)
283
284
      create: false

285
  # Health check configuration
286
  readinessProbe:
287
    # Whether to enable readiness probes (disabled to reduce startup complexity)
288
289
290
    enabled: false

  livenessProbe:
291
    # Whether to enable liveness probes (disabled to reduce startup complexity)
292
293
    enabled: false

294
295
296
297
298
299
  # Pod Disruption Budget configuration
  # Should be enabled for HA deployments with 3+ replicas
  pdb:
    # Whether to create a PodDisruptionBudget (disabled for single-node deployments)
    create: false

300
  # Node tolerations for etcd pods (allows scheduling on specific nodes)
301
302
  tolerations: []

303
304
305
  # Affinity for etcd pods
  affinity: {}

306
# NATS configuration - messaging system for operator communication
307
nats:
308
  # -- Whether to enable NATS deployment, disable if you want to use an external NATS instance. For complete configuration options, see: https://github.com/nats-io/k8s/tree/main/helm/charts/nats , all nats settings should be prefixed with "nats."
309
  enabled: true
310
311
312
313

  # TLS Certificate Authority configuration for secure communication
  # Reference a common CA Certificate or Bundle in all nats config `tls` blocks and nats-box contexts
  # Note: `tls.verify` still must be set in the appropriate nats config `tls` blocks to require mTLS
314
  tlsCA:
315
    # Whether to enable TLS CA configuration
316
317
    enabled: false

318
  # Core NATS server configuration
319
  config:
320
    # NATS clustering for high availability (multiple NATS servers)
321
    cluster:
322
      # Whether to enable NATS clustering (disabled for single-node setups)
323
324
      enabled: false

325
    # JetStream - persistent messaging and streaming capabilities
326
    jetstream:
327
      # Whether to enable JetStream (recommended for persistent messaging)
328
329
      enabled: true

330
      # File-based storage for JetStream streams and consumers
331
      fileStore:
332
        # Whether to enable file storage (persistent across restarts)
333
        enabled: true
334
        # Directory path for JetStream file storage
335
336
337
        dir: /data

        ############################################################
338
        # Persistent Volume Claim for JetStream file storage
339
340
        ############################################################
        pvc:
341
          # Whether to create a PVC for JetStream storage
342
          enabled: true
343
          # Size of the persistent volume for JetStream data
344
          size: 10Gi
345
          # Storage class name (leave empty for default)
346
347
          storageClassName:

348
          # Advanced PVC configuration (merge additional fields)
349
350
351
          # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#persistentvolumeclaim-v1-core
          merge: {}
          patch: []
352
          # PVC name (defaults to "{{ include "nats.fullname" $ }}-js")
353
354
          name:

355
        # Maximum size for JetStream file storage (defaults to PVC size)
356
357
        maxSize:

358
      # Memory-based storage for JetStream (non-persistent)
359
      memoryStore:
360
        # Whether to enable memory storage (faster but not persistent)
361
362
        enabled: false

363
364
      # Advanced JetStream configuration
      # For options see: https://docs.nats.io/running-a-nats-service/configuration#jetstream
365
366
367
      merge: {}
      patch: []

368
    # Core NATS server settings
369
    nats:
370
      # Port for NATS client connections
371
      port: 4222
372
373

      # TLS configuration for encrypted connections
374
      tls:
375
        # Whether to enable TLS encryption
376
        enabled: false
377
378
        # Advanced TLS configuration
        # For options see: https://docs.nats.io/running-a-nats-service/configuration/securing_nats/tls
379
380
381
        merge: {}
        patch: []

382
    # Leaf nodes for creating NATS topologies and remote connections
383
    leafnodes:
384
      # Whether to enable leaf node connections
385
386
      enabled: false

387
    # WebSocket support for browser-based NATS clients
388
    websocket:
389
      # Whether to enable WebSocket protocol support
390
391
      enabled: false

392
    # MQTT protocol bridge for IoT device connectivity
393
    mqtt:
394
      # Whether to enable MQTT protocol support
395
396
      enabled: false

397
    # Gateway connections for multi-cluster NATS deployments
398
    gateway:
399
      # Whether to enable gateway connections
400
401
      enabled: false

402
    # HTTP monitoring endpoint for NATS server metrics
403
    monitor:
404
      # Whether to enable HTTP monitoring interface
405
      enabled: true
406
      # Port for monitoring HTTP endpoint
407
      port: 8222
408
409

      # TLS configuration for monitoring endpoint
410
      tls:
411
412
        # Whether to enable HTTPS for monitoring (requires config.nats.tls enabled)
        # When enabled, monitoring port will use HTTPS with the options from config.nats.tls
413
414
        enabled: false

415
    # Go pprof profiling endpoint for performance debugging
416
    profiling:
417
      # Whether to enable profiling endpoint (for debugging only)
418
      enabled: false
419
      # Port for profiling endpoint
420
421
      port: 65432

422
    # Account resolver for multi-tenant NATS deployments
423
    resolver:
424
      # Whether to enable account resolution (for advanced multi-tenancy)
425
426
      enabled: false

427
428
429
    # Server naming configuration
    # Adds a prefix to the server name, which defaults to the pod name
    # Helpful for ensuring server name is unique in a super cluster
430
431
    serverNamePrefix: ""

432
433
434
    # Advanced NATS configuration merging and patching
    # For complete options see: https://docs.nats.io/running-a-nats-service/configuration
    # Special rules apply:
435
436
437
438
439
    #  1. strings that start with << and end with >> will be unquoted
    #     use this for variables and numbers with units
    #  2. keys ending in $include will be switched to include directives
    #     keys are sorted alphabetically, use prefix before $includes to control includes ordering
    #     paths should be relative to /etc/nats-config/nats.conf
440
    # Example:
441
442
443
444
445
446
447
448
    #   merge:
    #     $include: ./my-config.conf
    #     zzz$include: ./my-config-last.conf
    #     server_name: nats
    #     authorization:
    #       token: << $TOKEN >>
    #     jetstream:
    #       max_memory_store: << 1GB >>
449
    merge:
450
451
452
      # 15MB to accommodate prompt embeddings: 10MB decoded → ~13.3MB base64-encoded + metadata
      # Also allows larger context: 256K tokens (int32 - 4 bytes each) = 1MB
      max_payload: 15728640
453
454
455
    patch: []

  ############################################################
456
  # NATS container configuration in StatefulSet
457
458
  ############################################################
  container:
459
    # NATS server container image configuration
460
    image:
461
      # Official NATS server repository
462
      repository: nats
463
      # NATS server version (Alpine-based for smaller size)
464
      tag: 2.10.21-alpine
465
      # Image pull policy (leave empty for chart default)
466
      pullPolicy:
467
      # Custom registry URL (leave empty for Docker Hub)
468
469
      registry:

470
471
    # Container port configuration
    # Note: Ports must also be enabled in the config section above
472
473
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#containerport-v1-core
    ports:
474
      # Main NATS client connection port
475
      nats: {}
476
      # Leaf node connection port
477
      leafnodes: {}
478
      # WebSocket connection port
479
      websocket: {}
480
      # MQTT protocol port
481
      mqtt: {}
482
      # Cluster communication port
483
      cluster: {}
484
      # Gateway connection port
485
      gateway: {}
486
      # HTTP monitoring port
487
      monitor: {}
488
      # Go profiling port
489
490
      profiling: {}

491
492
493
    # Environment variables for the NATS container
    # Map with key as env var name, value can be string or map
    # Example:
494
495
496
497
498
499
500
501
502
    #   env:
    #     GOMEMLIMIT: 7GiB
    #     TOKEN:
    #       valueFrom:
    #         secretKeyRef:
    #           name: nats-auth
    #           key: token
    env: {}

503
    # Advanced container configuration merging and patching
504
505
506
507
508
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#container-v1-core
    merge: {}
    patch: []

  ############################################################
509
  # Configuration reloader container for hot config updates
510
511
  ############################################################
  reloader:
512
    # Whether to enable the config reloader sidecar container
513
    enabled: true
514
515

    # Config reloader container image
516
    image:
517
      # Official NATS config reloader repository
518
      repository: natsio/nats-server-config-reloader
519
      # Config reloader version
520
      tag: 0.16.0
521
      # Image pull policy (leave empty for chart default)
522
      pullPolicy:
523
      # Custom registry URL (leave empty for Docker Hub)
524
525
      registry:

526
    # Environment variables for the reloader container
527
528
    env: {}

529
530
    # Volume mount prefixes from NATS container to share with reloader
    # All NATS container volume mounts with these prefixes will be mounted into the reloader
531
532
533
    natsVolumeMountPrefixes:
    - /etc/

534
    # Advanced reloader container configuration
535
536
537
538
539
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#container-v1-core
    merge: {}
    patch: []

  ############################################################
540
  # Prometheus metrics exporter container (optional)
541
  ############################################################
542
  # Note: config.monitor must be enabled for this to work
543
  promExporter:
544
    # Whether to enable Prometheus metrics exporter sidecar
545
546
547
    enabled: false

  ############################################################
548
  # Kubernetes Service for NATS access
549
550
  ############################################################
  service:
551
    # Whether to create a Kubernetes Service for NATS
552
553
    enabled: true

554
555
556
    # Service port configuration
    # Additional boolean field 'enabled' controls whether port is exposed in the service
    # Note: Ports must also be enabled in the config section above
557
558
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#serviceport-v1-core
    ports:
559
      # Main NATS client connection port
560
561
      nats:
        enabled: true
562
      # Leaf node connection port
563
564
      leafnodes:
        enabled: true
565
      # WebSocket connection port
566
567
      websocket:
        enabled: true
568
      # MQTT protocol port
569
570
      mqtt:
        enabled: true
571
      # Cluster communication port (typically internal only)
572
573
      cluster:
        enabled: false
574
      # Gateway connection port (typically internal only)
575
576
      gateway:
        enabled: false
577
      # HTTP monitoring port (typically internal only)
578
579
      monitor:
        enabled: false
580
      # Go profiling port (typically internal only)
581
582
583
      profiling:
        enabled: false

584
    # Advanced service configuration
585
586
587
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#service-v1-core
    merge: {}
    patch: []
588
    # Service name (defaults to "{{ include "nats.fullname" $ }}")
589
590
591
    name:

  ############################################################
592
  # Advanced NATS Kubernetes resource configuration
593
594
  ############################################################

595
  # StatefulSet configuration for NATS server persistence
596
  statefulSet:
597
    # Advanced StatefulSet configuration merging and patching
598
599
600
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#statefulset-v1-apps
    merge: {}
    patch: []
601
    # StatefulSet name (defaults to "{{ include "nats.fullname" $ }}")
602
603
    name:

604
  # Pod template configuration for NATS StatefulSet
605
  podTemplate:
606
607
    # Whether to add a hash of the ConfigMap as a pod annotation
    # This will cause the StatefulSet to roll when the ConfigMap is updated
608
609
    configChecksumAnnotation: true

610
611
612
613
614
615
616
    # Pod topology spread constraints for better distribution across nodes
    # Map of topologyKey: topologySpreadConstraint
    # labelSelector will be added automatically to match StatefulSet pods
    # Example:
    #   topologySpreadConstraints:
    #     kubernetes.io/hostname:
    #       maxSkew: 1
617
618
    topologySpreadConstraints: {}

619
    # Advanced pod template configuration
620
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#pod-v1-core
621
622
    merge:
      spec:
623
        # Node tolerations for NATS pods (allows scheduling on specific nodes)
624
        tolerations: []
625
626
        # Affinity for NATS pods
        affinity: {}
627
628
    patch: []

629
  # Headless service for StatefulSet pod discovery
630
  headlessService:
631
    # Advanced headless service configuration
632
633
634
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#service-v1-core
    merge: {}
    patch: []
635
    # Headless service name (defaults to "{{ include "nats.fullname" $ }}-headless")
636
637
    name:

638
  # ConfigMap for NATS server configuration
639
  configMap:
640
    # Advanced ConfigMap configuration
641
642
643
    # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#configmap-v1-core
    merge: {}
    patch: []
644
    # ConfigMap name (defaults to "{{ include "nats.fullname" $ }}-config")
645
646
    name:

647
  # Pod Disruption Budget for controlled rolling updates
648
  podDisruptionBudget:
649
    # Whether to create a PodDisruptionBudget (recommended for production)
650
651
    enabled: true

652
  # Service Account for NATS server pods
653
  serviceAccount:
654
    # Whether to create and use a dedicated service account
655
656
657
    enabled: false

  ############################################################
658
659
  # NATS Box - CLI tools and debugging container
  # NATS Box provides CLI tools for interacting with NATS server
660
661
  ############################################################
  natsBox:
662
    # Whether to deploy NATS Box for CLI access and debugging
663
    enabled: false
664
665

    ############################################################
666
    # NATS client contexts for authentication and connection
667
668
    ############################################################
    contexts:
669
      # Default context configuration
670
      default:
671
        # Credentials-based authentication
672
        creds:
673
          # Inline credentials file contents (base64 encoded)
674
          contents:
675
          # Name of existing secret containing credentials file
676
          secretName:
677
          # Directory to mount credentials (defaults to /etc/nats-creds/<context-name>)
678
          dir:
679
          # Key name in secret for credentials file
680
          key: nats.creds
681
682

        # NKey-based authentication (public/private key pairs)
683
        nkey:
684
          # Inline NKey file contents (base64 encoded)
685
          contents:
686
          # Name of existing secret containing NKey file
687
          secretName:
688
          # Directory to mount NKey (defaults to /etc/nats-nkeys/<context-name>)
689
          dir:
690
          # Key name in secret for NKey file
691
          key: nats.nk
692
693

        # TLS client certificate authentication
694
        tls:
695
          # Name of existing secret containing TLS client certificates
696
          secretName:
697
          # Directory to mount certificates (defaults to /etc/nats-certs/<context-name>)
698
          dir:
699
          # Certificate file name in secret
700
          cert: tls.crt
701
          # Private key file name in secret
702
703
          key: tls.key

704
705
        # Advanced context configuration
        # For options see: https://docs.nats.io/using-nats/nats-tools/nats_cli#nats-contexts
706
707
708
        merge: {}
        patch: []

709
    # Name of context to select by default for NATS CLI operations
710
711
712
    defaultContextName: default

    ############################################################
713
    # NATS Box container configuration
714
715
    ############################################################
    container:
716
      # NATS Box container image
717
      image:
718
        # Official NATS Box repository with CLI tools
719
        repository: natsio/nats-box
720
        # NATS Box version
721
        tag: 0.14.5
722
        # Image pull policy (leave empty for chart default)
723
        pullPolicy:
724
        # Custom registry URL (leave empty for Docker Hub)
725
726
        registry:

727
      # Environment variables for NATS Box container
728
729
      env: {}

730
      # Advanced container configuration
731
732
733
      # https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#container-v1-core
      merge: {}
      patch: []
734
735

    # Service Account for NATS Box deployment
736
    serviceAccount:
737
      # Whether to create and use a dedicated service account for NATS Box
738
      enabled: false
739

740
    # Pod template configuration for NATS Box deployment
741
742
743
    podTemplate:
      merge:
        spec:
744
          # Node tolerations for NATS Box pods
745
          tolerations: []
746
747
          # Affinity for NATS Box pods
          affinity: {}
748
      patch: []