VMware Cloud Community
biancoda2
Contributor
Contributor

Configure kubernetes storageClass with vSphere datastore

I'm trying to configure a kubernetes storageClass with a vSphere datastore.
The problem is that the datastore type is VMFS.

This is the error I'm getting:

The specified datastore: <my_datastore> is not a VSAN datastore. The policy parameters will work only with VSAN Datastore. So, please specify a valid VSAN datastore in Storage class definition.

This is the storageClass definition:

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: vsphere-thin3
provisioner: kubernetes.io/vsphere-volume
parameters:
  datastore: <my_datastore>
  diskformat: thin
  fstype: ext3
reclaimPolicy: Delete

Is it possible to configure a storageClass if the datastore type is VMFS?

Labels (2)
Reply
0 Kudos
0 Replies