Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

persistent-volumes.yaml - Missing PersistentVolumeClaimSpec #128

Open
kuilboer opened this issue May 6, 2019 · 0 comments
Open

persistent-volumes.yaml - Missing PersistentVolumeClaimSpec #128

kuilboer opened this issue May 6, 2019 · 0 comments

Comments

@kuilboer
Copy link

kuilboer commented May 6, 2019

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:

image

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant