修复 NATS Account 配额格式 #61

Merged
panxiao81 merged 1 commits from fix/nats-account-size into main 2026-09-16 12:34:13 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 387953c80a - Show all commits
+3
View File
@@ -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
+4 -2
View File
@@ -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