Monday, 29 April 2024

##  How to extend the RKE2 etcd db size


The default etcd size is 2 GB; when the etcd is almost complete, you can expand the etcd DB size.  To expand the etcd, at least the etcd is up and running.


From the Rancher UI, you can edit the RKE2 cluster and add etcd-arg under the


 MachineSelectorConfig.


machineSelectorConfig: - config: etcd-arg: - backend-quota-bytes=8589934592 kubelet-arg: - image-gc-high-threshold=85 - image-gc-low-threshold=80 protect-kernel-defaults: false



From the terminal:

you can add etcd-arg like below:

## $ cat /etc/rancher/rke2/config.yaml 
token: secret
etcd-arg:
  - "quota-backend-bytes=858993459"
  - "experimental-initial-corrupt-check=true"
  
$ journalctl -u rke2-server |grep quota
(or)
## If the config file is in the config.yaml.d
mkdir -p /etc/rancher/rke2/config.yaml.d
echo "etcd-arg+: ["backend-quota-bytes=8589934592"] > /etc/rancher/rke2/config.yaml.d/etcd-quota.yaml
systemctl restart rke2-server










No comments:

Post a Comment