IBM / drupal-nginx-php-kubernetes

Demonstration of a set of NGINX and PHP-FPM containers running Drupal deployed to Kubernetes on the IBM Container Service.
Apache License 2.0
51 stars 35 forks source link

persistent-volumes.yaml - Missing PersistentVolumeClaimSpec #128

Open kuilboer opened 5 years ago

kuilboer commented 5 years ago

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.