This message was deleted.
# k3d
a
This message was deleted.
w
k3d does not hide any functionality. You can use everything that K3s exposes. See K3s options: https://docs.k3s.io/cli/server
In k3d, you pass the flags to K3s via
Copy code
--k3s-arg ARG@NODEFILTER[;@NODEFILTER]                           Additional args passed to k3s command (Format: ARG@NODEFILTER[;@NODEFILTER])
f
Thanks for the quick response! However I see no option to configure the storage limit. Can you point me to the flag?
Is that via ``--etcd-arg``?
w
THe K3s docs show you all available flags to configure etcd in K3s. @creamy-pencil-82913 is there anything else exposed or possible, e.g. via env vars?
c
Yeah, --etcd-arg would be the way to go.
f
Yes, I configured it via
--k3s-arg "--etcd-arg=quota-backend-bytes=8589934592@server:*"
. And this seems setting the storage size to 8GB correctly:
Copy code
/ # cat /var/lib/rancher/k3s/server/db/etcd/config | tail -2
quota-backend-bytes: 8589934592
One thing I don’t understand is the free db size when I get it from etcdctl, per this post, the free space is dbSize-dbSizeInUse:
Let’s use the first endpoint as an example, its
dbSize
is 5177344 bytes, and
dbSizeInUse
is 2039808 bytes. It means that there are (5177344-2039808) bytes of free space, which can be reclaimed by executing the defragmentation operation.
My result doesn’t seem to be align with that though, my “dbSize”:291110912 and “dbSizeInUse”:160505856.
c
If you have specific questions about etcd, you might take them to the etcd project maintainers?
f
right, I figured this may not be the right channel for such questions. Thanks for you explaination!