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

persistent-volumes.yaml - Missing PersistentVolumeClaimSpec #128

@kuilboer

Description

@kuilboer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions