Increase storage quota for etcd

Available since MCC 2.24.4 (Cluster releases 15.0.3 and 14.0.3)

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 managed cluster.

To increase storage quota for etcd:

  1. 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
        kaas.mirantis.com/region: region-one
    spec:
      providerSpec:
        value:
          apiVersion: baremetal.k8s.io/v1alpha1
          kind: BaremetalClusterProviderSpec
          etcd:
            storageQuota: 4GB
    

    Caution

    You cannot decrease the storageQuota once set.

    Note

    The kaas.mirantis.com/region label is removed from all Container Cloud and MOSK objects in 24.1.

    Therefore, do not add the label starting with these releases. On existing clusters updated to these releases, or if added manually, Container Cloud ignores this label.

  2. Applies only to the following Cluster releases:

    • 15.0.3 (MOSK 23.2.2) or 14.0.3

    • 15.0.4 (MOSK 23.2.3) or 14.0.4 if you scheduled a delayed management cluster upgrade

    Before upgrading your management cluster to MCC 2.25.0 (Cluster release 14.1.0), configure LCMMachine resources of the cluster controller nodes as described in Container Cloud documentation: Release notes - Update notes.