-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add Bucket resource #75
Comments
This should be a feature, but you can also create a k/v bucket from a Stream as mentioned in https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-8.md#buckets |
Hi, it would be really nice to have a KV Bucket resource to work with. Do you think this is something that may be implemented? |
Yes. It is. |
Any update on when K/V bucket setup would be supported? +1 on the usefulness of such a feature. Thanks. |
+1 |
Here is an example of how to create a bucket ---
apiVersion: jetstream.nats.io/v1beta2
kind: Stream
metadata:
name: task-store
namespace: nats
spec:
name: KV_v1-task-store-borsh
account: nack
subjects: ["$KV.v1-task-store-borsh.>"]
maxMsgsPerSubject: 1
storage: file
maxAge: 200h
retention: limits
duplicateWindow: 1m
replicas: 3 |
That is an interesting workaround, to create the underlying stream directly. But ideally the implementation details of the bucket should be hidden under a proper bucket CRD abstraction. One problem with creating the stream directly is that if the stream details change in the KV logic in the drivers you could end up with strange behaviors. |
This is just a feature request for NACK to handle Key/Value buckets in addition to Consumer and Stream.
The text was updated successfully, but these errors were encountered: