Skip to content

Commit

Permalink
Update static-provisioning example README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSirenko committed Sep 25, 2023
1 parent b88e7bb commit 671f663
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/kubernetes/static-provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```
```
4 changes: 3 additions & 1 deletion examples/kubernetes/static-provisioning/manifests/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ spec:
- key: topology.ebs.csi.aws.com/zone
operator: In
values:
- us-east-2c
- us-east-2c
storageClassName: "" # Empty string must be explicitly set otherwise default StorageClass will be set

0 comments on commit 671f663

Please sign in to comment.