You can deploy a generic Kubernetes cluster and persistent volumes on vSAN stretched clusters. If you already have Kubernetes deployments on a vSAN datastore, you can upgrade your deployments after enabling vSAN stretched clusters on the datastore.

Prerequisites

Be familiar with limitations and requirements of using vSAN stretched clusters with Kubernetes. See Design Considerations and Best Practices When Using vSAN Stretched Clusters for Kubernetes.

Procedure

  1. Enable a vSAN stretched cluster.
  2. Deploy or upgrade Kubernetes and persistent volumes.
    Option Description
    Deploy a Kubernetes cluster and persistent volumes on vSAN stretched clusters
    1. Create a VM storage policy compliant with the vSAN stretched cluster requirements.

      For information, see vSAN Stretched Cluster Design Considerations.

    2. Deploy Kubernetes VMs using the vSAN stretched cluster storage policy.
    3. Create a storage class using the vSAN stretched cluster storage policy.
    4. Deploy persistent volumes using the vSAN stretched cluster storage class.
    Upgrade a Kubernetes cluster and persistent volumes on vSAN stretched clusters
    1. Edit the existing VM storage policy used for provisioning volumes and node VMs on the vSAN cluster to add stretched cluster parameters.
    2. Apply updated storage policy on all objects.
    3. Apply updated storage policy on the persistent volumes that have Out of date status.

      For information, see Monitor Container Volumes Across Kubernetes Clusters.