From 387953c80a305fff2a7fc840592f44272a3f4551 Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Wed, 16 Sep 2026 12:33:16 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20NATS=20Account=20=E9=85=8D?= =?UTF-8?q?=E9=A2=9D=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/nats/README.md | 3 +++ platform/nats/values.yaml | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/platform/nats/README.md b/platform/nats/README.md index 3f54b0c..caabc9d 100644 --- a/platform/nats/README.md +++ b/platform/nats/README.md @@ -16,6 +16,9 @@ ECDSA,ACME challenge 会成功但 finalize 会以 `role requires keys of type rsa` 失败。 - `SYS` Account 用于管理;`CI` Account 启用 JetStream,存储上限 1 GiB。 +Account 内的 JetStream 配额会原样进入 `nats.conf`,必须使用 NATS 的 `MB`/`GB` +格式;PVC 等 Kubernetes resource quantity 才使用 `Mi`/`Gi`。 + 首期使用静态用户,密码只存在 OpenBao `kv/k8s/nats`: ```text diff --git a/platform/nats/values.yaml b/platform/nats/values.yaml index 19ea515..9527dee 100644 --- a/platform/nats/values.yaml +++ b/platform/nats/values.yaml @@ -24,8 +24,10 @@ config: password: "<< $NATS_SYS_PASSWORD >>" CI: jetstream: - max_memory: 32Mi - max_file: 1Gi + # These values are rendered directly into nats.conf and therefore use + # NATS size syntax, not Kubernetes resource.Quantity syntax. + max_memory: 32MB + max_file: 1GB max_streams: 16 max_consumers: 64 max_bytes_required: true -- 2.54.0