If needed you can put high-churn data on a separate volume from the primarily read-only root partition on a Tanzu Kubernetes cluster node.

Provision a Tanzu Kubernetes Cluster with Separate Disks and Storage Parameters

Separating disks and storage parameters for high-churn data help to minimize read-write overhead related to the use of linked clones, among other benefits.

There are two primary use cases:
  • Customize storage performance on control plane nodes for the etcd database
  • Customize the size of the disk for container images on the worker nodes

Example YAML

The following example YAML shows how to provision a cluster with separate disks and storage parameters.
apiVersion: run.tanzu.vmware.com/v1alpha1      
kind: TanzuKubernetesCluster                   
metadata:
  name: tkgs-cluster-5                         
  namespace: tgks-cluster-ns                   
spec:
  distribution:
    version: v1.18                             
  topology:
    controlPlane:
      count: 3                                 
      class: best-effort-small                 
      storageClass: tkgs-storage-policy
      volumes:
        - name: etcd
          mountPath: /var/lib/etcd
          capacity:
            storage: 4Gi       
    workers:
      count: 3                                 
      class: best-effort-small                 
      storageClass: tkgs-storage-policy        
      volumes:
        - name: containerd
          mountPath: /var/lib/containerd
          capacity:
            storage: 16Gi       

Example YAML Notes

The example YAML for provisioning a Tanzu Kubernetes cluster with separate volumes for the control plane etcd database and the worker node container images:

  • This YAML uses the default network settings (Antrea).
  • The spec.topology.controlPlane.volumes settings specify the separate volume for the etcd database.
  • The spec.topology.workers.volumes settings specify the separate volume for the container images.
  • The mountPath: /var/lib/containerd for container images is supported for Tanzu Kubernetes releases 1.17 and later.