diff --git a/examples/kubernetes/static-provisioning/README.md b/examples/kubernetes/static-provisioning/README.md index 8284691341..de871ca50a 100644 --- a/examples/kubernetes/static-provisioning/README.md +++ b/examples/kubernetes/static-provisioning/README.md @@ -10,7 +10,7 @@ This example shows you how to create and consume a `PersistentVolume` from an existing EBS volume with static provisioning. -1. Edit the `PersistentVolume` manifest in [pv.yaml](./manifests/pv.yaml) to include your `volumeHandle` EBS volume ID and `nodeSelectorTerms` zone value. +1. Edit the `PersistentVolume` manifest in [pv.yaml](./manifests/pv.yaml) to include your `volumeHandle` EBS volume ID and `nodeSelectorTerms` zone value. Confirm that the `metadata.name` field in [pv.yaml](./manifests/pv.yaml) matches `spec.volumeName` in [pv.yaml](./manifests/claim.yaml). ``` apiVersion: v1 @@ -68,4 +68,4 @@ This example shows you how to create and consume a `PersistentVolume` from an ex persistentvolumeclaim "ebs-claim" deleted pod "app" deleted persistentvolume "test-pv" deleted - ``` \ No newline at end of file + ``` diff --git a/examples/kubernetes/static-provisioning/manifests/pv.yaml b/examples/kubernetes/static-provisioning/manifests/pv.yaml index 7578fddd90..7deadb91ff 100644 --- a/examples/kubernetes/static-provisioning/manifests/pv.yaml +++ b/examples/kubernetes/static-provisioning/manifests/pv.yaml @@ -18,4 +18,5 @@ spec: - key: topology.ebs.csi.aws.com/zone operator: In values: - - us-east-2c \ No newline at end of file + - us-east-2c + storageClassName: "" # Empty string must be explicitly set otherwise default StorageClass will be set