Need to increase Cluster Node Volumes.
In TKG cluster nodes specification for nodes you can optionally declare one or more persistent volumes for the node.
Considerations:
Worker node volume changes are allowed:
Warning: if you scale the worker node with a new or changed volume, data in the current volume is deleted during the rolling update.
Control plane nodes volume changes are allowed from vSphere 8 U3 and later
The following is an excerpted cluster specification based on the v1alpha3 API with declared node volumes. Refer to the complete TKG cluster example from which this example is taken:
v1alpha3 Example: TKC with Default Storage and Node Volumes
v1beta1 Example: Custom Cluster Based on the Default ClusterClass
Example based on v1alpha3 API:
apiVersion: run.tanzu.vmware.com/v1alpha3
kind: TanzuKubernetesCluster
...
spec:
topology:
controlPlane:
replicas: 3
storageClass: tkg-storage-policy
vmClass: guaranteed-medium
tkr:
reference:
name: v1.24.9---vmware.1-tkg.4
nodePools:
- name: worker-nodepool-a1
replicas: 3
storageClass: tkg-storage-policy
vmClass: guaranteed-large
tkr:
reference:
name: v1.24.9---vmware.1-tkg.4
volumes:
- name: containerd
mountPath: /var/lib/containerd
capacity:
storage: 50Gi
- name: kubelet
mountPath: /var/lib/kubelet
capacity:
storage: 50Gi
- name: worker-nodepool-a2
...
settings:
...
Once you have the example coded, you need to apply the yaml file by:
kubectl apply -f filecreated.yaml