Skip to content

Commit

Permalink
Update static-provisioning example README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Drew Sirenko <[email protected]>
Signed-off-by: Connor Catlett <[email protected]>
  • Loading branch information
ConnorJC3 and AndrewSirenko committed Sep 25, 2023
1 parent b88e7bb commit 518ac63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/kubernetes/static-provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
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.
The `StorageClass` on the `PersistentVolumeClaim` and `PersistentVolume` must match. If you have a default storage class, this means you must explicitly set `spec.storageClassName` to `""` in the [PVC manifest](manifests/claim.yaml#L6) if the PV doesn't have a `StorageClass`.
The [`spec.volumeName` field](manifests/claim.yaml#L7) of the PVC must match the [name of the PV](manifests/pv.yaml#L4) for it to be selected.

```
```yaml
apiVersion: v1
kind: PersistentVolume
metadata:
Expand Down Expand Up @@ -68,4 +70,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
```
```

0 comments on commit 518ac63

Please sign in to comment.