Error msg: error validating "../kubernetes/persistent-volumes.yaml": error validating data: field spec.dataSource for v1.PersistentVolumeClaimSpec is required; if you choose to ignore these errors, turn validation off with --validate=false
To create the persistent volume claims the yaml must specify:
Spec:storageClassName: <storageclass_name>
for every claim described in the yaml
You can find the available options using:
This command assumes that the KUBECONFIG environment variable is set, and points to the IKS cluster.
A description of the available storage classes can be found on IBM Cloud docs.
Once the storageClassName is specified the persistent volume claim is successfully created.
Error msg: error validating "../kubernetes/persistent-volumes.yaml": error validating data: field spec.dataSource for v1.PersistentVolumeClaimSpec is required; if you choose to ignore these errors, turn validation off with --validate=false
To create the persistent volume claims the yaml must specify:
Spec:storageClassName: <storageclass_name>
for every claim described in the yamlYou can find the available options using:
This command assumes that the KUBECONFIG environment variable is set, and points to the IKS cluster.
A description of the available storage classes can be found on IBM Cloud docs.
Once the storageClassName is specified the persistent volume claim is successfully created.