Increase storage quota for etcd
You may need to increase the default etcd storage quota that is 2 GB if etcd runs out of space and there is no other way to clean up the storage on your management or MOSK cluster.
Warning
Any change in the k0s configuration on a management cluster
restarts the k0scontroller systemd service, which supervises all
Kubernetes control plane components. MOSK cordons and drains one control
plane node at a time, so the pods running on it are rescheduled. Therefore,
plan the change as a maintenance operation and make sure that all cluster
nodes are Ready before applying it.
To increase storage quota for etcd:
In the spec:providerSpec:value: section of cluster.yaml, edit the
etcd:storageQuota value:
kubectl --kubeconfig <pathToManagementClusterKubeconfig> -n <projectName> edit cluster <clusterName>
Configuration example:
apiVersion: cluster.k8s.io/v1alpha1
kind: Cluster
metadata:
name: mycluster
labels:
kaas.mirantis.com/provider: baremetal
spec:
providerSpec:
value:
apiVersion: baremetal.k8s.io/v1alpha1
kind: BaremetalClusterProviderSpec
etcd:
storageQuota: 4GB
Caution
You cannot decrease the storageQuota once set.