# CSI configuration

# User cluster storage configuration

Configuration for CSI storage is specified on a cluster-by-cluster basis, in the all.yml configuration file, using fields in the cluster definition structure gke_cluster_config structure. For each user cluster, you can specify a storage class and configure a datastore:

Field Description Value
csi_storageclass_name The name of the storage class to use for the user cluster For example, 'gmcg-vmware-sc'
csi_datastore_name The datastore name to be created, if it does not already exist For example, 'gmcg-gke-vmwarecsi'
csi_datastore_size The size in gigabytes for the datastore For example, '20'

An example for CSI configuration in a user cluster is shown below:

gke_cluster_config:
    - name: 'user-cluster-1'
      type: 'user'
      ...
      csi_storageclass_name: 'gmcg-vmware-sc'
      csi_datastore_name: 'gmcg-gke-vmwarecsi'
      csi_datastore_size: '20'

# Default values

The default values for CSI configuration are specified in the file playbooks/roles/gke_cluster_config/csi/defaults/main.yml. The following are the values used, at the time of writing:

csi_driver: vsphere
vsphere_csi_driver_image: gcr.io/cloud-provider-vsphere/csi/release/driver:v2.0.0
vsphere_csi_syncer_image: gcr.io/cloud-provider-vsphere/csi/release/syncer:v2.0.0